logoalt Hacker News

feelameetoday at 4:52 PM2 repliesview on HN

> Triangles are easy to rasterize

sure, rasterizing triangle is not so hard, but.. you know, rasterizing rectangle is far far easier


Replies

qingcharlestoday at 5:33 PM

Rasterizing triangles is a nightmare, especially if performance is a goal. One of the biggest issues is getting abutting triangles to render so you don't have overlapping pixels or gaps.

I did this stuff for a living 30 years ago. Just this week I had Deep Think create a 3D engine with triangle rasterizer in 16-bit x86 for the original IBM XT.

show 1 reply
maximilianburketoday at 5:29 PM

…as long as all points are co-planar.