evian
06-16-2005, 05:29 AM
I use glDrawPixels to draw an array of pixels.
Image[i][j][1]=value; /green
Image[i][j][2]=value; /blue
Image[i][j][3]=value; / red
glDrawPixels(blabla);
I want blue pixels and white pixels. The blue ones shall have values of 8bit (0..255). But I am confused. When I set green "plane" to 255 and/or red "plane" to 255, I get strange colors. When I put red and green plane to 0, I get blue pixels (different brightness as I want) on BLACK pixels. But I want them on WHITE pixels.
How does CONTROLLED RGB mixing with glDrawPixels work?? IŽd appreciate your help!!
Image[i][j][1]=value; /green
Image[i][j][2]=value; /blue
Image[i][j][3]=value; / red
glDrawPixels(blabla);
I want blue pixels and white pixels. The blue ones shall have values of 8bit (0..255). But I am confused. When I set green "plane" to 255 and/or red "plane" to 255, I get strange colors. When I put red and green plane to 0, I get blue pixels (different brightness as I want) on BLACK pixels. But I want them on WHITE pixels.
How does CONTROLLED RGB mixing with glDrawPixels work?? IŽd appreciate your help!!