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

Flombox V3 Doofer

by -Joe-from-Trillybox-

Project thumbnail
View Project

Talking Tom & Ben NEWS Halloween Edition

by gatoinsanowasaa7664

Project thumbnail
View Project

Super WARIO Star WALK

by isbrad

Project thumbnail
View Project

Make your own BFDIA

by CheesyBeans_Games

Project thumbnail
View Project

RUDE BUSTER CAMELLIA

by zombieking24314

Project thumbnail
View Project

SW Wither Storm Models remix

by withered199

Project thumbnail
View Project

AY in Block Party! [ Server 1 | Remix 1 | 16 Players ]

by roothlessroo

Project thumbnail
View Project

play my way (wooly part) ft SPRUNKI REMASTERED

by vmeanma

Project thumbnail
View Project

Better UK Bop It Extreme (2001)

by LEOTRAN2015

Project thumbnail
View Project

Windows 8.1 Home Screen Test

by skibidiohiogayat

Project thumbnail
View Project

Interactive Endless Music Notes (15) remix

by antcoolkid2015

Project thumbnail
View Project

FNATI Simulator 2

by better85

Project thumbnail
View Project

Numberblocks 1-40 Gansta remix remix

by DanielBoyd14

Project thumbnail
View Project

UNDERSWAP DISTRUST sans FIGHT

by leaf_san

Project thumbnail
View Project

WORKING angry birds maker

by areg0

Project thumbnail
View Project

Classic Numberblocks intro but by Numberpowerpoint

by tibera2012

Project thumbnail
View Project

演奏バトルモード太鼓の達人ver1.0.0

by himajin_scratch

Project thumbnail
View Project

PEDAGOTCHI

by AndreaCentinaro

Project thumbnail
View Project

虹夏のアホ毛避けゲーム Ver.02

by atomic-osushi

Project thumbnail
View Project

scratch cat animation :scratch cat flush with water

by Alexandrautami

Project thumbnail
View Project

Interactive Spanish Alphabet Lore

by pook67

Project thumbnail
View Project

Challenge 2: Morse Code Remix remix

by 706-12-SH

Project thumbnail
View Project

My Indonesian Alphabet Lore (Read Instructions and Notes)

by stevshel_marshall

Project thumbnail
View Project

The Speedrun Game V5.1

by Mystical-Studios-