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

an actual Windows 8.1 Simulator project (totally accurate)

by EmiricTheHedgehogYT

Project thumbnail
View Project

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

by elliotthenice

Project thumbnail
View Project

Angry Birds SE (Ver 1.0.0 HD)

by LarryCrowe77

Project thumbnail
View Project

Numberblocks 1-350 Is New 352

by Nataliehouchin

Project thumbnail
View Project

Endless Alphabet DX

by snowfox_alt1

Project thumbnail
View Project

Talking tom and ben news V2 remix-2

by AvaDeruyter

Project thumbnail
View Project

Uncannystart Band Remastered (1-10)

by bau2213

Project thumbnail
View Project

Weird bytebeat

by q3wr424

Project thumbnail
View Project

Beat Up Winnie The Pooh Plush (New More More Hyper Mega Button UPDATE) remix-4 remix remix re… remix

by kubakoodziejczak

Project thumbnail
View Project

Ao Oni (Re-Take) (Model)

by thesecretsussy

Project thumbnail
View Project

Talking Tom And Ben News remix

by everton_trader

Project thumbnail
View Project

Bop It Maker

by BuddyEmmett

Project thumbnail
View Project

AY in This or That? [ Remix 7 | 23 Players ]

by roothlessroo

Project thumbnail
View Project

Alphabet Lore Sprite Pack NEW UPDATE

by ferranmarconde2025

Project thumbnail
View Project

1 PacMan

by imdabomb

Project thumbnail
View Project

Stingy text to speech

by golfisfun123

Project thumbnail
View Project

Candle Queen || Meme

by Pudsawolflol

Project thumbnail
View Project

Pit For The Beat Up Games

by tatatino150again

Project thumbnail
View Project

-椅子鳥GAME- 第肆獣.伍話「負詠坂妹、幼き狂気」

by mikorin

Project thumbnail
View Project

Make Your Own IDFB

by Squary_

Project thumbnail
View Project

[Cyan] Beat Up Little Timmy (rainbow friends chapter 2 update (lookies coming soon)) remix

by zolphius49

Project thumbnail
View Project

Much stuff of beat up games remix

by ptv_23

Project thumbnail
View Project

☁Battle Arena Online☁ [マインクラフト バトルアリーナ!]

by hayatiburusu

Project thumbnail
View Project

(13+) Animation Test (i amlosing it)

by SonKomatsuna