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
Spanish alphabet lore a-z
by MGAROBLOX
Beat Up Spiffy Pictures #4!
by coopstar_white3
Morestu13's Wither Storm v0.2.0
by morestu13
emoji meme goat remix from hidude5567
by stanh127
Just For Laughs: Mine Diamonds (Meme)
by Josue-Fanboy21
Among us walking base
by Rogen402
Beat Up DonaldDucc 3.1
by elevatorkoneecodise
Sonia art entry >:3
by alisachan123
Incredibox - Sprunke [Mini Update] remix
by ashysmashyXD
among us survival imposter
by dyonny
Ragdoll Wolferrpg5
by Wolferrpg5
Super Mario Maker [alpha 0.43]
by MrMattplayz_
Numberblocks Generator r
by mathyoumemeface
One night at flumpty's ultimate
by Hathatgirlnews
ZIGGY EATS SONG
by TOXICBOOMBOX
γγ«γ―γΌγ«γ’γ―γ·γ§γ³ ver3.4
by 9898yk
KyleWare: Ultimate Microgames! (v1.48)
by TheScarfedStickman
FNF - (VsTricky) Phase 4 but i made it unfair
by dminecart88
γͺγ³γ©γ€γ³γγ©γγγγ©γΌγγΌ 1
by masaki07070719
Windows 11 Crazy Error Maker 2 remix
by Wioen135
Terminal
by Milk909
FANF Hill Climb Racing mobile δΈζε€ζη. remix-2 remix-18
by spas4a03
flight simulator 3D
by minimeik
Preview 2 Scratch Cat G Major Effects Part 5
by gamerboy1228