[osg-users] osgText::Text rotation

Dirk Uys dirkcuys at gmail.com
Mon Mar 16 03:40:31 PDT 2009


On Wed, Mar 11, 2009 at 7:53 PM, Glenn Waldron <gwaldron at gmail.com> 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



More information about the osg-users mailing list