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
-

Candybots numbers 0-100
by Tufftifford1234
-

Geometry Dash Legacy Orochi (Top 5-10/6-15)
by Grimparsley2672-
-

Numbers Band 96
by Maya_Channel
-

all Talking Tom And Ben News HD V5 remix 2 remix remix
by jackthemeepyboi
-

F N A F Sister Location Full Glitch Free Game. remix remix
by LordRaiden14
-

Seadtype V9.4
by BonesonScratch
-

[TSDoN-9 | 1080] ⭑★- ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ‣ քǟʀȶ 9 -★⭑
by NovaShrugs926Rises
-

Scratch Cat Icon Creator
by ceebee
-

eena meena deeka black hole add round 6
by Leoox2015
-

Add A Button To Beat Up Nano! remix
by TheBlackHoleOfDoom
-

My Singing Schoolhouse (The Campsite) #03
by LDH110630
-

What if you combined Scratch Cat with a butterfly?
by CatsAndMinecraftRULE
-

The Happiest Maze in the World
by RokCoder
-

Stingy text to speech remix
by mrhippo16
-

Syn OS X 10.5.1 Leopard
by KkRocks46
-

Undertale: Scripted Save File BETA!!! but better
by alik9988
-

3k
by sab_pg
-

roblox news christmas (READ NOTES!)
by asxheticc
-

BTT (hardmode) (scratch ver)
by pota-undertale-au
-

(RESHARE) Sikky's New Baby remix
by MasterCodingGenius1
-

Beat Up Stickman 2! remix remix lol
by fughunt
-

New Super Mario Bros U! [BETA] #trending #games #all
by scratchmonster2468
-

Windows Crazy error maker
by L1241
-

Alexa C's cave surfing game
by Lxc12