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

Please Nickelodeon, Don't but it's 4

by Clexer21

Project thumbnail
View Project

Windows 10 OS {Pre-Alpha}

by xCyburg

Project thumbnail
View Project

Hand Powered Recovery Center AY

by AshtonRises

Project thumbnail
View Project

Numberblocks band different (1Qocto - 1Qnocto)

by A2_is_here

Project thumbnail
View Project

3D Globe

by BamBozzle

Project thumbnail
View Project

Music Box - Jack Vector

by sn0wfall_

Project thumbnail
View Project

Beat Up Luigi PLUS [Massive Update] with no intro. (Hayley Buttons) remix remix remix remix … remix

by kubakoodziejczak

Project thumbnail
View Project

Sprunki [Ultimate/Deluxe 2] (ft. chillsy star) {CANCELED} remix-2

by lovrajtiwana

Project thumbnail
View Project

Beat Up chee remix remix remix

by jacejimerson7

Project thumbnail
View Project

beat up coiny 2 (add a button)(5)

by miguelhauck

Project thumbnail
View Project

CB AYS CRAPPOST: SOMEBODY GET ME 10 POUNDS OF BLEACH! IT'S EYE BURNING! [AYS] (9)

by OzzieTheGamerDude

Project thumbnail
View Project

(Original) tom and ben news plus ginger (1 new button)

by rac_kid

Project thumbnail
View Project

goanimate in a nutshell (my version)

by artemgudz12

Project thumbnail
View Project

1v1 soccer

by History_Ace

Project thumbnail
View Project

Geometry Dash v1

by VarshuLolly

Project thumbnail
View Project

QC's Disney Junior Logo Bloopers Part 6 - Lyrick Studios Letters

by Quarter_Change

Project thumbnail
View Project

Scratch RPG | Early Demo | v0.19.21 | #games #all

by Andygun11

Project thumbnail
View Project

fighting dark 827 cannonball, anti kitten disney and.... my god form???????? remix

by NEWADEJOFO_8

Project thumbnail
View Project

hard mode sans fight

by Heartfulisland13-jp

Project thumbnail
View Project

FNF (VS. AFLAC) - The End

by JustDavid2018

Project thumbnail
View Project

Flower maker!

by eleanormakepeace

Project thumbnail
View Project

Beat Up Coiny 2.0

by my_finger_hurts

Project thumbnail
View Project

Battery overcharging to ↇ percent???!!!

by minhkien3h

Project thumbnail
View Project

Object Invasion: Episode 5 - "Friendships Never Last" on Cartoons On Daytime

by FFTGScratcher