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 TyrionDog!
by idhhedhiedhi
Tile Map with Lighting
by AeroKoder
Beat Up Four (More Buttons)
by Ken2012dog
2000 PROJECTS!!!!!! :D
by Anahita35
Burst Engine V3.3
by sonic_mania_67
sprunki oc real no remix
by vduck17
Deluxe Scratch Custom Night (DSCN) ver.0.9.3
by Not_gogoblino
Beat up Scratch Cat 2 remix-2
by cs1692937
SHW's Fractal Explorer
by SuperHeatWizard
Numberblocks Band Halves 2 (Version 2 + For MrBond + Bonus)
by atakan9
素数計算機 1
by sakura395
My Talking Angela! remix
by baby_jaba1604
Desert Bus 3D Widescreen Edition
by KadenVolcanoKid
Netflix Simulator
by Shulav-1000
Geometry Dash v1.55
by horespro112
Appel v1.4 new levels2
by pipfnfuirl
Chutes and Ladders 2023 (Fan Edition)
by connor1990
Dutch alphabet lore Genders [Added U, V, W, X, Y & Z]
by ValentinexusBoy123
Ropes
by WingDingWarrior89
tug of war - squid game
by 29rr23
The Black Hole (Add Round 1)
by kaa94
TurboBrowse - Scratchs own - Browser ( REAL HTML ) browser engine html engine
by 2D4eter
Beat Up Bowser remix
by 12tyyt
Beat Up Quacker (99)
by everton_trader2