PDA

View Full Version : Textures problem



03-03-2000, 03:24 AM
I draw a box with 6 textures and inside of it (the viewing position is in the box)
a set of triangles .
For some reason I can`t get true colors for the triangles ( instead of the ones I define , I get green colors).
I use 2 modes - non textured and a textured one , and it occures only in the textured mode .

Sjonny
03-03-2000, 03:51 AM
When drawing a polygon with GL_TEXTURE_2D (or something like it), and not setting any texture points, your polygon will get the color of the point (0,0) of the texture (i guess). So when drawing a polygon without a texture you must set glDisable(GL_TEXTURE_2D);

well, this is what I found to be true. Don't know if it can be done differently.

John

03-04-2000, 09:10 AM
Thanks !!
It works.