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
Endless Russian (FIXED)
by CatmoTheCloudyCat
Paper Minecraft v12.0 (2D Minecraft)
by PEI0005VPS
Windows 8
by Kiko_tutorial
Spanish Alphabet Lore (My Take!) (MOST VIEWED PROJECT)
by PidiAmo
Beat Up Sonic Again (2023 Remastered) remix remix
by jacejim1809
well meet again♡
by GalaxyKitty4567
PvZ 2.0
by 632000v
EthanB0206 OS
by amoretoons16
best pvz wild mod
by masonxd18
Numbers Band 153
by SimonIs14
Sonic Catalyst CSE Test 2
by Random_Runner
Beat the Boss Remake
by quan772
The Studio Doors of Numbers - Part 3 (265 Doors)
by KlaskyCsupojr
Geometry Dash - Divine Emancipation
by im_feeling_itchy
HTF Giggles Sprite G Major Effects (1-10) (RETIRED COMMUNITY POST)
by DakotaSpoo
Endless Monsters band
by neonlakan
I made a shoop da woop firin its lazer and explodes in the project, beat up zakorocks1258
by DeeoliArt
Paper Minecraft ver1.19.50【日本語翻訳】 remix
by 00-gsha
beat up edward
by mateothebb
Numberblocks Band ReTrillion Remastered (100.0Dec-1.0Mim)
by CSTTPCGE450
ABC Clever Scratch Version Image
by AaronAcademy
BFDI Balance Beam Randomizer with bfb charachters
by biibeebackagain
AY black hole remix
by joaomanoslay
Wii Menu en Español 1.7
by -yellpixel2014-