Mapping a texture for a terrain,
Members - Reputation: 126
Posted 30 July 2001 - 01:57 AM
glTexCoord2d(1,1) stretches the texture (or compresses it) over the whola area of your polygon.
glTexCoord2D(100,100) repeats the texture 100 times over the area...
hope it makes sense
Senior Staff - Reputation: 1652
Posted 30 July 2001 - 03:58 AM
Original post by ShiningKnight
Go check out Flipcode's articles... They have a LOT of different stuff on terrain that may interest
OpenGL Game Programming Tutorials
And GameDev.net doesn't?
To answer the question, you need to calculate individual texture coordinates for each vertex. I would suggest looking at NeHe's flag demo (busy at work and can't go indepth at the moment here).