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
Real Time Clock
by crisgamr562
TALKING TOM AND BEN NEWS NOSTALGIA BEETS 2
by Boomkastudios
f n a f 2 remix
by daxke99
Amogus sus ඞ
by Whiteandroid
YGL Black Hole Add Round 16
by YGL2K14
Slaughterhouse
by pecymushrooms
☁ MosChess v1.2 (online chess / chess online) smooth ver.
by Yur4ik2013
SOLS rng but i made it bad
by PikaKain-_-
LoloIsBack Had a Sparta Remix V2
by 444433hhh_ALT
A Effect!
by Ruby_Guy_1001
BBTLE's Flag Band Pack! Part 5: Oceania And Antarctica (The Last Part)
by BBTLEOfficialScratch
Paper Mincraft
by dronecode2
BFB 1 Four screeching scene ReReReanimated
by mrbloxykid
Fly a Dragon
by LoveIsLife54321
Aqua Reef clicker V.1.0
by CookieHamster37
Terraria Modded (Stamped)
by TerrariaMods
park your car 3D - V2
by brodieboy441
FNF ⩍Zanta⩍ Playable with my OC
by shadowmask1234
Talking ellie
by 777shark
Phantasm TEST
by GameXMEGA
ゾンビvsウォーデン【マイクラ検証】
by TAH1969
roblox free draw is horrible...
by LeafstarWasTaken
Cyber Bean Tumble #games #all
by StarryOrange
Yeah it's just royal flush teasers
by boiboiboib024