Link to home
Start Free TrialLog in
Avatar of Pagan8
Pagan8

asked on

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.
Avatar of TheMadManiac
TheMadManiac

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.

Just some thoughts,

 Floris
ASKER CERTIFIED SOLUTION
Avatar of Ready4Dis
Ready4Dis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial