Hi Bernd, You might be best creating your on subclass from osg::Transform along the lines of osg::AutoTransform to do exactly what you need. You don't actually need any handle to the viewers camera as you'll get can the inherited modelview matrix from the CulVisitor from with the traverse mathod.
Have a look at the various custom traverse() methods such as in src/osg/AutoTransform or src/osgSim/OverlayNode. Robert. On 6/27/07, Bernd Brot <[EMAIL PROTECTED]> wrote:
Hi, I would like to update geodes. My intention was the following: I create an AutoTransform node as a parent of this geode and shear and rotate the geodes using the AutoTransform node. The operations are dependent on the camera. That's why I will use the matrix of the node-position relativ to the coordinate system of the camera to perform the operations. Regards Bernd > -----Ursprüngliche Nachricht----- > Von: osg users <[email protected]> > Gesendet: 27.06.07 18:38:21 > An: "osg users" <[email protected]> > Betreff: Re: [osg-users] view-dependent geometry nodes > > Hi Bernd, > > I'm afraid you'll need to be more specific about the how you intend to > contruct your scene graph, and how you plan to update the geometry - > i.e. are you modifying vertices? are you modifying a Transform node? > > In general this type of work should be scene graph specific rather > than viewer specific, so the use of 1.2 and Producer shouldn't make > any difference, the fundamentals of how the scene graph are the same > between 1.2 and 2.0. > > Robert. > > On 6/27/07, Bernd Brot <[EMAIL PROTECTED]> wrote: > > Hello, > > > > In my Application I would like to create some view-dependent geometry nodes in the scene. > > After selecting a node I have to execute a shear and a rotation computation. > > These operations have to be performed in the coordinate system of the camera. > > That's why I have to assign the position of the node relativ to the camera. > > > > What is the best way to do this ? I hope you can help me. > > > > I'm using OpenSceneGraph 1.2 and the Camera is a Producer::Camera. > > > > Regards > > > > Bernd > > > > _____________________________________________________________________ > > Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! > > http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 > > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > http://openscenegraph.net/mailman/listinfo/osg-users > > http://www.openscenegraph.org/ > > > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
