[osg-users] Moving osgHud

Ulrich Hertlein u.hertlein at sandbox.de
Fri Mar 27 20:55:20 PDT 2009


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



More information about the osg-users mailing list