Hi Martin,
On 31/3/09 9:20 AM, Martin Beckett wrote:
thanks - it seemed a little crude to just change the vertex data directly.
Not really crude at all. What kind of functionality were you looking for?
To get the value: float x = (*vertices)[0].x();
And to modify them
[quote=Paul Martz] You have the address of the vertex array
(because you created it) so when you get mouse drag events (by definitionthey
are outside the draw traversal), just modify the points.
[/quote]
thanks - it seemed a little crude to just change the vertex data directly.
ps. for the
...@lists.openscenegraph.org] On Behalf Of Ulrich
Hertlein
Sent: Friday, March 27, 2009 9:55 PM
To: osg-users@lists.openscenegraph.org
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
I am trying to select nodes in a scene with a mouse drawn rectangle.
The first step is to draw the selected region.
I am trying to use an osgHud but it's not obvious how you can change the
drawables - are you supposed to attach the Hud to a PositionAttitudeTransform?
Anyone have an example of
-matrix.com
+1 303 859 9466
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Martin
Beckett
Sent: Friday, March 27, 2009 4:35 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Moving osgHud
I am
Sorry I meant an ordinary Hud as in the osghud sample.
* Add a Camera Node to your scene graph, configured to post render, and set
the Camera's View and Projection to allow screen-space rendering (just as you
would for any normal HUD).
That's what I did.
* Attach a Geode (with a
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
7 matches
Mail list logo