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

Spanish alphabet lore a-z

by MGAROBLOX

Project thumbnail
View Project

Beat Up Spiffy Pictures #4!

by coopstar_white3

Project thumbnail
View Project

Morestu13's Wither Storm v0.2.0

by morestu13

Project thumbnail
View Project

emoji meme goat remix from hidude5567

by stanh127

Project thumbnail
View Project

Just For Laughs: Mine Diamonds (Meme)

by Josue-Fanboy21

Project thumbnail
View Project

Among us walking base

by Rogen402

Project thumbnail
View Project

Beat Up DonaldDucc 3.1

by elevatorkoneecodise

Project thumbnail
View Project

Sonia art entry >:3

by alisachan123

Project thumbnail
View Project

Incredibox - Sprunke [Mini Update] remix

by ashysmashyXD

Project thumbnail
View Project

among us survival imposter

by dyonny

Project thumbnail
View Project

Ragdoll Wolferrpg5

by Wolferrpg5

Project thumbnail
View Project

Super Mario Maker [alpha 0.43]

by MrMattplayz_

Project thumbnail
View Project

Numberblocks Generator r

by mathyoumemeface

Project thumbnail
View Project

One night at flumpty's ultimate

by Hathatgirlnews

Project thumbnail
View Project

ZIGGY EATS SONG

by TOXICBOOMBOX

Project thumbnail
View Project

パルクールをクション ver3.4

by 9898yk

Project thumbnail
View Project

KyleWare: Ultimate Microgames! (v1.48)

by TheScarfedStickman

Project thumbnail
View Project

FNF - (VsTricky) Phase 4 but i made it unfair

by dminecart88

Project thumbnail
View Project

γ‚ͺγƒ³γƒ©γ‚€γƒ³γƒ—γƒ©γƒƒγƒˆγƒ•γ‚©γƒΌγƒžγƒΌ 1

by masaki07070719

Project thumbnail
View Project

Windows 11 Crazy Error Maker 2 remix

by Wioen135

Project thumbnail
View Project

Terminal

by Milk909

Project thumbnail
View Project

FANF Hill Climb Racing mobile δΈ­ζ–‡ε€–ζŽ›η‰ˆ. remix-2 remix-18

by spas4a03

Project thumbnail
View Project

flight simulator 3D

by minimeik

Project thumbnail
View Project

Preview 2 Scratch Cat G Major Effects Part 5

by gamerboy1228