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
Talking Ben the Dog
by SortedKhan9
pokemo
by cs328255
Beat Up New! Math
by dirtotheobjectrises
Samsung SGH-E320 Startup and Shutdown (2004)
by Deshaun4168214
NaraLight's GD Difficulties v0.125
by Osine_Coso
I Have 19 Followers?....TY EVERYBODY LETS GO
by leontoi
Sprunki Phase ultra 100000
by LisNik1991
Testing Punishment remix remix
by M0nm0n
Oh boy a new website!
by CamIsaiah
UPDATE talking tom and ben news 9 V4 aded all hd remix remix-4 remix remix-2 remix remix remix
by everton123E
Beat up 9-volt
by SomeBody_WhoseCool
Tetrational Madness (100% Pen)
by Patcail
when you make boring quilty intros................
by thermogodzilla_king
Paper Minecraft v1.19(Minecraft 2D THE WILD UPDATE)New Ui!!
by saohappy
fort night
by Grayskygamer
Talking Tom and Ben News V2 (Plants vz Zombie Version) chaos
by wwwsewewewewe
Triangle Fight (mobile friendly)
by codertang
Alphabet lore font (very better)
by ceebc
BEAT UP Spiffy picture remix
by maverickjames32
Smoochie Й 20.00 Remake New (joke) update remix remix
by evp3ralta
Balkan Century || Balkan Yüzyılı v1.1.3
by Polat_Alemdar-
AY black hole (2023)
by alfiegab_tv
Numbericons 12901-13000 remix remix
by jayden2015paul
Make your own BFDI(A)!
by Xander923alt