logoalt Hacker News

suprjamiyesterday at 9:09 PM5 repliesview on HN

One of my goals this year is to write a basic software 3D renderer from first principles. No game engine, no GPU. I'm looking forward to it.


Replies

pixelpoettoday at 12:28 AM

Good show, this is how I recommend doing it and have been teaching it for years.

It's quite unfortunate that basically everyone thinks 3D graphics necessarily implies rasterisation and using someone else's API, and I feel extremely lucky to have taught myself in a time when you could trivially display images by direct memory access (mode 13h), and to have focused on ray tracing instead of rasterisation.

ggambettayesterday at 9:34 PM

OP's link is a good one, but if you want a different perspective (heh), there's https://gabrielgambetta.com/computer-graphics-from-scratch/i..., also from scratch, also for free. The name clash is unfortunate, I don't really know who started using it earlier :(

delta_p_delta_xyesterday at 9:25 PM

Here you go: https://haqr.eu/tinyrenderer/

listicyesterday at 9:21 PM

build-your-own-x*, a popular compilation of "well-written, step-by-step guides for re-creating our favorite technologies from scratch", contains some.

* https://github.com/codecrafters-io/build-your-own-x

rabfyesterday at 10:58 PM

https://www.youtube.com/watch?v=qjWkNZ0SXfo

One Formula That Demystifies 3D Graphics