Hacker News new | ask | show | jobs
by d26900 1950 days ago
I would start with fundamental rendering algorithms first before anything.

- Write a software rasterizer

- Write a software ray tracer

You can do all that without exiting a programming language's standard library.

I wrote a simple ray tracer (primary rays only) in vanilla C89 in about 30 lines (if you don't count the PPM image library that I made):

https://github.com/d26900/JamaisVu/blob/main/tests.c

Lines 66 - 91.

Screenshot: https://raw.githubusercontent.com/d26900/JamaisVu/main/scree...

Here are great resources:

- https://www.scratchapixel.com/

- https://www.gabrielgambetta.com/computer-graphics-from-scrat...

- https://erkaman.github.io/posts/junior_graphics_programmer_i...?

- http://immersivemath.com/ila/index.html