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
beat up dog more buttons
by Lestat1025
My Ultra Numberblock Night Reloaded remix-2
by gfa572
Beat up Barney V2 remix
by EmojiToonsTV1999
New UKTV rebrand, this is NOT a drill remix
by jjones27026
talent show
by Angel_2013_
Beat Up Finto!
by JeffSwift2011
Tvokids_H's Jumpstart Numbers (91-100)
by SANTASERNI
Bop it extreme V3.75
by Naohisa-F
Pyoro for Scratch
by EthobubJuice
Beat up Edward Omega (6)
by Macjun12
γγ€γ³γ―γ©γγζ₯ζ¬θͺη
by r7minoh-014
Toshiba VHS and dvd combo unit with Samsung TV
by iamcooldude991
RARE ETHEREAL WORKSHOP remixer (wave 3)
by Lukasaralmed2
ζ°γ»γγΌγ«γγγγ2
by s00384206
Irish Cat
by snhazell
magic tiles 3
by blackfox777
KyleWare: Ultimate Microgames! (v1.8)
by sm4rd4
Peppa Pig Gets Grounded Runaway!
by TheMarioDudeGames
500 Clone Preformance Test
by samq64-test
Beat Up Baby Patirck remix-2
by funny_bro
(COMING SOON) It's-a Mario Day!!
by s_123_345
Zuma Deluxe Online (Scratch Edition) (Easter Edition)
by miltos6834
Aiden's Math Lore Set remix
by PinkyAndFriends5694
All Blue Mist #41.5 (For Afty_16020)
by TheGamerAndy_16020