Weired Snow Color Problem
I am currently doing one course project, and planning to draw a falling snow scene in Opengl. I applied a background image using texture mapping, which the main color of the image is grey. When i try to draw the white snow in front of it, the falling snows are becoming grey color also. If i change the background image to some red image, the snow flakes become red.
May i know why it happens? How should i resolve it? I disabled the blending in my initialization proces..
Disable texture mapping before you draw the snow. Somthing like this:
The problem is that if you have texture mapping on, it will blend the texture with the current drawing color.
The really weird thing is that I had the exact same problem with a course last semester! My snow was grey too. Too weird!
drawBackground( );glDisable( GL_TEXTURE_2D );drawSnow( );
The problem is that if you have texture mapping on, it will blend the texture with the current drawing color.
The really weird thing is that I had the exact same problem with a course last semester! My snow was grey too. Too weird!
Simian & ff8, you are the guru! Thanks to Songho too! The opengl world becomes beautiful with your guys around!
Quote:Original post by Simian Man
The really weird thing is that I had the exact same problem with a course last semester! My snow was grey too. Too weird!
Maybe he follows the same course;)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement