Advertisement

points and triangles

Started by April 17, 2001 02:16 AM
0 comments, last by hamzat 23 years, 7 months ago
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
cool programer

This topic is closed to new replies.

Advertisement