PDA

View Full Version : Texturing a primitive ...



leonel
05-01-2005, 05:45 PM
How con I texture a sphere or cube created using the opengl's functions like glutSolidSphere ...

Thanks.

dorbie
05-02-2005, 11:09 AM
Just enable texturing and load a texture, they have coordinates built in I think.

You won't have much control over the texture coordinates. You could use texgen and/or the texture matrix to alter coordinates.