Archived

This topic is now archived and is closed to further replies.

Kiroke

simple texturing question

Recommended Posts

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

Share this post


Link to post
Share on other sites
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;

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
ok thx...i was trying to use only 4 calls to glTexCoord2d() becauz i dont know how many quads ill have within the big one...well thx for ur tip ill try somthing else:-)

Kiroke

Share this post


Link to post
Share on other sites