Archived

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

Newbie texture problems

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

Using NeHe tutorials 5 & 7 and a bit of trig, I''ve been able to make a sphere from quads. The idea is that I want to zoom in and out displaying a different level of detail or different textures. The sphere works and I have a very basic map of the world texture, but I have two problems: 1. The original bitmap had to be made a square before it would work. What format does the bmp file have to be in for it to work, as I would rather use a larger rectangular picture. 2. The picture of the world is very badly distorted. Does anyone have any experience of correcting such issues? Thanks Dave Steadman.

Share this post


Link to post
Share on other sites
The main problem is that your stretching a square texture around a sphere, so naturally things are going to be screwd up. You have two choices:
1. You can change your texture coordinates which would help a bit but not completely fix your problem.
2. You can change your texture to one that resembles a flat globe. It should look mainly like an oval and have a bunch of extra white space but thats ok we wont see that. The benifit is that you wont have to stretch it so much to make it fit because the texture was basicly unwraped off of the globe. The tricky part is the texture coords, but you said you already wraped it so you have the basic idea.

Other than doing that I can''t think of an easier way off the top of my head. Hope that helps. Oh and most video cards like the height/width of the textures to be a power of 2. Like 128x256, 256x256,64x512.

Share this post


Link to post
Share on other sites