Hi Joans, Absolute reference frame is not what you are after, as this mode discards al view and model matrices from above - this is usual for making a subgraph effectively relative to the eye point making it good for doing things like HUDS.
What you are after is not directly supported by any transformation classes. The osgSim::DOFTransform may be a litte way towards this. The OSG does support subclassing such you could just make your own transform to do exactly what you want. Robert. On Nov 29, 2007 8:30 AM, Jonas Dehlin <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm having trouble using an absolute reference frame on an > osg::PositionAttitudeTransform. > > My scenegraph looks like this: > > RootGroup (osg::Group) > | > EntityGroup (osg::Group) > | > Entity (osg::PositionAttitudeTransform) > | > Representation (osg::PositionAttitudeTransform) > > > I have different subtypes of Representation that I add as childs to an > Entity. For most types of Representations I want to use an relative > reference frame, that is I want the rotation and translation of the > Representations to be relative to the Entity. However, in a special case > I want the Representation to not be affected by any prior rotations and > translations. I thought that using an absolute reference frame would be > a good idea, but when I apply the absolute refence frame to the > Representation trough setReferenceFrame(osg::Transform::ABSOLUTE_RF), > my underlying geometry dissapears. > > What am I missing? Do I have the wrong idea of what an absolute reference > frame is supposed to do? > > I'm using OSG 2.0 under RHEL 5. > > /Jonas > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

