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
-

2,500 to 2,599 Jumpscares (Part 6 of Blue Mist Plus 2,000 All Jumpscares)
by Jharring20
-

AY in 4 Numbers Redux! [ Remix: 20 | Players: 24 ]
by charliechooch101015
-

Chess AI
by ArnoHu
-

TooToo Boy - Coffin Dance (COVER) Song In 2x
by oksana65017
-

Endless Reader A to V
by JOAOPEDROeULIANA
-

Pinky Dinky Doo says Caillou! But Instead of a tenor voice,it's Pinky's voice.
by Iggy2014
-

(ARCHIVE) Knock-Out!! Beta v1.0
by RainbowPuffNinja2
-

Playkids Band 5 (Remasterd)
by Miguelmendox
-

Wall Clock (Seiko QXH118B) (Dual-Chime)
by Strawberry-kit708
-

Virtual Fidget Spinner
by game_pr0grammer
-

Valorant 2D | 1v3 Shooter [OLD VER.]
by high_digital
-

FNF <MADNESS> playable
by shadowmask1234
-

Sesame Paradise 3 REBOOTED
by LegendaryJoshua13
-

mecanismos_ej3
by mdevicente
-

Happy Lunar New Year! 新年好!
by woolawoo
-

hand with 1 to 400 fingers
by Neohm
-

Mario PC Port.
by pacmanjet123
-

Beat up pico 2022
by newmyles
-

Nick Jr. Productions (1996) - Ultra Rare Variant
by MJA2012
-

Dungeon Of The Slimes - Roguelike
by GusTune
-

Devourer Of Gods Vs Your Own Boss
by jasonzawtun
-

tom and ben the big news
by mateothebb
-

Angry Birds Epic 6 Waves Impossible V.0.2.
by RayRay70584
-

The Windows 95 Simulator remix
by Rileyjor