Okay... I want to devide a triangle in to 3 seperate ones.
I create 3 vertices:
LD=AddVertex(SURF,0,A,0)
RD=AddVertex(SURF,2,B,0)
UP=AddVertex(SURF,1,C,1)
(where A,B,and C are unknown)
I calculate a point in the middle:
x=1 : z=1 : y=((a+b)/2)+c)/2
Mid= AddVertex(SURF,x,y,z)
Now I create 3 triangles each with their own set of 3 vertices, using these 4 points.
That works, except for an anoying shadow that is darkest in the middle of the 3 triangles.
Is this because of an error in my calculation, or a side-effect or something?
I can't seem to figure this out, so some help is much appreciated...
I create 3 vertices:
LD=AddVertex(SURF,0,A,0)
RD=AddVertex(SURF,2,B,0)
UP=AddVertex(SURF,1,C,1)
(where A,B,and C are unknown)
I calculate a point in the middle:
x=1 : z=1 : y=((a+b)/2)+c)/2
Mid= AddVertex(SURF,x,y,z)
Now I create 3 triangles each with their own set of 3 vertices, using these 4 points.
That works, except for an anoying shadow that is darkest in the middle of the 3 triangles.
Is this because of an error in my calculation, or a side-effect or something?
I can't seem to figure this out, so some help is much appreciated...