Hi, I was wondering if instead of making the normal 256x256 texture (or some other square), if there is a way to use textures that are of irregular shape, such as 200x75 or such. In particular, I would like to simulate a billboard (like the ones on the side of the highway) by simply drawing a rectangular quad and texture mapping it with a rectangular texture (some picture or photo) that fits the billboard perfectly. How can I do something like this? Any help is appreciated; thank you.
well if you have a 200x75 texture you can use a 256x256 texture and fit there 3 of your 200x75 textures (which will take then 200x225) and you can also try to fit some small textures into the space that''s left. That''s how it''s getting done. hope it helps.
With best regards, Mirek Czerwiñski http://kris.top.pl/~kherin/
Your texture dimensions have to be powers of 2. If you want it to be otherwise, load the texture as a 256x256 (or whatever) and use the proper texture coordinates to actually use the part of the texture that you want.