PDA

View Full Version : Map a texture on the inner side of the sphere



ahmed.abouraya
12-08-2009, 12:18 PM
does anyone know how to map a texture on the inner side of a sphere?

marshats
12-08-2009, 09:50 PM
Just map a texture to a sphere normally (try gluSphere) and use gluLookAt to put your eye inside the sphere looking out.

ahmed.abouraya
12-09-2009, 09:19 AM
it's not working, when i'm inside the sphere it disappears.

Frodak
12-09-2009, 09:20 AM
What disappears? The sphere? Is backside culling enabled?

ahmed.abouraya
12-09-2009, 10:33 AM
The sphere disappears,i used this glEnable(GL_CULL_FACE);maybe this is the problem

ahmed.abouraya
12-09-2009, 10:38 AM
it's working now i used glEnable(GL_BACK); that was the problem thanks