-
Texture Mapping
I used to glutSolidSphere to draw a sphere.
How to glue an image on this?Should I supply
texture and geometry coordinates?
-
Re: Texture Mapping
try : in your GL init function :
glEnable(GL_TEXTURE_2D);
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
glEnable(GL_TEXTURE_GEN_R);
-
Re: Texture Mapping
Thanx..It worked.
The bitmap is repeated.I want only one bitmap to be glued in a sphere.Is there any parameters other than GL_REPEAT and GL_CLAMP
avilable?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules