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 Noclip

by js052700

Project thumbnail
View Project

Beat Up Brisk iced Tea

by dirtotheobjectrises

Project thumbnail
View Project

Zeta Z Kids Logo (2025-)

by EmilyWASP

Project thumbnail
View Project

Endless Music Flat Note Test

by XLoreLetter

Project thumbnail
View Project

russian Endless Letter Sounds + Animations

by GRG2017

Project thumbnail
View Project

leapster explorer 2 pero lo mejore un poquito

by 567890ALT

Project thumbnail
View Project

My Super Mega Extremely Ultimately Biggest Effects Kit Ever!!!

by Lateone12

Project thumbnail
View Project

FIFA 16 - football games remix-3

by Kirtontown7

Project thumbnail
View Project

Klasky Csupo Nightmares my retake (11+)

by yoyosalt

Project thumbnail
View Project

Vortex! *version 1.0.0*

by ka1467

Project thumbnail
View Project

Fifa 23 pack opener remix

by Hanktank2013

Project thumbnail
View Project

CAB Song

by Axel_024

Project thumbnail
View Project

The Date, Time And Year Right Now.

by Pokemonmasterfinn

Project thumbnail
View Project

Bfdi memes #1

by BFDI_memes

Project thumbnail
View Project

Talking Tom 2 but there is a button for rtjkhljdn remix

by Shamiir

Project thumbnail
View Project

DW Spanish Alphabet Lore F

by SnakyGuy100

Project thumbnail
View Project

Flappy Dunk - Mobile friendly

by AnimationsScratch

Project thumbnail
View Project

Beat up Pico 0.2

by mikey_mike

Project thumbnail
View Project

[1st remix] Among Us Engine Z - v2.8

by PurpleLightBG

Project thumbnail
View Project

Beat Up Hammer Mario 4: the Beat up verse

by ismiiboy

Project thumbnail
View Project

Кира Костина Спанч Боб мультик

by DashaStrizhA

Project thumbnail
View Project

FNF - Sonic.EXE (3.0-2.5) DEMO

by chucky_lee

Project thumbnail
View Project

Beat Up Scratch Cat Remix Update Evil UPDªTE ŤRUŒ

by Dhyeguinho

Project thumbnail
View Project

★★❶❷❸ • тнє ѕтυ∂ισ ∂σσяѕ σƒ ηυмвєяѕ • ραят ❼ • 778 ∂σσяѕ • ❹❺❻★★

by DatTrumpetGirl