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
[Beta, no SSTs] Hyperactive Atlantic Hurricane Season Simulator
by scratchmaster295
【メダゲ】Scratch烈伝 ネコカバトル キャットのメダル Ver5.1.0
by prigon325
Knife Hit v1.2 #games #all [scratch remake]
by sppurpleeagle02
(5.3) Jolly Sprite Pack
by mo2299311
Scooter remix remix-3 copy remix-3 remix
by Timpson
Miniraft v1.30.2 (Moblie Friendly)
by somestuffgoodhopfuly
Punch-Out!! The Definitive Remake (Beta)
by ZappyBarbecue10
[裏技] 翻訳機能で使える言語を増やす方法。#tutorial
by Es-2
Tetrational Madness (100% Pen)
by Patcail
Template {free intro}
by robtop_Game3
VRaster v1.5.7
by sashimiricedev
尾上の松じょん
by tsurugamine
MPGL-player(black midi player)
by hevean_3
【マイクラMOD】まな板
by horiyouta
FNF Online
by EpikRobloxianHacked
block battle [7/0]
by miniepicness
Snake (And How I Made It)
by Ironisgold
Sonic Levitate 1.2.3
by AKidThatLikesMath
タッチ操作対応 アンダーテール アズリエル戦(製作途中)
by wanntannnabe
SONIC 3 ENGINE (UNFINISHED)
by FuzzFerretTM2
FNF - (Vs Imposter) Week 1
by Bradk2005
Not quite ball physics game v1.0
by griffpatch
Sky Island (Original)
by DingoBingo1022
Very Extremely Rich
by thereisalwayshope