• Advertisement

Archived

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

Help with Textures

This topic is 6034 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites
I got the impression that you think that textures has to be square, that is not a requriment.

Share this post


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

Share this post


Link to post
Share on other sites

  • Advertisement