View Full Version : Texture Mapping
azariah
04-30-2002, 01:14 AM
I used to glutSolidSphere to draw a sphere.
How to glue an image on this?Should I supply
texture and geometry coordinates?
the_blob
04-30-2002, 03:59 AM
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);
azariah
05-06-2002, 12:56 AM
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?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.