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 1
by infinateyyy
Make Your Own BFDI/BFB remix-2
by BlueN10
Beat Up Handy Manny memed
by PeasontheSleeve
Beat up Gus (Fixed Version)
by YHDGAMER
MCSM Wither Storm remix
by vincenzo6415
The pet Leon thingy
by LeonBluey154
バグった地震ビューア
by turn2109
(DON'T REPORT) Evil Nano gives Nano a punishment day/GROUNDED in @PICARO660 style
by nanogetsungrounded16
1-1000(2)
by jayden2015paul
Numberworld Convo: SMB RPG!!
by 30telfairc
Large Cast Ralr alphabet lore unused interactive
by rahanr2
make music
by ronaldogoalsui
DO EVERYTHING IF YOU HATE LANKYBOX remix remix remix remix remix remix remix remix
by kimileejo
Angry Birds Rio! remix-4
by jt15677
Add a button to beat up Shantae remix remix
by AddYourself_Isaac
Activityyy
by shadowsapphire
Icicletale icerume fight! 【Undertale AU】
by magulovania
Beat up Pico [AY] [5]
by nzc_DX
Scratch Cat and a ladder
by NexusSfan
Numberblocks Band Retro 151-160 (Each Sound)
by Trioctoblock24
Even Little Nightmares Are One Of The Most Dangerous
by jasonzawtun
AYS: Greatest Plan
by 12366193CVUSD0
(DO NOT REPORT) Alphabet Lore in bren319's style (REUPLOADED AGAIN)
by 1020672
★マイクラ1.20/ Paper Minecraft V1.20 remix
by COTOC8