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
-

Chess Dev-Version
by ArnoHu
-

Monkey maddness
by timbo_cole
-

Alphabet Lore but the word is "EGOR" instead of "FRIENDS"
by EgorTheScratcher2012
-

Blue Mist Plus 4,000 All Jumpscares P1 (4,000.000004-4500)
by Jharring20
-

Jumpstart spanish test
by Kian_123456
-

Endless Georgian Animations! (5)
by alphafan40
-

Among Us Hide And Seek
by among-everything
-

Handy running
by Pacuddlesfan
-

Bmw M5 E60 speedometer (rev)
by Mikos509
-

FNF Jax -Baby Boy-
by LIberty870
-

Russian Alphabet Lore Reloaded: Sha Add Round 47
by Laluna1964
-

entertainment one logo
by drupy
-

Nintendo Wii Menu remix
by EdNintendo
-

All Numbericons 1-100 Different Styles remix-2
by moon38525
-

Talking Tom 2 remix
by nilormi123
-

Among us hide and seek
by babypoke21
-

Lemonoids v1.2
by anoyomous_user
-

All Different Kinds Of Alphabet Lore B remix remix
by harveybalphabetlore
-

Undertale Last Breath Phase 1 Remastered
by illusionarygull
-

RETROKILL V1.9
by PolarDevWasTaken
-

Tasty Planet 27.04.2023 14:30
by CodingAlina
-

Undertale Engine
by TheGreatSayaMan
-

Klasky Csupo Feels Dizzy
by juliescott12
-

Spiffy Pictures.EXE Buttons D remix-4
by maikaivenko