Re: [osg-users] osgText::Text rotation

2009-03-16 Thread Dirk Uys
On Wed, Mar 11, 2009 at 7:53 PM, Glenn Waldron gwald...@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) *

Re: [osg-users] osgText::Text rotation

2009-03-11 Thread Vincent Bourdier
Hi Dirk, Maybe you have the same problem than I had : http://thread.gmane.org/gmane.comp.graphics.openscenegraph.user/38200/focus=38214 (sorry no solution...) Vincent. 2009/3/11 Dirk Uys dirkc...@gmail.com Hi I'm new to OSG, but not so new to scene graphs in general. I'm trying to make

Re: [osg-users] osgText::Text rotation

2009-03-11 Thread Glenn Waldron
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(