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
Ultimate Colourblocks Band 56 and 90 (False) combined
by mduncan2012
Typer Shark! Deluxe
by Tommy100
parasprunki remix
by llya2023
Sago mini is BABY GAME!!!
by catty_124
Incredibox-Sprunki ReEstiled
by EcuaDev
Beat Up Edward Remastered remix-2
by noattitudes
Number Decimals Band Episode 14: Part 1-2
by chinamkus
PvZ Fusion Test new
by joedozier1
BEAT UP KRAVE remix remix remix
by Macjun12
ねこの回転寿司 / Cat's Conveyor belt sushi
by pandakun
Talking Tom and Ben News Ultra HD (Newer Version)
by GauchitoTehScratcher
Abbreviator 27.0
by Twin138956Scratch
2.0 List Emulator 100% Pen
by Death-Eye
Helicopter Sim v0.1
by banbot2
Super Mario Bros 3 (Super Mario Advance 4)
by The_Guy75
決戦!!
by WagamamaBoy
Maze Generator And Pathfinder
by bobthejoe22
Pocket Ants: Colony Simulator v0.012
by Timka35
Gun Knight
by -ChillyPepper-
love potion v1.9- SML
by ThisisaALT21
One Night at Franklin's 2 remix
by kaidon_k2
Should I be making a numberblocks game?
by babablacksheep_woody
Full RALR Cast V2 remix
by Laypyae
French Alphabet Lore (Read Instructions and Notes)
by stevshel_marshall