Sign in to follow this  
immuner

Mapping texture to a sphere

Recommended Posts

I haven't managed to map the texture to a sphere properly (no strecthing, etc.).
My texture is 2:1 ratio and i have used any technique that could come to my head. Any way to extract phi and theta from the cartesian coordinates of the sphere? Or is there any other simpler way?

Share this post


Link to post
Share on other sites
Thank you for your answers. Finally, i solved the problem with mapping. I just had to find out abetter way of mapping the uv coordinates to the sphere. Im using a dynamically generated sphere so doin it on 3d modelling software wont help. Anyways, the problem now is an annoying seam where the texture starts again and it seems i need to duplicate those vertices.
After that, i just need to think of some cool effects to add.

P.S. I am using an indexarray to draw my mesh. Will that cause any problem if i want to use shaders? Any website with some cool shader effets?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this