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

BFB/TPOT Contestant Generator Game (Complete)

by MrGumballMachine

Project thumbnail
View Project

Talking Tom and Ben News HD remix-2

by everton_trader

Project thumbnail
View Project

@Quesadillamixplus's Century Schoolbook Font

by Quesadillamixplus

Project thumbnail
View Project

Mixels Stampede Green Screen remix-2 remix remix-2

by Leoox2015

Project thumbnail
View Project

[TSDoN-9 | 1056] ⭑★- ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ‣ քǟʀȶ 9 -★⭑

by MisterChuChu

Project thumbnail
View Project

Beat Up lukemanolopoulos8! (2)

by newmyles

Project thumbnail
View Project

Tec OS 3

by Techno-CAT

Project thumbnail
View Project

Geometry Dash v3.0

by CrystalKeeper7

Project thumbnail
View Project

Windows crazy error

by maxSmain

Project thumbnail
View Project

青の塔16階

by sakaryuu

Project thumbnail
View Project

Numberblocks Intro but it's in my art style

by Numberblock4Fan

Project thumbnail
View Project

7x table challenge

by nero7

Project thumbnail
View Project

Tower Defense IMPROVED

by Pikachuf1

Project thumbnail
View Project

Beat up 13 DLC Remastered remix

by bandrock238

Project thumbnail
View Project

Nothing found XD

by Luchim15

Project thumbnail
View Project

☁️☁️HD Project Image Search☁️☁️

by 3_141592653589793___

Project thumbnail
View Project

TNTジャンプを極めし者のTNT発射装置【GIF】【マイクラ実況】

by motonisi777

Project thumbnail
View Project

BEAT UP SCRATCH CAT OMEGA remix-8 remix remix remix

by sussytaki

Project thumbnail
View Project

OFB vs Mr Beast [OFB SERIES #4] #All #Animations #Trending #Comparisons #Games

by -SourToons-

Project thumbnail
View Project

ネプリーグ プレッシャークロック③

by Ko_sho_ko_

Project thumbnail
View Project

USA EAS Alarm (1958)

by fineganfox

Project thumbnail
View Project

Beat Up Chromey (v0.3)

by galaxylgnokiasamsung

Project thumbnail
View Project

Talking tom and ben news in scratch edition

by ATalkingNewsUser

Project thumbnail
View Project

209系京葉線 3D運転シミュレーター

by e235-Yamanote-Line