Light Scattering Demonstration - 2D Pathtracing
by SpinningCube
Description
Thanks to @griffpatch for the "Find Normal" block. Check out @squirrelsRcool's similar project: https://scratch.mit.edu/projects/877109780/ This project is a 2D path tracer. Every frame, many samples are explored and accumulated. For each sample, a ray is sent in a random direction from the light source, after which it bounces several times off of the scene surfaces. This simulates the phenomenon of global illumination. For each bounce, it loses a bit of intensity, picks a random direction from the surface, and goes in that direction. I use the pen extension to trace the light paths and illuminate the scene. I designed various scenes for the light to travel through. Some look more like floor plans, others are more abstract. For the thumbnail, I ran the simulation in Scene 11 and took screenshots at different durations. The final image is a combination of all the images which I made using external software. It's kind of like merging multiple exposures to make an HDR image. #Math #Simulation #Light #Lighting #Ray #Raycaster #Raytracer #Raytracing #Raytrace #Global #Illumination #Reflections
Instructions
Use Turbo Mode by either: - shift-clicking the green flag - See inside > Edit > Turn on Turbo Mode If you want it to run even faster, use TurboWarp: https://turbowarp.org/650323522?hqpen&turbo Hover your mouse in the upper-right corner to reveal the "Scene" slider. You can also drag the light source to a different position.
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects
Alphabet Animals Sounds
by Alfad2009
Super Mario Odyssey: World 1-1? remix
by esc47diegos
DogePro Star Experience | V0.245 INDEV
by mightythorchua
Multiverses Combine 4: Thunder Chaos (21)
by noob_boy1234
dinosaur train funding part 2
by Asherisback4
Nickelodeon Creatures Text Engine 10.7
by siddharth1717
Five Nights at Scratchy
by Scrachyelgato
Zanderblocks Band E1 but Uncanny Different?
by KingOof2506
The Lag Test! (EXTREME LAG)
by nyankatpro
Slither.io
by Yann16
MacOS Sim
by cs2361536
Scratch 4.0 ideas
by Jurassic_World123
Round 11
by CLAX1212
Beat Up Tera
by zzhhooookk
AY in Trauma Wheel REDUX! [ Server 1 | Remix 7 | 14 Players ] remix
by angelusda1
Beat up Edward QERI 2
by hyd3ns33k
Make Your Own BFDI/A//IDFB/BFB/TPOT (rejoin fixed!) (includes easter eggs!)!)
by allanthedinosaur0435
Raycaster with heights
by Howl144
η«γγ©γΌγγΌ? cat former?
by kisimenn
Beat up Gobo Tripled Edition!
by Paata256times
I Just Wanna Dance // Meme Template!!!
by Yoghat25
v2.71: Ultra Custom Night Roster
by sunkyfan09
Numbers Band 16
by Maya_Channel
29 Vyond Effects
by xanderafa