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

John Lee 357059570 at qq.com
Mon Jun 27 01:20:18 PDT 2016


Hi, robert.
Thank you for your reply.
I never use the PolytopeIntersector, can you tell me more hints? Because i am new to osg or show me some website so that i learn osg quickly.
Thanks.

Jhon.


robertosfield wrote:
> 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 <> 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
> > 
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> _______________________________________________
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  ------------------
> Post generated by Mail2Forum


------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67841#67841








More information about the osg-users mailing list