COURSE of the MONTH

Need help in goraud shading.

I wrote a grayscale goraud shading,
but it has a problem-white lines
on the edges of the polygons.It maybe
becouse I'm using 3ds format,where all
objects from triangles polygons.(At
least 3DICA tutorial says something
about it problem with the triangles :))
So I need a good answer,tip,code,
tutorial or anything that will help me
to solve that problem.

make sure your goraud shading slope is correct, and does not overrun, and neither does your triangle draw routine. A combo of this could be death (or white lines, whichever comes first). If you plot 1 pixel to many for your triangle, your shading slope will probably overrun making the pixel a wrong color in the whole picture. Some people have their triangle drawwer make an extra pixel so adjunct polygons do not have 'holes' between them.