[osg-users] how to judge if an object is in the frustum?

Robert Osfield robert.osfield at gmail.com
Sun Jun 26 23:59:51 PDT 2016


Hi John,


As Nick suggest you can use a cull callback to report back when a node
and it's subgraph are likely to be within the view frustum, however,
this is constrains you to doing the test in the cull traversal.

However, if you want to do the test outside the cull traversal then
you'll need to use the PolytopeIntersector, creating a Polytope as the
frustum.

Robert.

On 27 June 2016 at 07:30, John Lee <357059570 at qq.com> wrote:
> Hi,
>
> I don't know how to judge if an object is in the frustum? I want to get which node is in the frustum.
>
> Thank you!
>
> Cheers,
> John
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=67832#67832
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list