Here I am again ...

Every moving object is something like this:

osg::PositionAttitudeTransform (for trasnformations wrt global)
osg::PositionAttitudeTransform (for scaling underlying graphics, not 
transformations)
osg::Group (that contains real graphics)

As suggested, the track map is basically an osgViewer::View with a 
osg::PositionAttitudeTransform as scene data. As child of that 
PositionAttitudeTransform I add a node with the track graphics and the 
PositionAttitudeTransform (i.e. transfirmation node) of each moving object. In 
this way I can see objects moving correctly on the track but they are too small 
to be seen. Adding a PositionAttitudeTransform for scaling each moving object 
does not work since also the PositionAttitudeTransform (i.e. transformation 
node) is scaled accordingly.

Now, is there a way (and does it make sense) to apply a scale for each moving 
object only in the track map view so that transformations are preserved?
Would it be a better solution to add a sphere with proper radius for each 
moving object so that it can be rendered just in the track map view?

Thanks for help
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=56997#56997





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

Reply via email to