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
Paper Minecraft 1.20 マグマが上がってくる世界
by gurinn326
PlayStation 2 Menu (2023 Version Mock-up)
by Wiiternity
AYS: Under The Tree
by TheManCramp_V2
Endless IPA 2.0
by kirill200k
pizza tower demo 1
by sasha79k
Beat Up Scratchy! v1.1
by ScratchyFanGames
Iciella And Meggie
by callofthevoid24-7
Free-For-All Elimination Deluxe! [ Remix Undefined | 62 Characters ]
by DAandAA
Solar System Band 2 remix
by barbara019932017
we become what we behold on scratch remix
by poik1239
International Phonetic Alphabet Text to Speech (IPATtS)
by YeahYeahBeebiss1
Numberblocks Times Tables
by WindowsViennaFan
Windows 10 OS System
by ShoeBoyMax
Beat up 13 DLC Remastered remix
by bandrock238
FNF Indie Cross V1
by yalloman
scratch stereotypes (part 3)
by zvardin
Kone M Series at Sunway Pyramid, Malaysia
by Lighthouse_Friesland
stormie sim
by sirenzillixer1006
Beat Up Scratch Cat Remix Update Dan FINÆL UPDªTE
by Dhyeguinho
(Reupload)Beat Up Edward remix
by FranxisKylleMarquez
undertal game platfomer
by GameArth
Preview 2 Scratch Cat In Chorded + G Major 96
by gamerboy1228
talking tom and ben news remix-3 remix
by jayjayy1809
Endless Numbers Divided concept remix
by tetinmouse