• Advertisement

Archived

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

Texture

This topic is 5897 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

Can I use texture that aren''t 64x64,128x128,256,256??? And if I can how?? I would be very thankful if anyone will help me. CluberX

Share this post


Link to post
Share on other sites
Advertisement
I''m not sure but I thnik that you are not forced to use square textures but their height and width have to be a 2^X number.

Share this post


Link to post
Share on other sites
If you want an oddly shaped texture all you have to do is make sure that your texture fits inside one of the larger textures. Then what you do is when you apply the texture to the polygon bind it from the corner of the texture and only apply the portion of the texture that you need to the polygon.

I believe that the reason for the size requirement is because of byte boundaries with hardware. Hardware and software can be optimized greatly by statically defining texture sizes. Obviously the performance increase is substantial due to its usage.

The space on the texture that you aren''t using doesn''t have to be empty memory either. You can put other stuff in there, other textures that is. You just have to bind the right part of the texture to the target polygon. Of course you''ll have to include data with the texture that outlines where a certain texture begins on the texture pictures.

RandomTask

Share this post


Link to post
Share on other sites

  • Advertisement