Black Hole Distributed Raymarcher

Black Hole Distributed Raymarcher

by GCgamesandcartoons

👁 428 ❤️ 26 ⭐ 17 🔄 1
Created: Jun 26, 2022 Last modified: Jul 2, 2022 Shared: Jun 26, 2022

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

Project thumbnail
View Project

3D迷路「初めてのレイキャスティング」

by yukku

Project thumbnail
View Project

AY in Hot Bomb [ Remix #3 | 40 Players ]

by KamariCampbell317

Project thumbnail
View Project

Old Version Terraria Modded (Stamped)

by TerrariaMods

Project thumbnail
View Project

☁ Mars ☁ || [PART 3] A multiplayer scrolling platformer #games #all #game

by IAMibrahim

Project thumbnail
View Project

TACT-AIM MARINE

by urukazu

Project thumbnail
View Project

Among Us Scratch (ONLINE)

by sniperfoxstar459

Project thumbnail
View Project

Scratch Plaltformer

by scr16oualaha

Project thumbnail
View Project

Entry for link9312

by gineppi

Project thumbnail
View Project

starter project: the car-fighting woman

by jay

Project thumbnail
View Project

第二弾! 100%ペン(にしたかった90%ペン)のステージのアクションRPG風-製作中...#game #PEN #Art #Trend #scroll #bravecat999 2.0.2

by bravecat999

Project thumbnail
View Project

Minecraft scrolling platformer 2.5D online

by maDU59_

Project thumbnail
View Project

Add yourself singing Triple Trouble

by sadik173

Project thumbnail
View Project

The Ninja Squad || A Mobile Friendly Platformer

by JC_ProGold

Project thumbnail
View Project

Galaxy Collapse (W.I.P.)

by ZeedMil

Project thumbnail
View Project

モバイル対応  3d レースゲーム スープラドライビング シミュレーター remix

by arihaya

Project thumbnail
View Project

NOT Hyperactive Atlantic Hurricane Season Simulator (New Satellite Map!) V1.25.5 Update

by jonathan101125

Project thumbnail
View Project

Love Rap 2 - Rhythm Heaven Fever

by goldmelonmaster

Project thumbnail
View Project

Super Mario World Maker v2.4

by jettypumpkin07

Project thumbnail
View Project

Ball King

by kevin_eleven_1234

Project thumbnail
View Project

Rick roll

by Explodingwaif

Project thumbnail
View Project

Among Us | Online | Server 1 #Games #Mobile

by KickBackAndRelax

Project thumbnail
View Project

Beat Up Tomybenluis11 2 (4)

by CryingEmojiisBabies

Project thumbnail
View Project

UNDERTALE - help from the void phase 1

by skylifeplays

Project thumbnail
View Project

Teletubbies and Friends: Back to New York DVD Menu

by SuperCreatorNTH