Light Scattering Demonstration - 2D Pathtracing

Light Scattering Demonstration - 2D Pathtracing

by SpinningCube

👁 962 ❤️ 104 ⭐ 77 🔄 5
Created: Feb 25, 2022 Last modified: Jul 24, 2023 Shared: Feb 28, 2022

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

Project thumbnail
View Project

Beat up 1

by infinateyyy

Project thumbnail
View Project

Make Your Own BFDI/BFB remix-2

by BlueN10

Project thumbnail
View Project

Beat Up Handy Manny memed

by PeasontheSleeve

Project thumbnail
View Project

Beat up Gus (Fixed Version)

by YHDGAMER

Project thumbnail
View Project

MCSM Wither Storm remix

by vincenzo6415

Project thumbnail
View Project

The pet Leon thingy

by LeonBluey154

Project thumbnail
View Project

バグった地震ビューア

by turn2109

Project thumbnail
View Project

(DON'T REPORT) Evil Nano gives Nano a punishment day/GROUNDED in @PICARO660 style

by nanogetsungrounded16

Project thumbnail
View Project

1-1000(2)

by jayden2015paul

Project thumbnail
View Project

Numberworld Convo: SMB RPG!!

by 30telfairc

Project thumbnail
View Project

Large Cast Ralr alphabet lore unused interactive

by rahanr2

Project thumbnail
View Project

make music

by ronaldogoalsui

Project thumbnail
View Project

DO EVERYTHING IF YOU HATE LANKYBOX remix remix remix remix remix remix remix remix

by kimileejo

Project thumbnail
View Project

Angry Birds Rio! remix-4

by jt15677

Project thumbnail
View Project

Add a button to beat up Shantae remix remix

by AddYourself_Isaac

Project thumbnail
View Project

Activityyy

by shadowsapphire

Project thumbnail
View Project

Icicletale icerume fight! 【Undertale AU】

by magulovania

Project thumbnail
View Project

Beat up Pico [AY] [5]

by nzc_DX

Project thumbnail
View Project

Scratch Cat and a ladder

by NexusSfan

Project thumbnail
View Project

Numberblocks Band Retro 151-160 (Each Sound)

by Trioctoblock24

Project thumbnail
View Project

Even Little Nightmares Are One Of The Most Dangerous

by jasonzawtun

Project thumbnail
View Project

AYS: Greatest Plan

by 12366193CVUSD0

Project thumbnail
View Project

(DO NOT REPORT) Alphabet Lore in bren319's style (REUPLOADED AGAIN)

by 1020672

Project thumbnail
View Project

★マイクラ1.20/ Paper Minecraft V1.20 remix

by COTOC8