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
-

[220] Beat up Sonic EXTREME
by everton_trader
-

SHIN FURY BOWSER VECTOR remix
by alekceranicSonic1
-

最後のチャイム-The Last Chime
by 9dai9dai
-

Beat Up Sonic.exe with 2 lost buttons and 3 new buttons remix
by Lestat1025
-

Cut The Rope Remastered
by professor_newton
-

BFDI Balance Beam Randomizer: 1 Hour Edition! (BORING)
by OrebCatSix941
-

▣PIXELATION▣ Cutscene || Sols RNG
by Qwyns
-

DTL Bombardier C951
by AMINF2842D
-

Minecraft.
by gigant3867
-

Test Jumpscares 35 (p2)
by AlexeyFilippow
-

dont let your kids watch it! But Combo remix remix
by tiziland009
-

Beamng drive - endeless driving V2 remix
by Dasilvabarreto
-

Endless Music KIt fixed
by rgigocaleb
-

BFDIA 25 intro
by bilalthescratcher7
-

Wonderland Numbers Band 1-10 remix remix
by pickypuppy26
-

FIFA pack opener remix
by the_gamer_65
-

Five Nights at Pico's 2 Redux
by Glitchman64
-

Taco Burp | Cloud
by griffpatch
-

(Controls) [2017 Edition] Hyperactive Atlantic Hurricane Season Simulator remix-3
by Hurricane_Janet
-

[プレイ非推奨]☁Online オンライン人狼ゲーム v1.1.0
by sakamotor
-

Klasky Csupo Scratch Effects Round 2
by Damgar12
-

【爆笑】ジャムおじさんのボケてがサイコパスすぎる件wwwwww【閲覧注意】
by Ritta-625
-

Harry Interactive Russian Alphabet Lore Reloaded (V2.62!)
by keyboardzed
-

Count up 0-99999 remix
by NikoDGreat