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 Baby Cat Emoji (10)
by crazybabybaby16
Working Recovery Center
by lightningapplesock
Beat Up Shiny The Sunny Bunny (6)
by GooleSharty122
Beat up dirty p head (Green Giant Foot Update)
by bonzi346
Five Nights at Perro Elegante v2.1 #fanf #fangame fnaf #fnap#all #horror #meme
by UnPerroElegante
Spiffy Pictures.exe looks My style
by cs4694957
Beat Up Melanie: Ultimate Edition
by finegansnewacc567
Planet Maker 1.4.1 (Better Version!)
by GGarciaWow
丘の上のレース [日本語版]
by lightblue012
⪀ 3D RTX NEW GX6 #all #games #rtx
by PowerStudioINC
Magic Tiles 3 with counting stars
by DirpAnimation2
Sonic Genesis Age 2 V0.55
by mewtube47
Add A Button To Beat Up Marcel1607.exe
by Marcel1607
Beat up Herobrine and more!
by MarioLu13
FNF Test Playground - Test Engine V.10 remix check the sussy guy he shoots
by david31243456
Rock 'N Learn Spanish ABC Song (VOLUME WARNING!!!) remix remix
by VMWARE8439833
Raycasting pt.7
by Coder2011lverG
Remix And Corruption The Ragdoll Logo remix remix remix
by blueeyes1309
UUSR Sprites for @--DEADLINE-GAMES--
by Krystian0827
The Henry Stickmin Collection
by InnerslothLLC_
Super Mario Odyssey 2D (DEMO)
by SonicHasan
ABC Song too much
by Xhikate15
Fanmade: Bren319's Ukrainian Alphabet Lore
by SillygooseMike
AY: Trying Oxyjuice (7)
by Numberblockgamer8694