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

Vyond Effects remix

by clanito12

Project thumbnail
View Project

BFB Intro But 2010 - 2012

by DeclineTrade

Project thumbnail
View Project

Among Us || part 1 pt 2 out now!!

by uptophoot

Project thumbnail
View Project

Beat Up Shiny The Sunny Bunny (2)

by newmyles

Project thumbnail
View Project

Rabbids Invasion End Credits

by RileyReevesOnScratch

Project thumbnail
View Project

calculator

by piggysrule2

Project thumbnail
View Project

[achievements]Baldis basics classic remastered but I'm in the game? scratch edition (1.7.1)

by jdmsLJS30

Project thumbnail
View Project

talking tom and ben news 9: muchos gracias @CatalinaMax2006 G

by Tyler-Time

Project thumbnail
View Project

parasprunkosc-parasprunki-x-bfdi

by 2014gamer

Project thumbnail
View Project

Beat up Decillion

by coopstar_white3

Project thumbnail
View Project

Scratch Tales Season 8 Episode 10: Mega Pico

by MasterZenoUltimate

Project thumbnail
View Project

Vigesimalblocks Band 1

by TPOT_pen

Project thumbnail
View Project

Numberblocks generator 2

by i019_02jnh

Project thumbnail
View Project

community project

by citizenschooledison

Project thumbnail
View Project

Hurricane Season Simulator | v1.6.3 [HSS2 IN DEV]

by s20038627

Project thumbnail
View Project

make your own idfb intro

by camjamspang09

Project thumbnail
View Project

Friday Night Sunkin'

by cs942698

Project thumbnail
View Project

γƒžγƒͺγ‚ͺ(γ‚Ώγƒ–γƒ¬γƒƒγƒˆε―ΎεΏœ) remix

by delyuema0101

Project thumbnail
View Project

Beat up Scratch Cat Ultimate Edition

by hyd3ns33k

Project thumbnail
View Project

STICK WAR HACKED v2.0

by blackspider222

Project thumbnail
View Project

Beat Up Edward DLC Remastered But Is Back Verison remix

by mikey770

Project thumbnail
View Project

Alphabot is dizzy

by JasonD221

Project thumbnail
View Project

Battery overcharging to ↇ percent???!!!

by minhkien3h

Project thumbnail
View Project

Beat up duzek1 remix 6

by German0512