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
-

add a button to beat up Squidward. [1]
by Super_Isaac_64
-

Vyond Effects Test 1999
by lateone1
-

Endless Alphabet: A-D remix-11
by RonaldMcDonald-MAK
-

Google on Scratch
by tennina
-

Klaskyklaskyklaskyklasky Gummy Bear Song Version in i killed original
by Gummibar1212
-

My Czech Alphabet Lore remix
by cutie_ethan2017
-

Harry Potter in 99 Seconds AMV
by CursedKnight
-

AY: In Four Corners Deluxe! Remastered (R10|P30) remix
by miguelhauck
-

Just For Laughs animation: Victor blows a balloon
by chanchitobarbie
-

Club3535 Punishment
by SeraphinaTheReal
-

Samsung Galaxy S5
by Yoboiwyatt
-

スプライトテール ラストエキストラキャット戦
by sinannnnnn
-

face
by piczy25
-

Windows 11 Crazy Error Maker 1 (Russian)
by SakuraSpikeCZE
-

you can run but you can't hide inanimate insanity
by scratchest303
-

Super Mario Bros. Wonder (NES)
by CCStudentNL001
-

google slides in block party
by GoogleSlides2007
-

Among Us | Online | Server 1 #Games #Mobile
by KickBackAndRelax
-

Roblox Clicker #Games #All
by GameXLegend123
-

Playkids Band 9 (Remake)
by SharkyBlues3rd
-

Beat up Scratch Cat 2.0!
by tatatino150again
-

Dustswap: Dusttrust Sans Fight
by Jden_yt
-

Bricko makes Cameron cry but Cameron's crying voice is funny
by mynameisjeff8937
-

Adrian's Spanish Alphabet Lore in bren319's Style! I put them all in order
by AlexTheCreationer