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
make your own TPOT remix
by bh012514
throw bricks at BFDI simulator
by louiefrompikmin
Added G Major, G Major 2, G Major 5 as a Button
by BFDIeditor13
Magic Tiles #3 press the 3 bars for more songs
by 6002badger
Hostel | DVD Menu (If I Made It)
by Fan_of_Unifon
Incredibox Яoom-Ba smalbox Vѭ
by tboban
Spiffy Pictures.EXE Buttons 2025 Remake
by vivoscolores79
Sprunki Retake Babies (Read Notes and Credits) remix
by tdawgbraNOTFAKE
Seadtype V10.5
by crazymilkandres
scratch aka the mailer
by AMINF2842D
Minecraft
by CAPYBALA_
RobloxStudio0 TSB Anomaly Retake
by Light12435
Angry Birds Scene Creator remix
by natsukun3844
Unicode Clicker! (The Unicode Game)
by JackZZX
綱引き
by stmt-gyangu
画面分裂とかができるエンジン
by -ue-
SEISHIN'S GAME (the full game) v1.0.2
by SedimentShaleBridge
2D Minecraft V1.19
by ittuittu
どくむしの放置ゲー v2.0
by Shamrockmouse123
windows 11 test
by windows_concept
Scratch-tok. @luvsemi
by Se_Mi_Luv
Super Smash Scratch. playable bosses edition
by DaKoobFrom2006
ADOFAI Custom - TPOT Intro (Small Flash Warning) remix
by ron21top1gamer
Aquarium Looksy
by taugustine-tcsbell