Different Textures

Started by
2 comments, last by Sebo 22 years, 3 months ago
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?
Advertisement
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."


--Electron"The truth can be changed simply by the way you accept it.""'General failure trying to read from file' - who is General Failure, and why is he reading my file??"
No, that wasn''t the error.
The fault is, that I''m stupid
I used textures whose didn''t had a size of 128x128 and on..
But I''m using Mipmapping ???

>>I used textures whose didn''t had a size of 128x128 and on..
But I''m using Mipmapping ???<<
glubuildmipmaps rescales your textures to power of 2 sizes

This topic is closed to new replies.

Advertisement