Advertisement

killer questions about texture mapping

Started by March 28, 2002 09:12 AM
0 comments, last by dukenukem 22 years, 11 months ago
i made a square.a side is 1.0 f which size of texture should i use?(for ex:64x64,128x128) second question can i make a quad which contains 4 same textures tiled on it. .i mean a quad divided four and each of them has same texture. thanks and sorry for my bad English.
quote:

i made a square.a side is 1.0 f which size of texture should i use?(for ex:64x64,128x128)

Cannot be answered. Depends on your scale alone.

quote:

can i make a quad which contains 4 same textures tiled on it.
.i mean a quad divided four and each of them has same texture

Tile the texture, eg. supply as texture coords: (0, 0) (2.0f, 0) (2.0f, 2.0f), (0, 2.0f). Everything over 1.0f will make the texture wrap-around (repeat itself). You must have set the right texture wrapping mode, GL_TEXTURE_WRAP_S and GL_TEXTURE_WRAP_T must both be set to GL_REPEAT

/ Yann

This topic is closed to new replies.

Advertisement