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
Vyond Effects remix
by clanito12
BFB Intro But 2010 - 2012
by DeclineTrade
Among Us || part 1 pt 2 out now!!
by uptophoot
Beat Up Shiny The Sunny Bunny (2)
by newmyles
Rabbids Invasion End Credits
by RileyReevesOnScratch
calculator
by piggysrule2
[achievements]Baldis basics classic remastered but I'm in the game? scratch edition (1.7.1)
by jdmsLJS30
talking tom and ben news 9: muchos gracias @CatalinaMax2006 G
by Tyler-Time
parasprunkosc-parasprunki-x-bfdi
by 2014gamer
Beat up Decillion
by coopstar_white3
Scratch Tales Season 8 Episode 10: Mega Pico
by MasterZenoUltimate
Vigesimalblocks Band 1
by TPOT_pen
Numberblocks generator 2
by i019_02jnh
community project
by citizenschooledison
Hurricane Season Simulator | v1.6.3 [HSS2 IN DEV]
by s20038627
make your own idfb intro
by camjamspang09
Friday Night Sunkin'
by cs942698
γγͺγͺ(γΏγγ¬γγε―ΎεΏ) remix
by delyuema0101
Beat up Scratch Cat Ultimate Edition
by hyd3ns33k
STICK WAR HACKED v2.0
by blackspider222
Beat Up Edward DLC Remastered But Is Back Verison remix
by mikey770
Alphabot is dizzy
by JasonD221
Battery overcharging to β percent???!!!
by minhkien3h
Beat up duzek1 remix 6
by German0512