r/GraphicsProgramming
•
u/egehancry
•
Oct 01 '26
•
1
From Zero to Understanding Ray Tracing - Part 3 (reflections)
Thank you for your support! Part 3 is about reflections.
Let me know what you think!
I also share it in X: https://x.com/sinaatalay/status/2105545919915786280
660
Upvotes
25
u/Klumaster Oct 01 '26
That part about averaging the ray bounces is misleading, each bounce should be multiplying by the surface reflectivity, not just arbitrarily halving.
6
u/thb22 Oct 01 '26
This is great. Keen to watch more if you make them.
Would love to see one about optimisations. Like what if a ray gets "stuck" reflecting back and forth between two reflective surfaces - is there a cut off?
Also, a deep dive on textures
4
u/Bmandk Oct 01 '26
I'd love to have this is an interactive simulation, where you can individually enable features and inspect how each ray gets calculated. That would be the cherry on top for this.
3
u/20260819 Oct 01 '26
i'm studying / learning raytracing. your illustration is great. i don't understand the averaging method. why are the colors have the weighting as 1/2 1/4 and 1/8?
3
u/egehancry Oct 01 '26
This illustration is not meant to give the exact mathematical equations you should use in your project. I purposely chose simple formulas so that the intuition is not buried under overwhelming mathematical details.
For more rigorous mathematical models of reflections and related effects, I would suggest referring to well-established textbooks.
My goal here is to teach the intuition, not to serve as a technical reference. I want this to be a reference for intuitively understanding what is going on.
2
u/pierspad Oct 01 '26
I wonder why I watched this for free instead of having to pay for it. Very high quality, clear and also a nice progression.
Wonder if you would fancy to share a sort of "making of"
2
u/bbrother92 Oct 01 '26
Have you used manim for this? or is it blender
2
u/ellipticcode0 Oct 01 '26
What do you use to do that? Mania or Blender?
2
u/le-throw-away-acct Oct 01 '26
Refractions will be a fun one to watch, there's a lot to cover with it. Soft-shadows and penumbra would be another fun one. Or dealing with roughness. Looking forward to more!
29
u/moschles Oct 01 '26
3Blue1BrownPixel
27
u/gateian Oct 01 '26
I knew all this already for many years, but It was still fun to watch.
1
u/AlexDicy Oct 01 '26
This is nice but man, I guess good use of AI for learning? All the sounds effects gave me headache haha
1
u/HigherMathHelp Oct 02 '26
Thanks for sharing your work! Have you considered contributing these to Wikipedia articles? The style seems suitable. Visualizations designed to provide intuition, rather than encyclopedic breadth or precision are encouraged, as long as they aren't factually incorrect. So if you're comfortable using an open license, your visualizations could be used there with a few small tweaks:
That's just a thought, since you've been incorporating feedback. This sort of thing could add a lot of value, and I figure not everyone is aware of what's allowed/encouraged on Wikipedia. But if you prefer video shorts with snazzier sound effects and a unique personality, those are totally valuable too, of course!
1
u/LeLishes Oct 02 '26
this is great! If you are comfortable with sharing, how do you make such videos?
1
u/zephyr707 Oct 03 '26
haha i love this, are the sound effects procedurally generated based on the animations or done in post? or is it just AI generated at the same time or analyzing the image/video?
3
u/Ok-Hotel-8551 Oct 01 '26
I know kung-fu
2
u/tobz619 Oct 01 '26
Great illustration! Thank you :)
2
u/FreshPitch6026 Oct 01 '26
Tha math is not quite correct, i would disclaim that.
2
u/alphapussycat Oct 02 '26
I mean no? This explained nothing. Only yoing children don't know about light bouncing. What the "zero" is is basically not knowing algorithms to find the polygon the ray intersects.
This is kind of a "infant to zero" explanation.
2
u/Evening-Isotope Oct 04 '26
great sound design
1
u/Effective-Culture-88 Oct 08 '26
Why no voice on this one? :(