软光栅化渲染

Target: OBJ model, Phong, Texture, Material

Rewrite this in Jai

June 19, 2026 4:22 AM (GMT+8)

说明:现阶段还是中英文混杂写笔记,因为我的英语还不足以支持我无障碍写作 QwQ Note: I will write notes in Chinese, because my English is not good enough. (But I will polish those notes to English at the final phase.)

Write colors to .ppm

Bresenham’s line drawing algorithm

Triangle rasterization

Barycentric coordinates (质心坐标)

Hidden faces removal

Original C++ tinyrenderer

Tiny renderer or how OpenGL works: software rendering in 500 lines of code

The task is as follows: using no third-party libraries (especially graphics-related ones), we will generate an image like these:

image.png

image.png

https://github.com/qiekn/tinyrenderer

Home

Author’s Blog: https://haqr.eu/tinyrenderer/