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

Beat Up Baby Cat Emoji (10)

by crazybabybaby16

Project thumbnail
View Project

Working Recovery Center

by lightningapplesock

Project thumbnail
View Project

Beat Up Shiny The Sunny Bunny (6)

by GooleSharty122

Project thumbnail
View Project

Beat up dirty p head (Green Giant Foot Update)

by bonzi346

Project thumbnail
View Project

Five Nights at Perro Elegante v2.1 #fanf #fangame fnaf #fnap#all #horror #meme

by UnPerroElegante

Project thumbnail
View Project

Spiffy Pictures.exe looks My style

by cs4694957

Project thumbnail
View Project

Beat Up Melanie: Ultimate Edition

by finegansnewacc567

Project thumbnail
View Project

Planet Maker 1.4.1 (Better Version!)

by GGarciaWow

Project thumbnail
View Project

丘の上のレース [日本語版]

by lightblue012

Project thumbnail
View Project

⪀ 3D RTX NEW GX6 #all #games #rtx

by PowerStudioINC

Project thumbnail
View Project

Magic Tiles 3 with counting stars

by DirpAnimation2

Project thumbnail
View Project

Sonic Genesis Age 2 V0.55

by mewtube47

Project thumbnail
View Project

Add A Button To Beat Up Marcel1607.exe

by Marcel1607

Project thumbnail
View Project

Beat up Herobrine and more!

by MarioLu13

Project thumbnail
View Project

FNF Test Playground - Test Engine V.10 remix check the sussy guy he shoots

by david31243456

Project thumbnail
View Project

Rock 'N Learn Spanish ABC Song (VOLUME WARNING!!!) remix remix

by VMWARE8439833

Project thumbnail
View Project

Raycasting pt.7

by Coder2011lverG

Project thumbnail
View Project

Remix And Corruption The Ragdoll Logo remix remix remix

by blueeyes1309

Project thumbnail
View Project

UUSR Sprites for @--DEADLINE-GAMES--

by Krystian0827

Project thumbnail
View Project

The Henry Stickmin Collection

by InnerslothLLC_

Project thumbnail
View Project

Super Mario Odyssey 2D (DEMO)

by SonicHasan

Project thumbnail
View Project

ABC Song too much

by Xhikate15

Project thumbnail
View Project

Fanmade: Bren319's Ukrainian Alphabet Lore

by SillygooseMike

Project thumbnail
View Project

AY: Trying Oxyjuice (7)

by Numberblockgamer8694