Johnny Guitar wrote:
Need to set a viewpoint position based on an offset from the model the
viewpoint is viewing. I want to specify the offset in the model
coordinate system. For example: specifying 1,0,0 the viewpoint would
be looking down the models x axis, specifying 0,1,0 the vp would be
looking down the y axis. How do I convert these offsets from the model
coordinates to OSG world coordinates so that I can do following:
offsetInWorldCS = (some coversion) * offsetInModelCS
vpPositionInWorld = offsetINWorldCS
Is there a reason why the local-to-world matrix wouldn't work for you?
osg::Matrix osg::computeLocalToWorld(const NodePath& nodePath, bool
ignoreCameras)
--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org