Hi, I’m using Multitexturing this way:
and I draw it with:
glMultiTexCoord2fARB(GL_TEXTURE0_ARB, 0.0f, 1.0f);
glMultiTexCoord2fARB(GL_TEXTURE1_ARB, 0.0f, 1.0f);
glVertex3f(-1, 1, 1);
It works, but when I now want to draw things without Multitexturing It is black without any texture.
I do this like this:
glTexCoord2f(0.0f, 1.0f); glVertex2f(-5, -5);
What am I doing wrong ?
Normal works. Multi works, but not together.
Do you disable the second texture unit when you dont’t need it anymore?
Switch to second texture unit
switch back to first
I’m sorry, but I find it very amazing that people can enable stuff, but don’t know how to disable it. It should be very clear how to do if you read some (any!) documenation about it.
A rule: If you enable it with glEnable, you diable it with glDisable.
my problem was not to disable it.
I forgot to switch back to TEX 0.
I agree to you ‘RULE’.
I apologise for being rude, but a question like “how to do that” just begs for an RTFM answer.
Anyways, glad we could help you.
>>my problem was not to disable it.
I forgot to switch back to TEX 0.<<
this has gotten me as well before, until i remembered ‘opengl is a state machine’