[osg-users] zoom to object with camera

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Tue May 19 10:00:34 PDT 2020


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.

On Thursday, June 14, 2012 at 3:51:15 AM UTC-3, Jason Anderssen wrote:
>
> 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 ? ) 
>
> Cheers 
> Jason 
>
> On 13/06/2012, at 8:41 AM, Jason Anderssen wrote: 
>
> > Torben, 
> > 
> > Thanks for reply, and it works perfectly.  However is there a way to 
> make it animate to the zoom points. 
> > 
> > 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? 
> > I know I could do it all manually, but I am assuming that OSG would 
> probably provide some easy mechanism maybe ? 
> > 
> > Thanks in advance. 
> > 
> > Cheers 
> > Jason 
> > On 06/06/2012, at 3:50 PM, Torben Dannhauer wrote: 
> > 
> >> Hi, 
> >> 
> >> yes this function is called node tracking. You can track a node and 
> configure which degrees of freedom your camera should provide. 
> >> 
> >> There is a default Nodetracker-Manipulator in OSG. You just have to set 
> the Node you want to track. 
> >> 
> >> 
> >> 
> >> Cheers, 
> >> Torben 
> >> 
> >> ------------------ 
> >> Read this topic online here: 
> >> http://forum.openscenegraph.org/viewtopic.php?p=48067#48067 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> _______________________________________________ 
> >> osg-users mailing list 
> >> osg-... at lists.openscenegraph.org <javascript:> 
> >> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
> > 
> > _______________________________________________ 
> > osg-users mailing list 
> > osg-... at lists.openscenegraph.org <javascript:> 
> > 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
>
> _______________________________________________ 
> osg-users mailing list 
> osg-... at lists.openscenegraph.org <javascript:> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 
>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/a9b0967e-ae83-4a55-b551-d54a0130a4ae%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200519/e6bd09ac/attachment.html>


More information about the osg-users mailing list