<div dir="ltr"><div>Hi,<br><br></div>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<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 27, 2016 at 10:20 AM, John Lee <span dir="ltr"><<a href="mailto:357059570@qq.com" target="_blank">357059570@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, robert.<br>
Thank you for your reply.<br>
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.<br>
Thanks.<br>
<br>
Jhon.<br>
<span class=""><br>
<br>
robertosfield wrote:<br>
> Hi John,<br>
><br>
><br>
> As Nick suggest you can use a cull callback to report back when a node<br>
> and it's subgraph are likely to be within the view frustum, however,<br>
> this is constrains you to doing the test in the cull traversal.<br>
><br>
> However, if you want to do the test outside the cull traversal then<br>
> you'll need to use the PolytopeIntersector, creating a Polytope as the<br>
> frustum.<br>
><br>
> Robert.<br>
><br>
</span><span class="">> On 27 June 2016 at 07:30, John Lee <> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I don't know how to judge if an object is in the frustum? I want to get which node is in the frustum.<br>
> ><br>
> > Thank you!<br>
> ><br>
> > Cheers,<br>
> > John<br>
> ><br>
> > ------------------<br>
> > Read this topic online here:<br>
> > <a href="http://forum.openscenegraph.org/viewtopic.php?p=67832#67832" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=67832#67832</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > osg-users mailing list<br>
> ><br>
</span><span class="">> > <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
> ><br>
> _______________________________________________<br>
> osg-users mailing list<br>
><br>
</span>> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
<span class="">><br>
>  ------------------<br>
> Post generated by Mail2Forum<br>
<br>
<br>
</span><span class="">------------------<br>
Read this topic online here:<br>
</span><a href="http://forum.openscenegraph.org/viewtopic.php?p=67841#67841" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=67841#67841</a><br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>