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
Add a button to beat up Nano! 6
by gulkd2023
Sneak Peak Of Some New Vectors I Might Be Making
by Modnationfan2010
talking tom and ben news ohio 3 v0.1.2 remix
by kuponoIs
ただのアニメ#1 主人公になるための争い
by Scratch_beginner6
cat effect remix
by Badatscratch2025
Wii Menu Uninstaller (Wii)
by PlayGames2004
Bone island remix
by Epic-Carillong
Tom & Ben News Scratch port remix
by veziravcisi
BFDI 4 Scene Recreated In Scratch!
by Vlad9407
sprunki banana porridge official and more remix-2
by les_go_goat
AY: Band Remastered (26)
by Kavlelasvhili2024
(1999/2000 Hasbro) The Second Edition of the Electronic-Talking-Musical Bop It
by timhe00055
ブロリー討伐作戦!
by MS616
Pac-Man Arcade Edition
by GabrielNewell2
FlappyBird
by _MrLemon4ik_TEST
Belupacito (Original project)
by _Vladimir
Beat Up Screen Gems V5
by ChermayeffTesting
Redrawn Object Shows your way v2.01 (UPDATE IN PROGRESS) remix-2
by Johannthekuya
Super Smash Scratch Deluxe remix
by Godzilla_Kaiju
【後編】おにごっこ~Nightmare 13th~第伍拾陸話「最終決戦」
by tyomuko22
ວ (Lao Alphabet lore)
by 23edit
Endless Thai (FINISHED)
by cwkzidhane36417
Help for FW!Box Z1 - Cinemastra Bonuses!
by Slatch12
Fidget Spinner
by Sanctu-Weary-Garden