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 buttons
by everton_trader
the scratch 3.0 show episode two: milk but yeah
by Graylykgepard12
Fantastic Phantasm meme
by RaptoTheRizzir
windows 8 simulator
by Pietrogamer04
【創作譜面】Stellar Dream
by -pte-
Plants vs. Zombies (PVZ) V1.4 remix-2
by webitoo2851
Scratch’s Whistle Occurence
by DuoEntertainment321
Pacman Bitmap
by HAKA_2013
FNF VS Imposter test remix
by autisticlizard12
Undertale horror dust sans WIP
by RafaelMartini
Justyn's TVOKIDS Logo Bloopers Ultimate Edition Take 58: It’s Randomized! (fixed)
by DonaldTube
beat up kirby like a bawss
by Maxg4merguy941
BFB Intro ReAnimated
by MegaGameAnimator
Numberblocks Band Quarters 14 (Version 2 + For MrBond and Atakan9)
by maximovaleriy
~二代目~ 太鼓の達人 オンラインver. v3.2.21.14
by Kuppi-scratch
Super Mario 2D World. On Scratch - Intro
by EY_Productions
ADOFAI - Neo Cosmos T4
by lifehaxmax88
Lego Minifigures - Chuck E. Cheese
by MrFrostyBeans
IITPP Scratch Fan Remake {Version 2}
by AgserMond11
The Black Hole (Add Round 2)
by kaa94
The Studio Doors Of Numbers 2! Part 1 (Remix 1 - 6 Doors)
by Batatapo89Rises
Samsung Startup & Shutdown (2009-2010, Fun Club variant)
by amazeyourself
Hooplakids Pendulum Clock (Hickory Dickory)
by tidnara699
MYO: The Ridonculous Race 2
by manu142006