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

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Mon Jun 27 01:51:25 PDT 2016


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 <357059570 at qq.com> 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
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160627/08bc9ef7/attachment-0003.htm>


More information about the osg-users mailing list