Skip to main content
GameDev.net gamedev.net
🔒 Locked

texture problem

Started by Lord_Vader Jul 13, 2006 at 3:55 PM 1 replies 700+ views
Original Post
Lord_Vader
Lord_Vader
Anyone knows how to make the texture to be visible from the inner of a sphere? For example I have created a sphere and textured it with a sky map. The observer lies in the sphere. The problem is that the stars are visible only from outside the sphere. thanks
Brother Bob
Brother Bob
Don't enable backface culling, or change the front face vertex order (if it's GL_CW, change to GL_CCW, or the other way around).
Morpheus011
Morpheus011
this could be due to a few problems.

Are you doing backface culling? If so, you are culling the inner geometry of your skydome, and therefor there will be no texture applied to it.

Are you making sure you are setting your polygon mode correctly with glPolygonMode(GL_FILL, GL_FRONT_AND_BACK);?

Try those and see if you get any results

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.