3w
12-10-2002, 10:53 PM
the problem here:
i want to draw a scene with OGL.
While, after i draw the grid (by some blue lines),the sky become blue too. it's so dark
http://www.opengl.org/discussion_boards/ubb/frown.gif
the sky is made up of 6 texture .bmps.
i wonder what should i do to avoid this . NEED ur help ~~thx.
code following :
......
glDisable(GL_LIGHTING);
glDisable(GL_LIGHT0);
glColor3ub(0, 0, 255);
glBegin(GL_LINES);
DrawLines();//to get some grid
glEnd();
sky.DrawSky();//draw sky - a Box
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
......
i want to draw a scene with OGL.
While, after i draw the grid (by some blue lines),the sky become blue too. it's so dark
http://www.opengl.org/discussion_boards/ubb/frown.gif
the sky is made up of 6 texture .bmps.
i wonder what should i do to avoid this . NEED ur help ~~thx.
code following :
......
glDisable(GL_LIGHTING);
glDisable(GL_LIGHT0);
glColor3ub(0, 0, 255);
glBegin(GL_LINES);
DrawLines();//to get some grid
glEnd();
sky.DrawSky();//draw sky - a Box
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
......