Light Scattering Demonstration - 2D Pathtracing
by SpinningCube
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
Ditto clicker v8.6 (BETA)
by DittoDitto527
(REUPLOAD) Preview 2 Scratch Cat In Chorded remix
by jayjayy1809
PVZ Proof of Concept
by Anthings
Progress Update: Aria Math
by marmoishere
BFDI 19 M.A.P. [CLOSED]
by HouseofScratchLiam
Scratch Party - Star Scramble v0.0.8.1
by CooperFan5
Pen Text Engine (MODEL II)
by goblue55
Mickey Mouse Clubhouse Credits (season6)
by D1eze7408
RAIN AND HAIL UPDATE! CHASE UNIT: MULTIPLAYER STORM CHASING SIMULATOR!
by espycat
Endless Numbers 1-100 copy
by Zhiware
AY in the Moving Mine Redux! [Fun Show Party] 51 Players
by LorenzoFiscoGaming
Animal Crossing Character Creator
by Toocuteyoshi123
WINDOWS SIMULATOR
by Win-Animations-ADT
Battle Cats Stage Creator! (Early Access) (Version: 1.00.462
by discolightsrock
*gets electrocuted*
by claw_was_yeeted
Bouncey Ball
by Jam_Animation
MISTERMANTICOREBOSSFIGHT
by CEOofobamiumresearch
Beat Up The Vegan (CMbridge's version) V13
by therealbalconyyt
FNF | Vs Impostor V4 Part 1(+10)
by aboda243
Super Oofio 5.4.0 (Cheesey Castle)
by OofioTheOriginal
Beat Up google chrome ainme
by Emad1377
Recoil v1.9 speedrun update
by Firedragon97
When no one watches the letters (Endless Reader) (NTSC Pitch Corrected)
by NZWStudios
Red Jacob's Revenge: A Jacob and Friends Game remix
by lateone1