<div dir="ltr">Thanks for the answer.<div>How could I solve this?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-04 12:47 GMT+00:00 Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Bruno,<br>
<br>
The complication with AutoTransform is the it computes it's values<br>
only in the CullVisitor so you'll inherit what ever the last frame<br>
used for it's settings.  This should work OK most of the time. If you<br>
have multiple views on the scene this will mean that there are<br>
multiple stats but only the last one will be left in place for the<br>
next frame.<br>
<br>
Robert.<br>
<br>
<br>
<br>
On 3 December 2016 at 17:55, Bruno Oliveira<br>
<div><div class="h5"><<a href="mailto:bruno.manata.oliveira@gmail.com">bruno.manata.oliveira@gmail.<wbr>com</a>> wrote:<br>
> Hello,<br>
><br>
> in my scene graph I'm using an AutoTransform to add a circle with Radius=10,<br>
> centered on (0,0,0):<br>
><br>
>   float Radius = 10;<br>
>   for (int i = 0; i < nPointsInCircle; i++)<br>
>     vertArray[i] = Vec3d( radius * sin(...), radius* cos(...), 0.));<br>
><br>
> then I add this to a Drawable + Geode, and add that Geode to an<br>
> AutoTransform:<br>
><br>
>   auto* autoTransform = new osg::AutoTransform;<br>
>   autoTransform->addChild(<wbr>circleGeode);<br>
>   autoTransform-><wbr>setAutoScaleToScreen(true);<br>
>   autoTransform->setPosition(<wbr>100, 100, 0);<br>
><br>
> This results in a circle located in (100, 100, 0), with radius 10, scaling<br>
> automatically to screen. VISUALLY this is what I want.<br>
> Now when I use a PolytopeIntersector on this node, it returns intersection<br>
> coordinates of the circle , in the Circle's geometry frame, centered in<br>
> (0,0,0) with radius 10. This means that, if I hover my mouse over the<br>
> Circle, which is located in world coordinates in (100, 100, 0), the<br>
> PolytopeIntersector returns coordinates centered in (0,0,0) with maximum<br>
> radius 10.<br>
><br>
><br>
> How can I obtain true world coordinates with Autotransforms?<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> osg-users mailing list<br>
> <a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
><br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</blockquote></div><br></div>