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

windows7409 Classics: Windows 11 21H2

by windows7409

Project thumbnail
View Project

Beat Up Kijobal 0.1

by TheCarlos3214

Project thumbnail
View Project

beat up yara suspects

by piolalina

Project thumbnail
View Project

Color Crew Season 4 cast!

by scratchkid201224

Project thumbnail
View Project

Beat up Edward [More Buttons] V2.3.1

by cgsd4545

Project thumbnail
View Project

Talking Tom and Ben news HD remix

by bonzi346

Project thumbnail
View Project

If Santa Claus at noon

by 1296-cat

Project thumbnail
View Project

Grand Prix F1 Starting Grid 2024

by SSeekSSoon

Project thumbnail
View Project

AY in Cook Attack Temple [ BBQ'S SUPER PARTY ]

by BfdiaBBQSauce1243

Project thumbnail
View Project

Dr. Fish Color Matching Game

by rixxybrightful

Project thumbnail
View Project

Sprunki Retake JumpStart (Remake ft. The Last 3 (or 4) Bonus characters)

by dreiknowsofficial

Project thumbnail
View Project

If Vib-Ribbon had an Anti-Piracy Screen

by Avalanchesnowski

Project thumbnail
View Project

Crazy Dave dance

by Elliot_PlayZ

Project thumbnail
View Project

If Bren319 made "Alphabet but the word is Companions".

by Elfanguay

Project thumbnail
View Project

This is just my first BFDI ship

by MuddyMeta

Project thumbnail
View Project

Talking Tom And Ben News NEW TYPES OF BROADCASTS

by ArturcintraRTS

Project thumbnail
View Project

Numbericons 9001-9700 and the rest are 9701-10000

by sprunkigamer23

Project thumbnail
View Project

Crystal Seeker 3D v0.2.0.99

by Romano435

Project thumbnail
View Project

Dimensions band 5b PART 1/2 [COLLABORATION]

by nikinik2023

Project thumbnail
View Project

Beat Up the Scratch Cat! TEAM FLARE VESION! remix that adds an everything button

by programingperson

Project thumbnail
View Project

Object Stupidness intro

by CosmicPineapple8722

Project thumbnail
View Project

Geometry Dash Level Editor - 2.1.13

by CaptainFlufBall

Project thumbnail
View Project

3D Splatoon many features :mobile ok:

by sousoutnk

Project thumbnail
View Project

旅途的碎片-超人貓大激鬥! ver1.5(貓咪大戰爭)

by Pikaowo