RomanKositsyn's picture

Color triangles

Hello.
I have array of color triangles

After rotate, i have strange artefacts

AttachmentSize
1.png49.08 KB
2.png53.13 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
RomanKositsyn's picture

All okey.

Part of code to prepeare
...
GL.NewList(numDisplayList, ListMode.Compile);

...for fill color

GL.PolygonMode(MaterialFace.Front, PolygonMode.Fill);
GL.Begin(BeginMode.Triangles);
...(repeat for every triangle)
GL.Color3(...);
GL.Vertex3(...);
GL.Vertex3(...);
GL.Vertex3(...);
...
GL.End();

..and for line
GL.PolygonMode(MaterialFace.Front, PolygonMode.Line);
GL.LineWidth(2);
GL.Begin(BeginMode.Triangles);
...(repeat for every triangle)
GL.Color3(...);
GL.Vertex3(...);
GL.Vertex3(...);
GL.Vertex3(...);
...
GL.End();

GL.EndList();

Thank you !

AttachmentSize
t3.jpg108.04 KB