On 1/22/2012 11:34 AM, Shaheed Khan wrote: > Actually i want to alwayz focus (zoom) on the building near runway while > flying so which Osg camera functions can i use to do so and wat parameters > should i pass ..
Well, if you do getProjectionMatrixAsPerspective: http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00073.html#0d5e678648b19df3b64dec0d06fef974 and then alter the fovy and resubmit it with setProjectionMatrixAsPerspective: http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00073.html#fe4fab17f1cc5b4664c17ed79717aabb This will keep all the same view, except alter the change the zoom (field of view). -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org