
Black Hole Distributed Raymarcher
Description
https://turbowarp.org/709319751?turbo&stuck UPDATES ON PREVIOUS: - Accretion disk - Reflective sphere - Antialiasing HOW THIS WORKS: This is based on the formula F=G*(m1*m2)/r^2, where r is the distance between two objects, G is gravity, m1 and m2 are the object masses, and F is the force of attraction between them. This casts rays from the camera (mass of 1), and some are warped towards and sucked into the black hole, whereas some make it past. Those that make it past form a grid, to demonstrate the warping of spacetime. So, for the ray direction, I made a velocity vector, by creating a new point in the desired direction 'pointing' towards it, then normalising the vector. For every iteration, the photon moves by velocity amount, then the force is calculated with the above formula, and the vector from the photon position to the black hole, rather than the target point, is multiplied by the force of attraction. That is added to the velocity vector, it is normalised again, and it repeats from there.
Instructions
Press the flag and wait. This utilises monte-carlo multisampling. The sphere's reflection looks off because light behaves strangely here.
Project Details
- Visibility
- Visible
- Comments
- Enabled
More Cool Projects

New Super Mario Bros. U Scratch
by Multiverse-prime

UPDATE talking tom and ben news V2 added all remix-2
by bonzi346

♪ Alone / Alan Walker ♪
by K-Orange

Dozenalblocks Band 15
by ugurasker

✦ NyantyuGO
by -Grebe-

Escape - Game
by Elite_Games

青の塔24階
by sakaryuu

Beat up King Pig [AY] [6]
by newmyles

Talking Tom Cat 2 edition MonzterZ edited
by Kacperekskr12

[Hard Mode] Murder Time Trio Phase1 (New)
by Ch_kid

vs tord - Tordbot
by 44ttech

Rider
by Fascry

Zen OS Killscreen (Part 1)
by Sephiroth10

Beat up TVOKids Q UTTP THDTC and his flip buddies (2) remix
by jace1809

beat up zynx v4.5 REUPLOAD!
by paataflamez

Beat Up Ball
by YHDGAMER

Super Mario (Scratch) 3 LITE
by Jkidj_Explains

Oren Spiffy Pictures.EXE Buttons I
by mimitrini1return

3D minecraft chunk loading
by SpinningCube

3D Maze #games #all
by IbnuScratch

3D Minecraft Ver.1.1 (マインクラフト風サンドボックスゲーム)
by nakakouTV

Beat Up mr tenor (8)
by lukemanolopoulos8

<2000シリーズ+>太鼓の達人 ニジイロver.
by scratch2019722

音ゲー [極ノ深淵] Ver.2.0
by norumaku