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

Ditto clicker v8.6 (BETA)

by DittoDitto527

Project thumbnail
View Project

(REUPLOAD) Preview 2 Scratch Cat In Chorded remix

by jayjayy1809

Project thumbnail
View Project

PVZ Proof of Concept

by Anthings

Project thumbnail
View Project

Progress Update: Aria Math

by marmoishere

Project thumbnail
View Project

BFDI 19 M.A.P. [CLOSED]

by HouseofScratchLiam

Project thumbnail
View Project

Scratch Party - Star Scramble v0.0.8.1

by CooperFan5

Project thumbnail
View Project

Pen Text Engine (MODEL II)

by goblue55

Project thumbnail
View Project

Mickey Mouse Clubhouse Credits (season6)

by D1eze7408

Project thumbnail
View Project

RAIN AND HAIL UPDATE! CHASE UNIT: MULTIPLAYER STORM CHASING SIMULATOR!

by espycat

Project thumbnail
View Project

Endless Numbers 1-100 copy

by Zhiware

Project thumbnail
View Project

AY in the Moving Mine Redux! [Fun Show Party] 51 Players

by LorenzoFiscoGaming

Project thumbnail
View Project

Animal Crossing Character Creator

by Toocuteyoshi123

Project thumbnail
View Project

WINDOWS SIMULATOR

by Win-Animations-ADT

Project thumbnail
View Project

Battle Cats Stage Creator! (Early Access) (Version: 1.00.462

by discolightsrock

Project thumbnail
View Project

*gets electrocuted*

by claw_was_yeeted

Project thumbnail
View Project

Bouncey Ball

by Jam_Animation

Project thumbnail
View Project

MISTERMANTICOREBOSSFIGHT

by CEOofobamiumresearch

Project thumbnail
View Project

Beat Up The Vegan (CMbridge's version) V13

by therealbalconyyt

Project thumbnail
View Project

FNF | Vs Impostor V4 Part 1(+10)

by aboda243

Project thumbnail
View Project

Super Oofio 5.4.0 (Cheesey Castle)

by OofioTheOriginal

Project thumbnail
View Project

Beat Up google chrome ainme

by Emad1377

Project thumbnail
View Project

Recoil v1.9 speedrun update

by Firedragon97

Project thumbnail
View Project

When no one watches the letters (Endless Reader) (NTSC Pitch Corrected)

by NZWStudios

Project thumbnail
View Project

Red Jacob's Revenge: A Jacob and Friends Game remix

by lateone1