Different Textures
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?
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
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."
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 ???
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
But I''m using Mipmapping ???<<
glubuildmipmaps rescales your textures to power of 2 sizes
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement