Help! GL_TEXTURE_GEN_S wont stop..

Hello.
Im doing this but OpenGL still
genererate coordinates…?

//glDisable(GL_TEXTURE_GEN_S);
//glDisable(GL_TEXTURE_GEN_T);
//glDisable(GL_TEXTURE_GEN_R);
//glDisable(GL_TEXTURE_GEN_Q);

cheers

Originally posted by fritzlang:
[b]Hello.
Im doing this but OpenGL still
genererate coordinates…?

//glDisable(GL_TEXTURE_GEN_S);
//glDisable(GL_TEXTURE_GEN_T);
//glDisable(GL_TEXTURE_GEN_R);
//glDisable(GL_TEXTURE_GEN_Q);

cheers[/b]

Must…not…make…obvious…joke…

– Zeno

Originally posted by Zeno:
[b] Must…not…make…obvious…joke…

– Zeno[/b]

LOL. I had the same idea

Heh, ok i wont say anything. How about deleting the glEnable code AND the glDisable code that has to do with GL_TEXTURE_GEN_<X> from your code. Why do you wonder why opengl still generates the coords after you comment out the disable lines anyway? It uh…just doesnt make sence.

-SirKnight

Thanks, but really… 4*// was just to
make things a bit interesting…

Seriously, I spent a fair amount of time
making sure it is not enabled, and anyway, whatever happened before, this should still
just stop it:!?

glDisable(GL_TEXTURE_GEN_S);
glDisable(GL_TEXTURE_GEN_T);
glDisable(GL_TEXTURE_GEN_R);
glDisable(GL_TEXTURE_GEN_Q);

…drawing a textured quad here
still generates auto-texcoords…

Never heard of any other way to
turn texgen off, other than
glDisable(…).

cheers

Yes, your glDisables should stop the texture coordinate generation. You are disabling for the same texture unit that you enabled for, right? i.e. make sure your last glActiveTextureARB() is correct…

– Zeno