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
-

Troll Face Quest Anti The Mouseheadz remix
by Lirikopter
-

AN0MALY WATCH (W.I.P.)
by panwon4
-

Beat up 4-BIT 1
by birthdayboy12_matteo
-

Skibidi toilet
by Tgraw_and_Tgrae
-

理不尽アスレ(アイワナっぽいやつ)
by danpiza
-

Beat Up Ball remix 3
by ATF1009
-

Osu! Mania V3 | Extra Dans α-ε (Custom Settings)
by Naaag_
-

Sprunki Bonus 2!! remix
by SprunkisTopFan
-

Mello 2 // A Platformer #games remix
by TK_Rabbit_Cat_8723
-

KyleWare: Ultimate Microgames! (v0.2)
by saulosergiostick
-

Bluey The Tank Engine and Friends - Dr. Dachshund Vector
by JLLeonScratchy
-

40th Perfect Number
by SquareRootOf1
-

windows history
by NoahTDM6
-

飛べ!カービィちゃん【タイミング】
by mimiman
-

Sad Alphabot remix
by RandomStuffUser
-

New TVOkids Letters! remix
by YAustin382
-

Slider V1.4.5 (DEMO)
by -PixelBeast-
-

even more news
by BATTLE_STUDIO
-

(safe) Fox Chat v0.22 - Now with cute cats!
by Arturall
-

all beat ups at once!!!!!!!!!!!
by JonDoe128
-

FNF Reanimated BF test v2
by Jayden40175
-

✹Universe size comparison 2019✹ remix
by solarsystemcasper
-

universe size comparison
by francescocim
-

Talking Tom & Ben News remix
by kuponoIs