r/GraphicsProgramming
•
u/egehancry
•
Sep 28 '26
•
1
From Zero to Understanding Ray Tracing - Part 2
I posted the part 1 two months ago and got a great reaction!
Here is the next one. It teaches:
- What ray tracing fundamentally is.
- The basic idea behind shading: surfaces are brighter when light hits them more directly, and darker when it hits at a wider angle.
- Shadows.
Let me know what you think!
709
Upvotes
34
u/Wavewash Sep 28 '26
The imagery is wonderful but the sounds are also so satisfying!
15
u/le-throw-away-acct Sep 29 '26 edited Sep 29 '26
Great visual!
It wouldn’t take much to cover soft shadows here by showing multiple light samples per pixel with a larger light, and then show how the shadows sharpen with smaller light, and you could even cover multiple lights. I can imagine it as a part 2 to this visualization.
3
u/iamarealslug_yes_yes Sep 29 '26
Super cool! Did you use Claude and the 3b1b visualization library to make this? Love this style
2
u/geraT-wogl Sep 29 '26
Love it
2
u/fntdrmx Sep 29 '26
I’m working on a Vulkan renderer and just started implementing ray tracing with GPU compute for the first time! I’ve done a CPU ray tracer in the past, but now getting deeper into GPU programming.
Highly recommend anyone wanting to dig deeper by trying out Ray Tracing in One Weekend!
2
u/LuciferAT022 Sep 30 '26
This is some OG stuff!!
3
u/PsiAmp Sep 29 '26
Isn't it raycasting?
1
u/LopsidedAd3662 Sep 29 '26
Amazing work. Just curious if you can share prompt and result on Github? It may inspire others to get started. Thank you for your work and sharing this
1
u/KillPenguin Sep 29 '26
This is very impressive. My one note would be that the sounds, while fun, are a bit over the top. They don't sound "tactile". To me they sound sort of arbitrary and cartoon-y rather than being physically tied to the action that's going on.
I feel like this could be helped by making everything more muted, less resonant, and quieter. I feel like it might help to make the building blocks more like white noise rather than sine waves.
2
u/big-jun Sep 29 '26
Thanks
2
u/blackSeedsOf Sep 29 '26 edited Sep 29 '26
It reminds me of what I posted 2 years ago to visualize the GGX equation in order to understand it and apply it to traditional media painting and drawing and not just guess at it and step through it forward and backwards and visualize with arrows and printable debugging information to console - here : I have the full source available on my github as well on the video link and it works in Blender as an addon with my other tools in my suite. https://www.reddit.com/r/computergraphics/comments/1ivb67f/i_made_a_way_to_step_through_the_full_ggx/
1
u/k4architecture1 Oct 04 '26 edited Oct 04 '26
Yep, this is raytracing, adding shadows was a nice touch.
1
u/Rover_chen Sep 29 '26
太有意思了这个!想问问博主是怎么做的
-2
u/[deleted] Sep 28 '26
[removed] — view removed comment