Jump to content
  • Advertisement
Sign in to follow this  
Marty666

texturing a sphere...

This topic is 5476 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 all. I'm trying to texture a sphere. I don't really know where to start, since i want no borders, tiling a sphere is dificult. 3D textures would use too mutch memory. How do i do this fast and cheap? Thanks, Marty

Share this post


Link to post
Share on other sites
Advertisement
I'd suggest using a geosphere, since you don't get artifacts at the poles then. Otherwise just generate a set of polar coordinates (you can tile them very simple).

Share this post


Link to post
Share on other sites
I allready have the sphere. It's supposed to be a planet. It's got the vertexes messed up in the process of creating the sphere to have some sort of height map on it. The sphere was made by tesselating an octahedron and adding noise after eacht tesselation step. The noise gets less every step, so the more detail on the sphere, the smaller the noise. A bit like perlin noise. The problem is that I need to map it correctly. I found some articles about changing your texture to a spheremap and about the calculation of the uv coordinates from two angles and a radius. I would prefer to do this all on hardware. It must be possible with opengl, right?
Any info please,

Thanx!

Share this post


Link to post
Share on other sites
there are many ways to texture a sphere eg
http://astronomy.swin.edu.au/~pbourke/opengl/sphere/
note that its impossible to find a perfect solution for this problem

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!