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
1-10,000 in Base 2! (Numberblocks project) remix-2
by Stepsquad3
NOTHING FOUND 2
by Akimnevo
online 3d shooting game
by 0823ils
Number decimals band: Episode 8: 1.1428571429‘s part [But it’s not terrible]
by thezkids
マイクラ 1.21.5 _ Paper Minecraft 1.21.5 (1)
by MoneyBucks_com
Battle Tanks! (Cloud)
by colinmacc
Angry Birds HD 2.2.0.ipa
by mmcorreia
Five Nights at Freddy's 4 FULL GAME
by limbs7
青鬼学園 第一話
by toratora1
MineCraft 1.19| UPDATED!!!
by HyvexJacket
Dodge Game
by DarioGAMER64
Beat up Edward QERI 2
by hyd3ns33k
Beat Up Monkey Buttons 5 Remix Music 5 remix
by newmyles
Beat up Pink Gold Peach remix
by miguelhauckl
Sonic maker
by Gamer717555
Super Mario Bros. for Scratch Speedrun Edition
by MVBit
Roblox Character Designer #All #Trending
by games-coder
PBS Kids Dot ID (1999-2013) In CoNfUsIoN
by scratchbaby2016
Elveda Scratch Merhaba Cocrea
by Pro_Turqish
CWSKB Free For All Elimination! 27 players
by 3395332659
Talking Tom and Ben News: Edición Hey Duggee new year
by mibros77
Super Mario Mayhem Maker - Mario Maker Crossover
by mariofan235
PS3 Simulator
by hudson_lol
[GENOS] The Strongest Battlegrounds
by GB_Boyz