2 ms·
I would start with fundamental rendering algorithms first before anything. - Write a software rasterizer - Write a software ray tracer You can do all that wi
by d26900 6y 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 https://github.com/d26900/JamaisVu/blob/main/tests.c
Lines 66 - 91.
Screenshot: https://raw.githubusercontent.com/d26900/JamaisVu/main/screenshot_tracer.png https://raw.githubusercontent.com/d26900/JamaisVu/main/scree...
Here are great resources:
- https://www.scratchapixel.com/ https://www.scratchapixel.com/
- https://www.gabrielgambetta.com/computer-graphics-from-scratch/00-introduction.html https://www.gabrielgambetta.com/computer-graphics-from-scrat...
- https://erkaman.github.io/posts/junior_graphics_programmer_interview.html https://erkaman.github.io/posts/junior_graphics_programmer_i...?
- http://immersivemath.com/ila/index.html http://immersivemath.com/ila/index.html