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

Talking Ben the Dog

by SortedKhan9

Project thumbnail
View Project

pokemo

by cs328255

Project thumbnail
View Project

Beat Up New! Math

by dirtotheobjectrises

Project thumbnail
View Project

Samsung SGH-E320 Startup and Shutdown (2004)

by Deshaun4168214

Project thumbnail
View Project

NaraLight's GD Difficulties v0.125

by Osine_Coso

Project thumbnail
View Project

I Have 19 Followers?....TY EVERYBODY LETS GO

by leontoi

Project thumbnail
View Project

Sprunki Phase ultra 100000

by LisNik1991

Project thumbnail
View Project

Testing Punishment remix remix

by M0nm0n

Project thumbnail
View Project

Oh boy a new website!

by CamIsaiah

Project thumbnail
View Project

UPDATE talking tom and ben news 9 V4 aded all hd remix remix-4 remix remix-2 remix remix remix

by everton123E

Project thumbnail
View Project

Beat up 9-volt

by SomeBody_WhoseCool

Project thumbnail
View Project

Tetrational Madness (100% Pen)

by Patcail

Project thumbnail
View Project

when you make boring quilty intros................

by thermogodzilla_king

Project thumbnail
View Project

Paper Minecraft v1.19(Minecraft 2D THE WILD UPDATE)New Ui!!

by saohappy

Project thumbnail
View Project

fort night

by Grayskygamer

Project thumbnail
View Project

Talking Tom and Ben News V2 (Plants vz Zombie Version) chaos

by wwwsewewewewe

Project thumbnail
View Project

Triangle Fight (mobile friendly)

by codertang

Project thumbnail
View Project

Alphabet lore font (very better)

by ceebc

Project thumbnail
View Project

BEAT UP Spiffy picture remix

by maverickjames32

Project thumbnail
View Project

Smoochie Й 20.00 Remake New (joke) update remix remix

by evp3ralta

Project thumbnail
View Project

Balkan Century || Balkan Yüzyılı v1.1.3

by Polat_Alemdar-

Project thumbnail
View Project

AY black hole (2023)

by alfiegab_tv

Project thumbnail
View Project

Numbericons 12901-13000 remix remix

by jayden2015paul

Project thumbnail
View Project

Make your own BFDI(A)!

by Xander923alt