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
Flombox V3 Doofer
by -Joe-from-Trillybox-
Talking Tom & Ben NEWS Halloween Edition
by gatoinsanowasaa7664
Super WARIO Star WALK
by isbrad
Make your own BFDIA
by CheesyBeans_Games
RUDE BUSTER CAMELLIA
by zombieking24314
SW Wither Storm Models remix
by withered199
AY in Block Party! [ Server 1 | Remix 1 | 16 Players ]
by roothlessroo
play my way (wooly part) ft SPRUNKI REMASTERED
by vmeanma
Better UK Bop It Extreme (2001)
by LEOTRAN2015
Windows 8.1 Home Screen Test
by skibidiohiogayat
Interactive Endless Music Notes (15) remix
by antcoolkid2015
FNATI Simulator 2
by better85
Numberblocks 1-40 Gansta remix remix
by DanielBoyd14
UNDERSWAP DISTRUST sans FIGHT
by leaf_san
WORKING angry birds maker
by areg0
Classic Numberblocks intro but by Numberpowerpoint
by tibera2012
演奏バトルモード太鼓の達人ver1.0.0
by himajin_scratch
PEDAGOTCHI
by AndreaCentinaro
虹夏のアホ毛避けゲーム Ver.02
by atomic-osushi
scratch cat animation :scratch cat flush with water
by Alexandrautami
Interactive Spanish Alphabet Lore
by pook67
Challenge 2: Morse Code Remix remix
by 706-12-SH
My Indonesian Alphabet Lore (Read Instructions and Notes)
by stevshel_marshall
The Speedrun Game V5.1
by Mystical-Studios-