PDA

View Full Version : help with shading...



GbenderL
06-01-2005, 12:48 PM
K i'm new at this and I dont really know what i'm doing, but here is my problem. I just started toying around with openGL and i tried to render my room, just with color, no texture mapping or anything. It just looked kind of dull without shading, so i enabled light and put in a light source. And then everything was shaded... but it was all just white and shades of gray. What am I doing wrong?

ZbuffeR
06-01-2005, 01:45 PM
glEnable(GL_COLOR_MATERIAL);
" If enabled, have one or more material parameters track the current color. See glColorMaterial. "