Archived

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

Sebo

Different Textures

Recommended Posts

Sebo    122
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
Electron    122
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
Sebo    122
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 ???

Share this post


Link to post
Share on other sites
zedzeek    529
>>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

Share this post


Link to post
Share on other sites