There is an easy way to calculate the frustum; it's a fairly
straightforward trig problem. If you need help with it, then see the
TrackballManipulator code.
Paul Martz
Skew Matrix Software LLC
_http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
+1 303 859 9466
Johannes Schüth wrote:
Hi,
is there any easy way to focus a object?
I'm able to center my camera onto the object but i want to zoom in as much as possible.
In some way i must fit the bounding sphere of my object into the camera frustum.
I think i have to set the frustum my self but perhaps there is an easy way to calculate the frustum?
Thank you!
Cheers,
Johannes
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17317#17317
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org