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
My Biggest Mouseheadz Ever!!!!! (100+)
by scratch100790
Black Hole Add Round 3
by RayatIsBackAgain
beat up 4 ( number lore)
by Draven1205
Screen Gems S from Hell
by ritafan5284
Numbericons 1-3000 ALL REMIX!!!
by jayden2015paul
Add A Button To Beat Up Android! remix
by OlliePlaysScratch
Windows 12 Mobile
by R4k4V2
bas30, 2
by Davidmillan1234_
Nick Jr Movies Logo (DreamWorks Style)
by NikoT5716
sandbox
by t_i_m_t_i_m
1v1 Arena
by ShihTzuDog
NDB1000ths Band 20
by splashyideas
火影忍者鸣人VS佐助
by yangfangame
Beat Up hamer bro just 1 more botton remix
by muttonsp618
Beat up Pico! (v2.6) REMIX (NEW attack)
by dps19micsch
Robot Constructor【Overpowered】
by DreadfireX
DylanTheLegendz goes crazy
by Wildmonk
falling sand game pen0.7.RTX beta
by dnadta
☁ Mountain A Multiplayer Scrolling Platformer #Trending # Games # Art #all
by GameMasterCoder
Toast
by Bread_Ioaf
3D Saul Goodman(NEW COMMERCIAL OUT)
by Pagnani52
Way Less Sad - HFJONE AMV
by UsObjects
I wanna test the game (scratch edition)
by That_single_user
☁️ Among Us MODv1.0.4 オンライン モッド
by KYMario4