<div dir="ltr"><div>One option is to try to adapt the code in the first example of the 5th chapter of "OpenSceneGraph 3 Cookbook", by Rui Wang & Xuelei Qian. I'm trying, but still no success.</div><div></div><br>On Thursday, June 14, 2012 at 3:51:15 AM UTC-3, Jason Anderssen wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Anyone got a suggestion for this, or am I in the wrong forum for this question ? (i.e. does OSG have a way to do the zoom to object animation as outlined below ? )
<br>
<br>Cheers
<br>Jason
<br>
<br>On 13/06/2012, at 8:41 AM, Jason Anderssen wrote:
<br>
<br>> Torben,
<br>> 
<br>> Thanks for reply, and it works perfectly.  However is there a way to make it animate to the zoom points.
<br>> 
<br>> I have a Nodetracker-Manipulator set as my default manipulator, and I change the node path as the user selects objects from the scene, it would be nice if I could animate the zoom to the object?
<br>> I know I could do it all manually, but I am assuming that OSG would probably provide some easy mechanism maybe ?
<br>> 
<br>> Thanks in advance.
<br>> 
<br>> Cheers
<br>> Jason
<br>> On 06/06/2012, at 3:50 PM, Torben Dannhauer wrote:
<br>> 
<br>>> Hi,
<br>>> 
<br>>> yes this function is called node tracking. You can track a node and configure which degrees of freedom your camera should provide.
<br>>> 
<br>>> There is a default Nodetracker-Manipulator in OSG. You just have to set the Node you want to track.
<br>>> 
<br>>> 
<br>>> 
<br>>> Cheers,
<br>>> Torben
<br>>> 
<br>>> ------------------
<br>>> Read this topic online here:
<br>>> <a href="http://forum.openscenegraph.org/viewtopic.php?p=48067#48067" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fforum.openscenegraph.org%2Fviewtopic.php%3Fp%3D48067%2348067\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHA75yAGLlCQ5-ZgNW2L7WQvvc9Dg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Fforum.openscenegraph.org%2Fviewtopic.php%3Fp%3D48067%2348067\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHA75yAGLlCQ5-ZgNW2L7WQvvc9Dg';return true;">http://forum.openscenegraph.<wbr>org/viewtopic.php?p=48067#<wbr>48067</a>
<br>>> 
<br>>> 
<br>>> 
<br>>> 
<br>>> 
<br>>> ______________________________<wbr>_________________
<br>>> osg-users mailing list
<br>>> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="aVK0kqt3iAsJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@lists.<wbr>openscenegraph.org</a>
<br>>> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a>
<br>> 
<br>> ______________________________<wbr>_________________
<br>> osg-users mailing list
<br>> <a href="javascript:" target="_blank" gdf-obfuscated-mailto="aVK0kqt3iAsJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@lists.<wbr>openscenegraph.org</a>
<br>> <a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a>
<br>
<br>______________________________<wbr>_________________
<br>osg-users mailing list
<br><a href="javascript:" target="_blank" gdf-obfuscated-mailto="aVK0kqt3iAsJ" rel="nofollow" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">osg-...@lists.<wbr>openscenegraph.org</a>
<br><a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Flists.openscenegraph.org%2Flistinfo.cgi%2Fosg-users-openscenegraph.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEhxcobqaKtkSCnaCeBWJ1fFl93mw';return true;">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a>
<br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:osg-users+unsubscribe@googlegroups.com">osg-users+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/osg-users/a9b0967e-ae83-4a55-b551-d54a0130a4ae%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/osg-users/a9b0967e-ae83-4a55-b551-d54a0130a4ae%40googlegroups.com</a>.<br />