PDA

View Full Version : Vertex Arrays with just Texture coordinates changed



malkia
02-07-2000, 05:34 PM
Hi, i'm doing height field raycaster 128x128 rays, and at the end i've got
128x128x2 equal sized triangles

I want to change just texture coordinates, inside them, also geometry can be 2D coded, perspective correction is not so important.

What is the best way to do this

I'm DirectX7 coder, but OpenGL is more wide opened - linux, BE and so on, and I'm searching solutions for both of this

Keith Z Leonard
02-08-2000, 07:07 AM
using a compiled vertex array should be the
way to go. If you don't push the vertex
array a second time it allows for the driver
to optimize by not re-transforming the
array.

just push the new tex coord array.

Also, you should be able to acheive certain
effects by using the texture matrix.

Keith