Hey HN, 5 years ago I was 17 and learning to code C/C++ in a coding bootcamp (42). One of the projects was a simple C ray tracer. I really enjoyed working on the project and always loved computer graphics, so I decided to create my own path tracer from scratch, in C++, without using any third-party libraries. I ended up working on it consistently for over a year, then sporadically when CG excitement hit me again. Rec…
Show HN: I wrote a C++ ray tracer from scratch without AI
61–67 of 67 posts
Re: Show HN: I wrote a C++ ray tracer from scratch without AI
#62Re: Show HN: I wrote a C++ ray tracer from scratch without AI
#63"Without AI" is the new "Written in Rust", SCNR
Re: Show HN: I wrote a C++ ray tracer from scratch without AI
#64Earlier quoted context omitted.
Great work, the examples look fantastic. I will say, it's misleading to put "without AI" in the title for you to then comment on your submission that you have in fact used it. While it may only be in a trivial capacity, you've still used it.
I get your point. I consider it fair with the disclaimer because the "manual" version was very similar to current but missing some love
Re: Show HN: I wrote a C++ ray tracer from scratch without AI
#65Hey HN, 5 years ago I was 17 and learning to code C/C++ in a coding bootcamp (42). One of the projects was a simple C ray tracer. I really enjoyed working on the project and always loved computer graphics, so I decided to create my own path tracer from scratch, in C++, without using any third-party libraries. I ended up working on it consistently for over a year, then sporadically when CG excitement hit me again. Rec…
JFYI: Your inverse ray direction calculation is not NaN-safe: if rays are completely axis-parallel in one dimension, so the direction value is 0.0 for that axis, you'll be doing the val / 0.0 which results in a NaN... Also, as you're using full double/f64-precision all the time, you're leaving a fair bit of performance on the table: transcendentals (sin(), cos(), etc) in particular - can be a lot slower than when usi…
Re: Show HN: I wrote a C++ ray tracer from scratch without AI
#66Earlier quoted context omitted.
I just launched the project, so can't say it helped me professionally yet. Almost all of the time invested in this was pre-AI. I agree it's harder to justify those deep dives but still worth it if you do it alongside AI IMO.
Even if the project didn't become popular. Have you been able to use it as part of your portfolio to get a job, or move into academia ? Perhaps what you learned in the project was useful in some other way ?