Monthly Archives: May 2010

Avoid unsigned types by default

For some reason or another, unsigned types in C++ are heavily overused. I know that Java doesn’t have them, and many students who learn programming with Java think this is a really serious deficiency which they have to make up … Continue reading

Posted in Programming | Tagged , | 12 Comments

Triangle rasterization in homogeneous coordinates gotcha

There’s a very difficult to find bug you might encounter when you try to implement triangle rasterization in homogeneous coordinates (as described in “Triangle scan conversion using 2D homogeneous coordinates“.) You’ll face the problem if you transpose the interpolation matrix by … Continue reading

Posted in Graphics | Tagged , | Leave a comment