Agreed, aside from display lists being on by default, I can't imagine what issues you'd run into here. You have the address of the vertex array (because you created it) so when you get mouse drag events (by definition they are outside the draw traversal), just modify the points.
Mm. Make sure you set DataVariance to DYNAMIC for this Geometry (as you would for any piece of the scene graph that you modify). Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Ulrich Hertlein Sent: Friday, March 27, 2009 9:55 PM To: [email protected] Subject: Re: [osg-users] Moving osgHud On 28/3/09 11:14 AM, Martin Beckett wrote: >> * As you get mouse drag events, update the vertices/corners of the >> line loop to reflect the rectangle that the user is defining. > > That's the sticking point - the Hud camera is attached to the scene as > a geode, how do I change the vertices in a node that's part of the scenegraph? The only thing you have to watch out for is to do it outside the draw traversal. Apart from that you can just modify the geometry vertex array and mark the geometry as dirty to trigger display list re-building. Cheers, /ulrich _______________________________________________ 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

