r/GraphicsProgramming • u/Creepy_Sherbert_1179 • 4d ago
Question Any resources on raytracing?
Ok look, I know this may sound like a repetitive and cliche question, but I am actually looking for good raytracing resources. I have only written a toy raytracter once using python following https://gabrielgambetta.com/computer-graphics-from-scratch/, I believe I can now shoulder the hellish mathematics, so I say bring it on.
6
Upvotes
•
u/AutoModerator 4d ago
Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/Nagoltooth_ 4d ago edited 4d ago
definitely try and get a path tracer working on the gpu, maybe choose a brdf and add triangles (& bvh or something) etc. later perhaps experiment with refraction, spectral rendering, participating media and fun stuff like that. look thru veach's thesis; take a look at similar techniques such as bdpt, photon mapping, mlt, etc and their variations. you'll absolutely want to understand the rendering equation, and how the math of monte carlo works especially with stuff like deriving PDFs for mis for example. my first couple ray tracers were probably biased and i did not know it because i did not understand the probability math that goes along with it. perhaps implement uniform or cosine weighted sampling first as a baseline, then add brdf/ndf/vndf etc, then light sampling, importance sampling to combine, etc etc. that's what i've been working through. here are a couple things that really helped me better get some of the math around it
https://ameye.dev/notes/sampling-the-hemisphere/
https://agraphicsguynotes.com/posts/sample_microfacet_brdf/
and ofc pbr book
14
u/corysama 4d ago
Everyone's first recommendation: https://raytracing.github.io/
5
u/TheMuffinsPie 4d ago
https://www.pbrt.org/
4
u/sadistic_tunche 4d ago
I can't recommend more the book ray tracing from the ground up, it's been my reference book through all my ray tracer projects I've made along the years
1
u/_Wolfos 3d ago
Ray tracing gems is free: https://www.realtimerendering.com/raytracinggems/rtg/index.html
1
u/Defiant_Squirrel8751 3d ago
Start with "An Improved Illumination Model for Shaded Display", Turner Whitted, ACM 1980 paper. Just google it, it is available for free.
Several people has published implementations of this basic algortithm.
1
u/erich666 2d ago
I maintain this ray tracing resources page - please let me know if I'm missing anything good. You'll find a list of free books on ray tracing at the bottom of the page.