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

Kipnat And Burdy: Cat Burglar (Toontoons Network)

by donnie41

Project thumbnail
View Project

ゲーム化(Game adaptation) Add Yourself Singing Roasted &(笑)アニメ

by sakujiro

Project thumbnail
View Project

Wii Menu new

by leon_237

Project thumbnail
View Project

Beat up ptv_23Tutor (5)

by newmyles

Project thumbnail
View Project

Beat up nickel remake remix

by Lestat1025

Project thumbnail
View Project

buildingbox v1 building

by phg_2o7

Project thumbnail
View Project

Tom and Ben news but weird: They are back remix remix

by siddharth1717

Project thumbnail
View Project

Baldi Soundboard remaster

by MAKS_dor

Project thumbnail
View Project

(笑)アニメ【第七十五話・ボンバー】 remix

by forgetmebro

Project thumbnail
View Project

pibby animation test

by DRK0731

Project thumbnail
View Project

endless wordplay alphabet band endless reader endless numbers endless alphabet endless Spanish remix

by AmazingDreyDrey

Project thumbnail
View Project

venskabsjagt

by haras5

Project thumbnail
View Project

The Studio Doors of Numbers II [ 17 Doors! ]

by bluejay7

Project thumbnail
View Project

Tom & Ben News 7.2 (V1.9) Tower Service Lift(Tom,Penguins) remix

by Tuud

Project thumbnail
View Project

B.U.T.T.E.R.F.L.Y ERROR 404 SANS SIMULATOR

by dabobismad

Project thumbnail
View Project

Android 14 Beta

by m2334

Project thumbnail
View Project

ADOFAI - Neo Cosmos T5 but made by a kid that is 4

by Thedestscratchuser

Project thumbnail
View Project

Fuming Brutality cover

by paupau08

Project thumbnail
View Project

Zuma Deluxe 2

by Jeter300

Project thumbnail
View Project

アニメ「The WeakMan」| 第1話「日本ぶっ壊し計画」

by Pikurin

Project thumbnail
View Project

One Night At Freddy's 1 v 1.2

by DRAGONGAMER14253647

Project thumbnail
View Project

My take of Mongolian Alphabet Lore

by NJsaurus

Project thumbnail
View Project

What is that

by Slip-the-Cat

Project thumbnail
View Project

Incredibox Monochrome Sample Test remix

by chewmah10