• Advertisement

Archived

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

Different Textures

This topic is 5852 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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."


Share this post


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

  • Advertisement