cart: empty [ Login ]

OGL different triangle lighting

1 
myzzard
5/2/2018 2:16 PM
Hello, I'm generating 3D building model from 2D plan. My problem is that for roof I can see some triangles having different lighting than the other ones. (see the picture) How do I construct it? I have a polygon representing roof part. I triangulate it and create DxfPolyfaceMesh object with all triangles included as DxfMeshFace. Thanks in advance Mariusz
ogl_triangle.PNG
Wout
5/2/2018 5:15 PM
Can't really tell without input data and code. But it looks like you have some jumps in the z-coordinate there. Perhaps first strip your sample to a few triangles and find out what the issue is with the coordinates? - Wout
1