2 ms·
> Starting with a software renderer is nuts. No, not really. You can write a simplistic ray tracer and rasterizer in about 10 - 50 lines tops: https://github.
by d26900 6y ago
> Starting with a software renderer is nuts.
No, not really. You can write a simplistic ray tracer and rasterizer in about 10 - 50 lines tops:
https://github.com/d26900/JamaisVu/blob/main/tests.c https://github.com/d26900/JamaisVu/blob/main/tests.c
Lines 66 - 91.
The result/screenshot: https://github.com/d26900/JamaisVu https://github.com/d26900/JamaisVu
If this is "nuts", then so be it. Let me be nuts. :P
- soylentgraham 6y agoI wouldnt use line count as a metric to judge how sensible an approach it is for learning how to get into graphics programming. The OP already cited shaders as one avenue, and shaders are so so easy to get immediate results from; as opposed to making a small mistake in a path tracer and spending hours debugging why your screen just shows one colour. Need to debug where youve gone wrong with a shader? Return float4(uv,0,1) and its working again.