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
an actual Windows 8.1 Simulator project (totally accurate)
by EmiricTheHedgehogYT
[TSDoN-9 | 1000] ⭑★- ȶɦɛ ֆȶʊɖɨօ ɖօօʀֆ օʄ ռʊʍɮɛʀֆ ‣ քǟʀȶ 9 -★⭑
by elliotthenice
Angry Birds SE (Ver 1.0.0 HD)
by LarryCrowe77
Numberblocks 1-350 Is New 352
by Nataliehouchin
Endless Alphabet DX
by snowfox_alt1
Talking tom and ben news V2 remix-2
by AvaDeruyter
Uncannystart Band Remastered (1-10)
by bau2213
Weird bytebeat
by q3wr424
Beat Up Winnie The Pooh Plush (New More More Hyper Mega Button UPDATE) remix-4 remix remix re… remix
by kubakoodziejczak
Ao Oni (Re-Take) (Model)
by thesecretsussy
Talking Tom And Ben News remix
by everton_trader
Bop It Maker
by BuddyEmmett
AY in This or That? [ Remix 7 | 23 Players ]
by roothlessroo
Alphabet Lore Sprite Pack NEW UPDATE
by ferranmarconde2025
1 PacMan
by imdabomb
Stingy text to speech
by golfisfun123
Candle Queen || Meme
by Pudsawolflol
Pit For The Beat Up Games
by tatatino150again
-椅子鳥GAME- 第肆獣.伍話「負詠坂妹、幼き狂気」
by mikorin
Make Your Own IDFB
by Squary_
[Cyan] Beat Up Little Timmy (rainbow friends chapter 2 update (lookies coming soon)) remix
by zolphius49
Much stuff of beat up games remix
by ptv_23
☁Battle Arena Online☁ [マインクラフト バトルアリーナ!]
by hayatiburusu
(13+) Animation Test (i amlosing it)
by SonKomatsuna