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
NEW BuddyMan Kick: Scratch Edition!
by Guest_Dennis
end event (Add Round 12)
by Numberblockgamer8694
Make your own BFB / TPOT as of TPOT 12
by JLemoniDiOd_A
Hunter 36'' Original Ceiling Fan
by thecarkid6
Beat Up AbsoluteDigital V23
by ChermayeffTesting
Doors the mines V 2.0
by ShchegolMan
Beta inanimate insanity simulator
by TheReal0ne_1
UCBB 202
by jordan209__
Nickelodeon Creatures Text Engine 119.77
by siddharth1717
The Radio
by IAmActinium
Numberblocks Band 1551 - 1560 remix
by monkeymonkey1206
Incredibox - Sprunki - Numberblocks Edition (Retake) (Alpha 1.1) remix
by Fredua_1-dec
Beat Up Super WHY! But, Windows NT 4.0 Takeover! (126)
by 09limbua
Numberblocks Generator remix
by PlatonBars
messing with mine song more
by Whatcouldyousay
Numbericons 3751
by vanhouchin
Super Mario Bros 3
by AgiNugroho
FNF vs Kapi | Arcade Showdown (OLD)
by chucky_lee
How to make Popular projects 2
by SupercoolDemo
the mine song
by TeardropBFDIA
Base 6
by rii12g
Cyber Bean Tumble #games #all
by StarryOrange
Outfit7 Talking Larry the Bird
by Lunablz
THX Parody Movie Theater Party 2 Lovely_YT And Create-A-UserName-27 remix
by amgel14-0