points and triangles
Hi all,
In my app I have to visualise GL_POINTS and GL_TRIANGLES. My triangles are with lighting. My points have to be without lighting. When I visualise points only I turn of the lighting, when I draw triangles only I draw them with lighting. I tried to draw the points with lighting also but when I rotate the scene they have different colors. How could I visualise both points without lighting and triangles with lighting on one scene?
Thank you in advance.
normaly so:
glEnable(GL_LIGHTING)
SetUpLight;
DrawTriangles;
glDisable(GL_LIGHTING);
DrawPoints;
Swarp;
dont forget that you must update Light every frame is you wanna it to move with scene.
Dont underand about points..
so then you rotate scene they change they colors?
if yes test are you realy disable lighting
glEnable(GL_LIGHTING)
SetUpLight;
DrawTriangles;
glDisable(GL_LIGHTING);
DrawPoints;
Swarp;
dont forget that you must update Light every frame is you wanna it to move with scene.
Dont underand about points..
so then you rotate scene they change they colors?
if yes test are you realy disable lighting
cool programer
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement