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
BFB/TPOT Contestant Generator Game (Complete)
by MrGumballMachine
Talking Tom and Ben News HD remix-2
by everton_trader
@Quesadillamixplus's Century Schoolbook Font
by Quesadillamixplus
Mixels Stampede Green Screen remix-2 remix remix-2
by Leoox2015
[TSDoN-9 | 1056] ⭑★- ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ‣ քǟʀȶ 9 -★⭑
by MisterChuChu
Beat Up lukemanolopoulos8! (2)
by newmyles
Tec OS 3
by Techno-CAT
Geometry Dash v3.0
by CrystalKeeper7
Windows crazy error
by maxSmain
青の塔16階
by sakaryuu
Numberblocks Intro but it's in my art style
by Numberblock4Fan
7x table challenge
by nero7
Tower Defense IMPROVED
by Pikachuf1
Beat up 13 DLC Remastered remix
by bandrock238
Nothing found XD
by Luchim15
☁️☁️HD Project Image Search☁️☁️
by 3_141592653589793___
TNTジャンプを極めし者のTNT発射装置【GIF】【マイクラ実況】
by motonisi777
BEAT UP SCRATCH CAT OMEGA remix-8 remix remix remix
by sussytaki
OFB vs Mr Beast [OFB SERIES #4] #All #Animations #Trending #Comparisons #Games
by -SourToons-
ネプリーグ プレッシャークロック③
by Ko_sho_ko_
USA EAS Alarm (1958)
by fineganfox
Beat Up Chromey (v0.3)
by galaxylgnokiasamsung
Talking tom and ben news in scratch edition
by ATalkingNewsUser
209系京葉線 3D運転シミュレーター
by e235-Yamanote-Line