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
Aiden's math lore machine
by GOPLAY_E
Coffin Dance (Synthesia)
by marcotoa
Beat up TROCAMOS DE ELEMENTOS [4]
by newmyles
BFDI RPG: Reborn v0.12
by higuyssprunki
ultimate colourblocks band 4 remix remix
by MightyD58
Goofy's Mod
by Floppaandbingusrcool
add edit and create a new button and relese your anger to beat up retro paper mario remix
by MyCottage
Custom Block Megapack
by Zro716
BEAT LIGHT 2.5D β
by samirin
Retrowave Blvd 3D - A vaporwave night drive 3D car game
by Plokie
safe surf
by mali
Scratch Message Encryption with *Keys*
by magokona
音ゲー〔極ノ壱〕
by norumaku
Minecraft Updated
by catgirlJ123456
Pico’s School - Scratch Edition (W.I.P)
by wiei
FRIDAY NIGHT SCRATCH-IN' || Meek Engine || VERSION 1.0
by J-J-STUDIOS
Beat Up Tora DLC remastered! (V2.0.3.1)
by zzhhooookk
Blue Weeg and WeegNB!
by Hagie_18
Alphabet Lore Factory Animations
by ZooWeeMinecraft-EX
THE FidgetSpinner remix
by dogwvl7
Doki and Peppa News mateothebb Version
by mateothebb
Make your own Object invasion reloaded!
by SiddharthaJupiter
IR Entity Sandbox but more accurate
by AC_School_Account1
Interactive Spanish Alphabet Lore
by pook67