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
Pizza Chef
by ttseng
Emoji creator beta
by Tiziano_Morsucci
BFDI Season Creator
by _JackMagic
Endless Learning Letters
by Cubintherug
endless wordplay alphabet help endless reader endless numbers endless alphabet endless spanish
by -ethangamer-
Lots of colors
by setula
33% Episode 1: Kill it with Salt
by TheRedRaider49
地球儀_osu! Scratch 不完全復刻版 [ver. 4.0.0]
by john1030128
INK strike back..?
by Midear
Tommy's nightmare escape room
by sillypants100
1 Night At Scratch Studio 2
by oofernet
動く模様
by jagabata-
Scratch Brawl 2 Rebooted
by striker08080
Entry for t9decode 100% PEN イントロ
by nakakouTV
ビル経営ゲーム v4.4.12
by Masaabu-YT
Adventure | Multiplayer #Games #All #Trending
by GentleX
Smoke Flow Simulation
by SpicyMelon
Endless Reader : Jump
by Ping_Au_Creator
Beat up Mickey Mouse
by JoeDimaggio5
Mateo Inc Logo Bloopers Cast 4.4
by leidymateo
BFB Contestant Generating Game In NIAR's Style (25/66)
by Waiwai2021
Discover Card 2000 Countdown
by happyapple4
Paper Minecraft sky block v11.3 (Minecraft 2D) remix remix-2 remix
by huyscratch22
AY: Avoid The Rocks (14) (Player 25)
by CuCl7