Yes, the I had the same idea with the shader. I try it. This is the best
idea, maybe.
Cheers,
Martin
Am 10.09.2009 14:44, schrieb Ulrich Hertlein:
On 10/09/09 2:00 PM, Martin Großer wrote:
And a osg vector expand to set pointers? Is it a bad idea?
The problem there is that there's no way to pass these separate arrays
to OpenGL in an efficient manner.
Having two separate arrays for X/Y is pretty much worst case, even
having them interleaved in one array would be better.
Hm, you could try to bind each array as vertex attribute and fetch the
vertex position from these (in a vertex shader) ... but since there's
no way for OSG or OpenGL to know which pieces of your data have
changed it would need to upload the entire dataset every time anyhow.
/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