Help!
I want to make a scoccer ball.
I mean I can make a sphere.
but I don’t know how to make textures mapping
to sphere.
and I know with when from No.1 until No.4 it uses,
it is possible but I don’t want to use ‘glTexGeni’. I want to program another way.
could you explain me concretely?
1.glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP);
GL_SPHERE_MAP isn’t literally meant to texture a sphere…
try changing GL_SPHERE_MAP to GL_OBJECT_LINEAR.
if that doesn’t work for you, you can always generate your own texture coordinates.