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

John Lee 357059570 at qq.com
Mon Jun 27 02:09:51 PDT 2016


Nick.
Ok, thank you so much. I will look up more information about what Robert said.


Trajce Nikolov NICK wrote:
> Hi,
> 
> 
> well, for this I think what Robert suggested suits better. I don't know the details of the Polytope that much but I think you just need to re-create the View frustum as a Polytope and do the intersectons... I hope Robert will shed more light into this
> 
> 
> 
> 
> On Mon, Jun 27, 2016 at 10:20 AM, John Lee < ()> wrote:
> 
> > 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 (http://forum.openscenegraph.org/viewtopic.php?p=67832#67832)
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > osg-users mailing list
> > > > 
> > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > > > 
> > > > 
> > > _______________________________________________
> > > osg-users mailing list
> > > 
> > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (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 (http://forum.openscenegraph.org/viewtopic.php?p=67841#67841)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> > 
> > 
> 
> 
> 
> -- 
> trajce nikolov nick
> 
>  ------------------
> Post generated by Mail2Forum


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








More information about the osg-users mailing list