Skip to content

Visual troubleshooting

Dmitry V. Sokolov edited this page Feb 29, 2016 · 17 revisions

Permanently under construction

This page is not meant to be a FAQ section; instead I show here several examples of bugs me and my students were able to fix without looking into the source code, solely by observing things in the images.

Triangle rasterization: line sweeping

Bad sort by y-coordinate, the vertices are sorted, but the data coming with the vertices is not

Gouraud shading, forgot to sort intensities

Z-buffer, forgot to sort z coordinates

Horizontal sort of two vertices splitting the triangle