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
Please Nickelodeon, Don't but it's 4
by Clexer21
Windows 10 OS {Pre-Alpha}
by xCyburg
Hand Powered Recovery Center AY
by AshtonRises
Numberblocks band different (1Qocto - 1Qnocto)
by A2_is_here
3D Globe
by BamBozzle
Music Box - Jack Vector
by sn0wfall_
Beat Up Luigi PLUS [Massive Update] with no intro. (Hayley Buttons) remix remix remix remix … remix
by kubakoodziejczak
Sprunki [Ultimate/Deluxe 2] (ft. chillsy star) {CANCELED} remix-2
by lovrajtiwana
Beat Up chee remix remix remix
by jacejimerson7
beat up coiny 2 (add a button)(5)
by miguelhauck
CB AYS CRAPPOST: SOMEBODY GET ME 10 POUNDS OF BLEACH! IT'S EYE BURNING! [AYS] (9)
by OzzieTheGamerDude
(Original) tom and ben news plus ginger (1 new button)
by rac_kid
goanimate in a nutshell (my version)
by artemgudz12
1v1 soccer
by History_Ace
Geometry Dash v1
by VarshuLolly
QC's Disney Junior Logo Bloopers Part 6 - Lyrick Studios Letters
by Quarter_Change
Scratch RPG | Early Demo | v0.19.21 | #games #all
by Andygun11
fighting dark 827 cannonball, anti kitten disney and.... my god form???????? remix
by NEWADEJOFO_8
hard mode sans fight
by Heartfulisland13-jp
FNF (VS. AFLAC) - The End
by JustDavid2018
Flower maker!
by eleanormakepeace
Beat Up Coiny 2.0
by my_finger_hurts
Battery overcharging to ↇ percent???!!!
by minhkien3h
Object Invasion: Episode 5 - "Friendships Never Last" on Cartoons On Daytime
by FFTGScratcher