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 Edward DLC
by BEAT2022
talking tom and ben news ohio 3 v0.1.2 remix
by kuponoIs
The Four Digit Addinator remix
by giahan5g1
MediaWare Chaos | [0.2.6v]
by Kylermario_Gamer
Granite Getaway Mario party 6
by Noe_school
AY in Four Corners Deluxe! (P24|P33)
by afrost7227gh
Talking Pato (SCRATCH VERSION)
by Svetlana1978
Escape the PRISON!
by zeshankgn
sans AU HAHAHA
by TTkabikera
Seadtype V15.2
by stevenrobloxisback
Mr planets band 1-4
by kevin_JM
Stacks v1.0 #all #games #art
by Zackababs
Talking Tom Band 31-32
by JLLeonScratchy
windows 8 or windows 7?
by Jake56780
Replace to mine song
by maldives06
MS-DOS emulator 1.0
by scratcher-500
Paper Minecraft v1.17 (Minecraft 2D)
by yiumo_number_31
BFB Contestant Generating Game But Its Done For You
by sanjay2133
Beat Up Scratch Cat (SORRY SCRATCH) remix-2
by cs1692937
Bonus Buttons Spiffy Exe Buttons Park
by kari1213
Ultra Numberblocks Night 2020 Plus remix
by AbedinIsBack
Chris's Nextbots V1.6. (Broken)
by chris304940
My take of Uzbek Alphabet Lore
by NJsaurus
Wii Menu en Español 1.7
by -yellpixel2014-