PDA

View Full Version : Compare vertex arrays



11-24-2003, 04:35 PM
Is there any way to compare two vertex arrays for equality?

Mazy
11-24-2003, 11:06 PM
not with opengl, but you can easily make your own loop in your favorite language to do that.

11-25-2003, 12:38 AM
Originally posted by Mazy:
not with opengl, but you can easily make your own loop in your favorite language to do that.

But if I do it with my own loop there is no hardware acceleration. How can I "put" data on a graphics card? Only with textures? And how can I "retrieve" data?

Obli
11-25-2003, 12:08 PM
What Mazy is trying to tell is that there's actually no way (yet) to fetch two vertex arrays to a GPU and ask "Are those two vertex arrays equal?"

By the way, equality with floating point map is something hard to figure out...
You can do something similar with pixels (and not VA) using render-texture but I don't think there would be any use at all for it.

EDIT: the new problem you issue (which is, allocating everything on video card) has been addressed by some special extensions which finally produced ARB_vertex_buffer_object. Check it out.

[This message has been edited by Obli (edited 11-25-2003).]