PDA

View Full Version : Texture Size and pict size



morzech
01-26-2002, 02:32 AM
Dear Coders,
is it nessesery to set texture size alway for 2^x by 2^y. What if I need map picture that is not 2^n size.

greetings

Mateusz

Bob
01-26-2002, 12:19 PM
The texture must be of size 2^x by 2^y. If you use the NV_texture_rectangle extension, you can use any size (up to a maximum of course). If this extension is not supported by your implementation of OpenGL, then you must scale the image.

Mazy
01-26-2002, 11:25 PM
You can make a n^2 image thats bigger than you texture, and insert your image in the lower left corner, and size the texture coords to just show that part.