Help with Textures

Started by
3 comments, last by HyprLogik 22 years, 9 months ago
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.
|-|A[k3R$Z R //|-|AT |V|Ak3 t|-|3 //0R|_D g0 R0|_|||D!!
Advertisement
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/
With best regards, Mirek Czerwiñski
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.
I got the impression that you think that textures has to be square, that is not a requriment.
as others have said textures must be powers of 2 thus u need a 256x128 texture. some cards eg geforce can handle non power of 2 textures

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement