PDA

View Full Version : Texture Wrap don't wrap



thek3nger
05-26-2011, 06:47 AM
Hi to everybody! :)

I've a big problem and I'm fighting with it from weeks :(

I've problem with this project https://github.com/THeK3nger/Robot-Arm/blob/master/main.cpp

In particular I have problem with the "floor". How can you see from attached file, floor's texture is repeated only from left to right. Instead in vertical direction the texture is stretched :eek: Why? I think that I have set all with GL_REPEAT correctly... but don't work!

I'm in a dead end street.

Thank you all.

BionicBytes
05-26-2011, 07:24 AM
why have you done this during init()?
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);

If you don't need automatic texture generation, turn these off.

thek3nger
05-26-2011, 07:54 AM
I need this. I use automatic texture generation in RLink.cpp to apply textures to various link of robotic arm. :S

thek3nger
05-26-2011, 07:56 AM
Oh! Without GL_TEXTURE_GEN_S it's work! :eek:

So I can activate them only in RLink.cpp... now I try. Thanks :D