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 YOURSELF DOING UNDERPANTS CRY
by mahmf144999
Pomni suffers the springlock failure (she dies lol)
by abraham01126
Windows 11 with virus
by FireChiefJaxson998
Ay Black Hole add round 2
by llya2023
Beat Up Bonzi Buddy reboot
by bonzi346
The Black Hole (Add Round 11)
by RayatRebranded
最近のマイクラはすごいなぁ
by robert_takeru
Google Logo Starter Project remix
by Skye_dawson123
Drift In The Middle
by abhaithebest
Sprunked Final Version?
by greencat489
Plants Vs Zombies: Scratch Edition
by Famous_one2010
Kapi Test
by Ramirito2011
KDGG: KittenDisney.exe Destroys Dunkin Donuts, GROUNDED!!!! remix
by moxina13
フォートナイト日本語版 v2.3 参照60000ありがとう!
by hajimelon84
One Night With Froggy's Update V1 remix
by mateothebb
FNaTI 2017 - THE UNOFFICIAL PORT
by The-Bloxmouse
常磐線運転シュミレーターV1.3.5.5
by -kirisaki
KG!UNDERTALE BATTLE DIMENSION V1.1.4
by kgoooooo
Beat up Sonic (READ DESCRIPTION.) remix remix remix remix-2
by kubagra790
KyleWare TWISTED (v3)
by sopianjelek
Beat Up Dark Bentlee 2! V2.6
by BentleeFan77
Mii Channel Editor
by brunozombi6
Billy Sandbox
by franciscotrex09
Wii Mini Simulator [V1.5]
by CREWMATETHEGAMER90