In my current example I have 128 X 128 vectors. And now I change the
value every frame and it is OK for my prototype. But I would like a
general solution to visualize a vector field.
And a osg vector expand to set pointers? Is it a bad idea?
Cheers,
Martin
Am 10.09.2009 13:10, schrieb Ulrich Hertlein:
Hi Martin,
On 10/09/09 11:25 AM, Martin Großer wrote:
I think it is inefficient when I have to change the values everytime.
Because I must traverse all vertex points for every frame and the module
that calculate the x and y values is independent of osg.
I understand your problem; if you don't have control over how you're
passed the data there aren't any good ways around that.
How much data are we talking about? If you keep the vertex array and
only copy the values into it it's much cheaper than re-creating and
pushing the values into it.
And if you can get a hint from the data processing module whether or
not any values have changed that obviously would help as well.
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