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
[CARAMELLDANSEN] - Animation Meme
by HarvesterOfTheSea
Number Base Converter remix
by WasimGDD
Numberblocks Band Pentagons 16 times table
by farzankhalid
Nich Fight Cloud #1
by Jamilette7
A More Detailed Nich Fight Cloud
by zahir34alt
Beat up Kick The Buddy V4.7
by juliescott12
STEEL DUELISTS
by FishyThoughts
Preview 2 Scratch Cat In $ormulator
by veggietalesfan78
Bop It Classic Simulator LEO voice
by LEOTRAN2015
Not Divided Clicker Remaster
by Virtualbox_Hub
reeeeeeeeeeeeee
by cat_1780_g
my number blocks
by asafeeasfe
Scratchnapped 2 - v0.14
by griffpatch_tutor
Getting Over It - Multiplayer
by cs4079414
IITPP Scratch Edition
by corestartupfail
小さな戦い MiniWar <海軍なし>
by hirakw
add a button to beat up me! D: [48]
by zzhhooookk
Beat up Me remix remix remix remix remix remix remix remix remix remix remix remix remix remi… remix
by RainbowCreeper234
Angry Birds
by MrGamerix
FNF | VS Tabi-retrospecter
by EpicGammerplayz50
RACE[100%PEN]
by mizukushuma
Black Hole Add Round 2 remix-2
by Linesta
Fnf Markus Test
by Cupheadplush
Among Us Hide n Seek v0.0.1
by Nour250508