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 angry mr.krabs
by Lestat1025
Font
by NZWStudios
Beat up Kick The Buddy V5.5
by juliescott12
Beat Up Water Bottle! (2)
by JPPORTUGAL
Nickelodeon Creatures Text Engine 40.1
by siddharth1717
Klasky Csupo nightmares Has a Klasky Error (FIXED)
by CarmenTheHero
Numberblocks Intro but it's in my art style remix
by nirvaan2016
Super Mario Bros Super Show 2: 2 Giant Paint Bubbles
by TheCharlieGamer
Blox fruits
by ox57
Beat Up Buba (8)
by bonzi346
scratchhh
by stanhopestudent1
Car anatomy 2 chevy cateye bubba truck 1500 duramax remix
by EverettJenkins
Funkemon - Groova Region [Unfinished]
by Hobson-TV
All Numbericons 1-105 Different Styles remix
by vanhouchin
Ink!sans phase3 SHANGHAIVANIA by ◆WASABI0123◆[アンダーテールAU]
by WASABI0123
Wolfenstein 3D Raycaster v2
by That1Arcader_T1A
Beat Up Bonnie Extreme V3
by hyd3ns33k
Geometry Dash Wave
by -_Drps_-
Pit For The Beat Up Games
by tatatino150again
Beat up scratch cat (add a button) (1)
by tatatino150
Beat Up FAKE
by BLUDABADI
Beat up Myself 2.1
by ptv_23
3D Basketball
by Mission_Possible
SCATPOSTERS_2.mp4
by TheHydrationMan5500