Light Scattering Demonstration - 2D Pathtracing
by SpinningCube
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
windows7409 Classics: Windows 11 21H2
by windows7409
Beat Up Kijobal 0.1
by TheCarlos3214
beat up yara suspects
by piolalina
Color Crew Season 4 cast!
by scratchkid201224
Beat up Edward [More Buttons] V2.3.1
by cgsd4545
Talking Tom and Ben news HD remix
by bonzi346
If Santa Claus at noon
by 1296-cat
Grand Prix F1 Starting Grid 2024
by SSeekSSoon
AY in Cook Attack Temple [ BBQ'S SUPER PARTY ]
by BfdiaBBQSauce1243
Dr. Fish Color Matching Game
by rixxybrightful
Sprunki Retake JumpStart (Remake ft. The Last 3 (or 4) Bonus characters)
by dreiknowsofficial
If Vib-Ribbon had an Anti-Piracy Screen
by Avalanchesnowski
Crazy Dave dance
by Elliot_PlayZ
If Bren319 made "Alphabet but the word is Companions".
by Elfanguay
This is just my first BFDI ship
by MuddyMeta
Talking Tom And Ben News NEW TYPES OF BROADCASTS
by ArturcintraRTS
Numbericons 9001-9700 and the rest are 9701-10000
by sprunkigamer23
Crystal Seeker 3D v0.2.0.99
by Romano435
Dimensions band 5b PART 1/2 [COLLABORATION]
by nikinik2023
Beat Up the Scratch Cat! TEAM FLARE VESION! remix that adds an everything button
by programingperson
Object Stupidness intro
by CosmicPineapple8722
Geometry Dash Level Editor - 2.1.13
by CaptainFlufBall
3D Splatoon many features :mobile ok:
by sousoutnk
旅途的碎片-超人貓大激鬥! ver1.5(貓咪大戰爭)
by Pikaowo