Hi Gianni, I never used PositionAttitudeTransform. Try MatrixTransform instead. You can combine different transformation in the final Matrix. Something like:
osg::MatrixTransform* mxt = new osg::MatrixTransform; mxt->setMatrix(osg::Matrix::scale(x,y,z)*osg::Matrix::translate(x,y,z)) Nick On Tue, Oct 29, 2013 at 3:50 PM, Gianni Ambrosio <[email protected]> wrote: > 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 > -- trajce nikolov nick
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

