PDA

View Full Version : How to use TEXTURE on predefined objects



06-16-2003, 01:40 AM
HI! Does anyone know ho to put texture on OpenGL pre-defined (like sphere, cube etc.) objects?
Or in general, does somebody have an example of textured (3D) object (not check example from the guide book)

Thanks in advance,

Ervin

Gavin
06-17-2003, 01:40 AM
Is it the texture mapping you can't do or the 'pre defined'? objects?

Acheum
06-17-2003, 10:25 PM
if the predefined object has texture coordinates (like glusphere or other objects in glu extension), you just have to load the texture and enable it before drawing the object !
If it hasn't texture coordinates, it's more complicated...
Chack the pre-defined object documentation to see !

starman
06-19-2003, 10:12 AM
Are you using GLU quadrics to draw your sphere? If so, you need to call this:
http://www.cevis.uni-bremen.de/~uwe/opengl/gluQuadricTexture.html

06-26-2003, 03:44 AM
Wel, it is clear to me now that one can apply textures on, for example, sphere made by gluSphere command. But stil, I do ot menage to apply it properly. Maybe I am not using parameters in the good way or something else. have to say that I am only a beginner, and you can see why http://www.opengl.org/discussion_boards/ubb/smile.gif
Do you have an example?

Best regards,
Ervin

06-30-2003, 05:03 AM
this is not an answer to your problem, but i too have had the same one. i can't understand textures either. did u get any sample code from elsewhere? if so, please help. thanx!