[osg-users] Road/Line label suggest
Hi EveryOne! I want suggests about the text label of the road or line vector. I want the label display along the line. And when I rotate the camera, the label should face to the screen and also along the line. How can i do that?Hope your suggest. Thanks. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Road/Line label suggest
Hi Dvaid, The is no support in osgText for orientating around a user defined axis so you'll either have to place the Text under an osg::Billboard or write your own custom Transform node to produce the appropriate transform. Robert. On Jan 13, 2008 11:43 AM, ZHMW <[EMAIL PROTECTED]> wrote: > Hi EveryOne! > > I want suggests about the text label of the road or line vector. I want > the label display along the line. And when I rotate the camera, the label > should face to the screen and also along the line. How can i do that?Hope > your suggest. > >Thanks. > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Road/Line label suggest
I'd suggest you take a look at the osgtext example. Also, look at the AutoTransform class and look at places where it's used in the examples. -Paul _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ZHMW Sent: Sunday, January 13, 2008 4:43 AM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Road/Line label suggest Hi EveryOne! I want suggests about the text label of the road or line vector. I want the label display along the line. And when I rotate the camera, the label should face to the screen and also along the line. How can i do that?Hope your suggest. Thanks. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org