View Full Version : problem with texture mapping & coloring

08-05-2004, 06:22 AM
i made a progarm that creates 3d rooms connected between them & the camera navigates between the rooms. all the walls are texture mapped.
now when i add a colored object to the room (a red cube) the whole scene is colored in transparent red, why?? how do i get rid of it??

08-05-2004, 07:25 AM
By default the textures will be modulated with the current color so since you change the color to red the textures will be modulated with red instead of white.

08-10-2004, 01:17 PM
that means that after you draw your red object, you should switch back to white (with a simple glColor(1,1,1) or something....)