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
-

Beat Up Samster V3.2 (PNG Burger)
by S4mst3r
-

Hill Climb Racing v1.0 MOBILE FRIENDLY remix
by yaafi232
-

Смешарики игромания remix
by Volfram_fon_karych
-

Spinning 3D Text (coolness warning)
by gggamerscratcher
-

Beat Up Rowan (4) remix
by kubakoodziejczak
-

Opening Of Disney.Pixar Liability A Cars Story 2025 DVD
by Thomasandfriends345
-

Pac-Reggie (Old Ver.)
by TheArcade-Man
-

Nick Jr Dirty logo but Nick Betrays jr (Silent For Dirty when they come up and scare Jr)
by Nickelodeon93038Fan
-

Among Us Low Kill Cooldown Mod
by uwu_50
-

attempt at evil effects
by faliene
-

sprunki rainbow friends reversed
by thiagotorales
-

☁️ BattleShip Online ⛵️ | #all #games #online #multiplayer #battle #ship #trending remix
by thehibernater
-

Rafael yearblocks band 2141-2150
by rafael12scratch
-

BFDI Camp Intro!
by GreatGAMES173
-

Basic English-Russian/Russian-English Translator
by RenacentACE743
-

アンダーテール サンズ
by yuuri623
-

Stick Pig
by piggy490
-

Deltarune Kris vs. Kris
by cs462323
-

Sleeping in the Nether (AMV)
by itzs_me
-

★Kirby 30th birthday★ 手描きMAD
by _Whiteghost
-

Baldi's basics v.1.4
by Omega_Pr0
-

Five Nights At Sonic's 5 REMASTERED (beta)
by veshremy2
-

Undertale OverWorld Engine V2 [PainInCode]
by PainInCode
-

iPhone 15 Pro incoming call
by cs4356334