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
-

Android 2.3 INDEV
by athurrrrrr
-

JQuake風 v3.2.7 地震シミュレーション remix
by sowaiko
-

Water drowning this creator remix
by iminherenow
-

Beat up wenda
by Fabiankosc
-

Wii Menu Template
by Arthur_Back
-

black hole
by sch2016
-

Just dont click the button (All 15 endings so far)
by Pedrolimavargas196
-

Mega scratch animals stampede remix
by eesa1987
-

BFDI 25: Return Of the Hang Glider
by NicoCreaciones
-

custom fire truck made into a storm chasing vehicle
by 26beigekaiken
-

Coptic Alphabet Song IT'S BREAKING remix-3
by VsFamily165-SME
-

Scratch's Doors 3 Deluxe (v0.4)
by TheNAF2001
-

Among Dream
by AshtonL467
-

Sonic Reborn Engine Test
by ComixMaker
-

Windows 12 developer beta v0.7
by mia_programer
-

Elmo try's to beat up chuck e cheese and gets eaten by chuck e cheese remix
by chuck-e77
-

The Art's Mission Collection Menu Music episode 1-3
by P-XH
-

the 2 numberblock decimal animations
by MeerMindX
-

Fidget spinner
by Amityblue2022
-

(DO NOT REPORT) Alphabet Lore in bren319's style (REUPLOADED) remix
by MolkSolsuda
-

Sonic Level Maker (DX Version)
by SONIC_FAN556
-

the full RALR cast! remix-3
by mastergababu
-

Sonic.EYX OST - Crystal Lake Zone remix-2
by lightningsonic3210
-

Interactive Endless Letters (Lowercase With Extrs) remix
by Dg123user