On Wed, Mar 11, 2009 at 7:53 PM, Glenn Waldron <[email protected]> wrote:
> Try this:
>
>     osg::Matrix cell2map = env->getInputSRS()->getInverseReferenceFrame();
>     osg::Vec3d feature_center = point * cell2map;
>     feature_center.normalize();
>     osg::Vec3d cell_center = osg::Vec3d(0,0,1) * cell2map;
>     cell_center.normalize();
>     osg::Quat q;
>     q.makeRotate( cell_center, feature_center );

Thanks for the suggestion, but I get the same results.

Regards
Dirk
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to