[osg-users] Best way to cull object hidden by a mountain

Chris Hanson xenon at alphapixel.com
Thu Jun 23 11:00:29 PDT 2016


I might be able to help you with this. Is your source something you can
share, possibly off-list?

On Wed, Jun 22, 2016 at 9:55 AM, Valerian Merkling <niarkoleptik at gmail.com>
wrote:

> Hi,
>
> I'm working with OpenSceneGraph 3.4.0 on a kind of GIS app.
>
> I'm rendering the ground using textured HeightField square. My scene graph
> is cut in two part, a group node with all the textured HeightFields, and
> another containing all my 3D objects (sorted in a quadtree).
>
> I've got a lot of thoses textured heightfield squares, they come in
> different resolution, and will be soon put into a nice QuadTree with LOD.
>
> I would like to use Occlusion Culling to avoid to render object hidden
> behind those Heightfield.
>
> As far as I know there is both OccluderNode and OcclusionQueryNode which
> can be used for culling.
>
> I tried to use OccluderNode but I can't convert HeightField to
> ConvexPlanarOccluder.
>
> Then I tried OcclusionQueryNode (root -> occlusionQueryNode -> QuadTree ->
> objects) but it seems to be too powerful : everything is culled, even the
> heightField part which is not inside the occlusionQueryNode ... :(
>
> I came to realize that I barely understand how to use OcclusionQueryNode
> and OccluderNode, so I would like to have your advice : Is it a good idea
> to use one of thoses ? And how can I use them properly ?
>
> Thank you!
>
> Cheers,
> valerian
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=67739#67739
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Chris 'Xenon' Hanson, omo sanza lettere. Xenon at AlphaPixel.com
http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 •
GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Code Forensics • Digital Imaging • GIS • GPS •
osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile •
iPhone/iPad/iOS • Android
@alphapixel <https://twitter.com/alphapixel> facebook.com/alphapixel (775)
623-PIXL [7495]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160623/007723fa/attachment-0003.htm>


More information about the osg-users mailing list