varieux

10-22-2010, 06:19 PM

I'm trying to solve a pernicious, difficult bug.

My code is splitting up triangles that are too big into smaller ones. Each triangle is split into four. Unfortunately some of the triangles that result appear gray instead of white. I'm using the two-sided triangle lighting model.

I'm beginning to notice however that when I change the order of the points within each triangle, I can get some of them to return to the normal white color. Why might this be the case?

Thanks.

My code is splitting up triangles that are too big into smaller ones. Each triangle is split into four. Unfortunately some of the triangles that result appear gray instead of white. I'm using the two-sided triangle lighting model.

I'm beginning to notice however that when I change the order of the points within each triangle, I can get some of them to return to the normal white color. Why might this be the case?

Thanks.