simple texturing question
hi!
Do you guys know if its possible to map a texture on four adjacent quads with only four call to glTexCoord2f()???
2----- ------4
| | |
| | |
| | |
------ -------
| | |
| | |
| | |
1----- ------3
where 1-4 are my calls to glTexCoord2f().
To make it clear...can i apply a single texture on multiple objects?
Thx
Kiroke
Kirokewww.geocities.com/kiroke2
quote:
Original post by Kiroke
Do you guys know if its possible to map a texture on four adjacent quads with only four call to glTexCoord2f()???
Its not
quote:
Original post by Kiroke
To make it clear...can i apply a single texture on multiple objects?
It is
-----------------------
chain=chain->chain;
-----------------------"When I have a problem on an Nvidia, I assume that it is my fault. With anyone else's drivers, I assume it is their fault" - John Carmack
If you don''t want to use glTexCoord for each vertex, you can use automatic texture coordinate generation. But it has some limitation, though.
mmm ok i gues my description of the problem was, once again, not very clear.
The thing im trying to do is to assign a single texture on four adjacent quads. The four quads form a big one. Then i put each of the four texture coords in each corner of the big quad. Is that making sense? I''m doing this because the number of small quads may change from 4 to ...
Thx for ur help
Kiroke
PS:automatic texture generation... mm whats that?
The thing im trying to do is to assign a single texture on four adjacent quads. The four quads form a big one. Then i put each of the four texture coords in each corner of the big quad. Is that making sense? I''m doing this because the number of small quads may change from 4 to ...
Thx for ur help
Kiroke
PS:automatic texture generation... mm whats that?
Kirokewww.geocities.com/kiroke2
So use 0.5 for the middle points, wheres the problem? If you have 16 quads, use 0.25, 0.5, 0.75... and then divide more from there on as necessary
I think hes wanting to apply a single texture map to the quads with one 4 calls to glTexCoord();
which is not possable;
Assumeing that you are rendering multiple quads so that you can tile the texture across them, you could achieve the same affect by drawwing one big poly and assigning texture coords larger than 0-1.
0,0
2,0
2,2
0,2
could be your tex coords.
PS: make sure you used GL_REPEAT when you made the texture.
which is not possable;
Assumeing that you are rendering multiple quads so that you can tile the texture across them, you could achieve the same affect by drawwing one big poly and assigning texture coords larger than 0-1.
0,0
2,0
2,2
0,2
could be your tex coords.
PS: make sure you used GL_REPEAT when you made the texture.
www.EberKain.comThere it is, Television, Look Listen Kneel Pray.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement