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
-

1996- 1997- 1998 ITT Countdown Remake!
by Tunicogaems
-

beat up the scratch cat remix remix remix remix remix remix remix remix remix remix remix rem… remix
by everton_trader
-

GIGANTIC ENDLESS STAMPEDE And Blue Bubbly running
by DamonLomeli
-

Geometry Dash Smash Hit remix
by doggy_786
-

ドルアーガの塔~The Tower of Druaga~ ver0.6.9
by oomemcexmmpomnmvn
-

Incredibox - Spruci (WIP)
by finleywoo17
-

Seadtype V25.3
by BonesonScratch
-

pizza tower engine: The noisddd
by brentleydddd
-

(AY) Running From Ruby (3)
by MuddyMeta
-

Paper Minecraft v11.8 zombie (3)
by fanjaygray
-

Incredibox - Sprunki Sinner Edition phase 2 remix
by GriffpatchsTwinsTwin
-

Endless Numbers 1-100 copy
by Zhiware
-

catblues mincraft (wither storm mod)
by catblue124
-

Portugal
by STEALABRAINROTTEST
-

Add a button to beat up Mega Photo remix
by -TheBestHacker-
-

音楽聴こうよ
by hu-kanosabu
-

Add yourself singing Triple Trouble
by sadik173
-

【モバイル・キーボード操作対応】東方風弾幕【妖魂剣】
by gigirugarudo
-

halo
by fosterjus11
-

ALBTWIAIOF OST: LMNOPQRS theme
by wario100
-

WGBH kids - 2017 version remake
by danykemiche
-

Talking abc b
by jessiebarbara
-

Beat Up Spiffy Pictures #3! remix
by Geodude2024
-

(MLG) Elmo wants to hurt you on Easter
by maxonnumberblocks