Archived

This topic is now archived and is closed to further replies.

Sebo

Different Textures

Recommended Posts

I''m sorry for my many questions, but i''m really a newbie Well, I''ve got the following Problem. I set the Textures with the glBindTextures Procedure from glaux But quadrics(cylinders) stay white :/ Can someone tell me, how to get the Texture Coordinates from a quadric?

Share this post


Link to post
Share on other sites
HAve you enabled the use of textures?
I''ve never delt with glustuff, but this is how you do it in "usual" ways:

loadtextureprocedure();

glEnable(GL_TEXTURE_2D);

glBegin(GL_QUADS);

glTexCoord2f(0,0);
glVertex3f(0.0f,0.0f,0.0f);
glTexCoord2f(1,0);
glVertex3f(1.0f,0.0f,0.0f);
glTexCoord2f(1,1);
glVertex3f(1.0f,1.0f,0.0f);
glTexCoord2f(0,1);
glVertex3f(0.0f,1.0f,0.0f);

glEnd();


Electron

"Your truth can be changed simply by the way you accept it."


Share this post


Link to post
Share on other sites