Hello,
If I render multiple quads using:
glBegin(GL_QUAD_STRIP);
[…]
glEnd();
Is it possible to have a different textures on each single quad?
Or is the only way to have different images on your quads to have one single quad, with different images on it, and then just have like this:
glBindTexture(GL_TEXTURE_2D, texindex);
glBegin(GL_QUAD_STRIP);
glTexCoord2f(0.0, 0.0); glVertex3fv(vertices[0]);
glTexCoord2f(1.0, 0.0); glVertex3fv(vertices[1]);
glTexCoord2f(0.0, 0.2); glVertex3fv(vertices[2]);
glTexCoord2f(1.0, 0.2); glVertex3fv(vertices[3]);
glTexCoord2f(0.0, 0.2); glVertex3fv(vertices[4]);
glTexCoord2f(1.0, 0.2); glVertex3fv(vertices[5]);
glTexCoord2f(0.0, 0.5); glVertex3fv(vertices[6]);
glTexCoord2f(1.0, 0.5); glVertex3fv(vertices[7]);
[..]
glEnd();
Or are there any other ways to do it?
And how should I imagine 3D textures? Like a cube?
And is it a good idea to use a 3D texture for water?
And how can I make 3D textures?
Thanx in advance,
Hylke