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

ADD YOURSELF DOING UNDERPANTS CRY

by mahmf144999

Project thumbnail
View Project

Pomni suffers the springlock failure (she dies lol)

by abraham01126

Project thumbnail
View Project

Windows 11 with virus

by FireChiefJaxson998

Project thumbnail
View Project

Ay Black Hole add round 2

by llya2023

Project thumbnail
View Project

Beat Up Bonzi Buddy reboot

by bonzi346

Project thumbnail
View Project

The Black Hole (Add Round 11)

by RayatRebranded

Project thumbnail
View Project

最近のマイクラはすごいなぁ

by robert_takeru

Project thumbnail
View Project

Google Logo Starter Project remix

by Skye_dawson123

Project thumbnail
View Project

Drift In The Middle

by abhaithebest

Project thumbnail
View Project

Sprunked Final Version?

by greencat489

Project thumbnail
View Project

Plants Vs Zombies: Scratch Edition

by Famous_one2010

Project thumbnail
View Project

Kapi Test

by Ramirito2011

Project thumbnail
View Project

KDGG: KittenDisney.exe Destroys Dunkin Donuts, GROUNDED!!!! remix

by moxina13

Project thumbnail
View Project

フォートナイト日本語版 v2.3 参照60000ありがとう!

by hajimelon84

Project thumbnail
View Project

One Night With Froggy's Update V1 remix

by mateothebb

Project thumbnail
View Project

FNaTI 2017 - THE UNOFFICIAL PORT

by The-Bloxmouse

Project thumbnail
View Project

常磐線運転シュミレーターV1.3.5.5

by -kirisaki

Project thumbnail
View Project

KG!UNDERTALE BATTLE DIMENSION V1.1.4

by kgoooooo

Project thumbnail
View Project

Beat up Sonic (READ DESCRIPTION.) remix remix remix remix-2

by kubagra790

Project thumbnail
View Project

KyleWare TWISTED (v3)

by sopianjelek

Project thumbnail
View Project

Beat Up Dark Bentlee 2! V2.6

by BentleeFan77

Project thumbnail
View Project

Mii Channel Editor

by brunozombi6

Project thumbnail
View Project

Billy Sandbox

by franciscotrex09

Project thumbnail
View Project

Wii Mini Simulator [V1.5]

by CREWMATETHEGAMER90