Hi, I have a problem with this code below: I’d like to use multitexturing and when I inserted the code to do this, my entire scene takes colors of texture (eg appear more brown) or the light seems fall down; Multitexturing seems works…but I have this change of ‘color’ Why this? Is my code right? Thanks
sorry,I’m drawing a quad; this code put texture
tex on texture lastTex; this works, but I have a change of color of all scene (eg I draw also some white lines, that they take the color of texture I loaded (eg brown);the rest of scene haven’t texture; it has only white lines and a write “hello” that change color also; (before implement multit. they were white; thanks;
Mickey, the code you posted isn’t sufficient to produce textured results, unless of course there’s a glEnable(GL_TEXTURE_?) elsewhere. Supposing that there is, be sure to disable texturing afterwards, else all geometry to follow is doomed to the same textured fate.
Originally posted by jide: Well, reading some books or documents should really help you. Enabling/disabling should be done for each texture unit.
Yes, I red the problem; I have use enable/disable texuring; now the white light don’t take texture color but white line became gray (seems light fall down). Any hints? Thanks