   The uh, color red won't show...
  I''m writing a program with SDL and OpenGL and for some reason the color red won''t show up on screen. Like if I use glColor3f(1.0f, 0.0f, 0.0f); nothing appears, while glColor3f(1.0f, 1.0f, 0.0f); draws in green, etc. Anyone knows what might be causing this?No doubt it will be something very simple that makes me look stupid. 
  Ummm, glColor3f(1.0f,1.0f,0.0f); doesn't draw things in green. So, there may be some problems with your display...   BTW, noticed you're new to Gamedev, Glad you're here!----------------------------------"There are 10 kinds of people in this world, those who know binary, and those who don't"   [edited by - 4TheKing on February 10, 2004 10:07:22 PM];glColorMask? ;  Make sure you aren't doing anything weird with the color mask.Try calling glColorMask(1,1,1,1), before you draw whatever you're drawing.  That's all I can think of at the moment...   [EDIT] - i was just too slow...-----------------------------I never chew my cabbage twice   [edited by - odiousangel on February 10, 2004 10:12:42 PM];  Ah! I switched the program''s display mode to 32-bit colors and it works fine now.   Not sure why it wasn''t working in 16-bit though...?   And no I''m not using any color masks, but thanks guys. ;  Does your screen look normal outside of SDL? ;quote:Original post by HellBlazer  Ah! I switched the program''s display mode to 32-bit colors and it works fine now.   Not sure why it wasn''t working in 16-bit though...?   And no I''m not using any color masks, but thanks guys.   That may be because one is RGB and the other is BGR   ----------------------------------"War does not determine who is right, only who is left." -Bertrand Russell ;quote:Original post by Onemind   Does your screen look normal outside of SDL?   Yep.quote:That may be because one is RGB and the other is BGRAh... But would that change the order of the parameters of glColor()? I think not, because when I tried glColor3f(0.0f, 0.0f, 1.0f) it still drew in blue...  I guess maybe the parameters were not set correctly for 16-bit somewhere in the app.   [edited by - HellBlazer on February 10, 2004 10:42:52 PM];  Were you running in fullscreen mode when that happened?  I''ve heard that some old monitors/video cards will fail to display red with some setups.   ;quote:Original post by cowsarenotevil  Were you running in fullscreen mode when that happened?  I''ve heard that some old monitors/video cards will fail to display red with some setups.   Yes, fullscreen. My video card isn''t old, it''s a GeForce 4, but  my monitor is rather generic... I guess that might be it. Strange. 