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
-

Scratchnapped (A mario style platform game)
by griffpatch
-

SMPS: Ghost Run (Mario Party Scratch)
by isaiahandrews07
-

Beat up Scratch Cat But Creepy remix
by xmrrileyxx
-

I have 790000 followers?!
by Sizzly_3829
-

Appel Fallen
by Ultracode4000
-

Paper Minecraft
by hlm-pol-5
-

Spiffy.EXE Buttons: The Collection S1 (Part 1) remix
by SprunkiBoi588
-

Mickey Mouse Clubhouse 100th anniversary
by DernerDesigns912
-

Nick@Nite Creatures Interactive (Alternate)
by KyleHenry2009Rises
-

PBS KIDS Announcements: Del
by NumberblockFaner303
-

Rainbow Friends (Chapter-2
by 340231bh38
-

Sonic overdrift anti piracy screen
by Joshua010214
-

Marvel Rivals
by X-boy9
-

Beat Up Scratch Cat
by elevatorkoneecodise
-

Test thingy
by Sedrik_Void
-

Pell Numberblocks Band 1
by Kareem_j32
-

Phone Game Updated (21)
by JarL011207
-

dfjk ?
by Numbas
-

Namco Mus. Scratch (Ms.Pac-Man 1982) remix For IPAD
by Sqvishicus
-

IQ Evolution and Devolution Tug-of-War (105 IQ → 106 IQ)
by ScratcherStar4000
-

Windows 11 Crazy Error Maker 4
by bradq223
-

漢字の画数ランキングみたいな比較
by ebujp6743
-

Beat Up Tennis Ball (3) STOP remix
by jahir67952
-

Random Number Generator (1 to 2000) remix
by IAmNotA-10IMN666M3