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
-

Geometry Dash Abyss Of Darkness Top #5
by Ilijah2015
-

Antartica Eas Alarm remix
by george_gamer_TV
-

Endless Alphabet Old Version Remake remix
by NumberjackFan2024
-

Incredibox - Sprunki but ocs
by Coolgrap000090
-

Beat up Marshall way too much buttons!!!! remix
by Nikosuper2011
-

fish fish cus why not
by koinster
-

Super mario bros. wonder!
by TheGamesAREREADY
-

A-10’s channel anti piracy screen
by SpaceeBoyy17
-

sprunki oc real
by leonprieto
-

Sprunki Babies: Wenda's Nightmare (Sprunki Babies Wenda Treatment) remix
by VYL2009
-

Playhouse Disney Logo Bloopers Cast 0.0
by Alfie_Dude2007
-

BFB 2: Deleted Scene But It's So Gross
by ObjectParadise
-

AY in Paint Attack! [ Remix 13 | 150 Players ] OHIO TAKETOWER
by leoprincipe04
-

Plants Vs Zombies 2: Dark Ages Plants
by Jamesking122
-

Talking Ben remix
by sushidog51
-

Sprunki Recovery center (H.P.S.R.C)
by LUCCA918
-

My beat up [character] folder? What?
by luisbarretto
-

ローリングスカイ・10
by nihon2020
-

Ectospasm - Friday Night Funkin'
by Kelvan_
-

Outfit7 Games On Scratch | Talking Roby Celik The Robot (White Color Version) remix
by Alfad2009
-

haunted house
by DarkBean_
-

Endless Reader Song
by ToodlesTeam1251
-

Claustrophobic Artistic Alphabet Unused 7.0
by ChermayeffTesting
-

Plants vs Zombies Garden Warfare
by pvz_pro