On Wed, Mar 7, 2012 at 8:19 AM, jo mo <[email protected]> wrote: > I have a scene with moving teams (represented as spheres) and I want to > place an osgText above each of these team such that the text movels along > the object. I tried the following code (teamPos is the node representing > the team, lat, lon and z is the current team position): > osg::ref_ptr<osg::Geode> positionGeode = new osg::Geode; > positionGeode->addDrawable(teamPos); > positionGeode->addDrawable(teamLabel); > > Has anybody got an idea what I am doing wrong? > > You don't say what results you get or how they are wrong.
Is the positioning of the team sphere working? You say teamPos is a node, but really it should be a Drawable, which is NOT a node. > Thank you! > > Cheers, > jo > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=46089#46089 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

