thanks. Its ray marching in curved space. So, with each step, the basis vectors are updated according to the "metric tensor". There are optimisations to get high accuracy in real time, with many wormholes and changing curvature controlled by sliders. There is information online.
Is the idea that instead of a ray (and it's reflections) following a straight line in Euclidean space, it instead follows a geodesic w.r.t the metric and the draw call is on whichever pixel this geodesic happens to be projected to in screen space?
Yes thats the idea! The start of the geodesic direction is caculated based on location in curved space and the rotation of camera etc. Then geodesic is traced outward. Then there are some tricks to speed it up and get better numerical precision.
Can you make it a game or put it in a game or something? Seems like a fairly novel idea, I think my son would like it if it was in a game or something.
7
u/SyntheticDuckFlavour Aug 19 '26
Looks pretty cool. Is there a write-up on the technique?
2
u/sunapi386 Aug 22 '26
Super neat. Will there be github?
1
u/Harha Aug 19 '26 edited Aug 19 '26
What if you make the wormhole long, go inside the tunnel and try to go sideways towards the "wall"?
edit: I guess that doesn't make sense? There is no "wall"...
1
u/RockosModernBasiIisk Aug 20 '26
Can you make it a game or put it in a game or something? Seems like a fairly novel idea, I think my son would like it if it was in a game or something.
1
u/Liquid_Audio Aug 22 '26
Is it live somewhere?
1
u/Gregrox Aug 24 '26
would I be able to put my own custom skyboxes/sky-equirectangular-maps in? That would be really useful for me.
3
u/Rhed0x Aug 19 '26
Very cool shader but I feel like I'm getting a headache from watching you go through it.
3
u/CreativeChris1 Aug 19 '26
What the f, this melted my mind. Wild. So cool
2
u/Finniebelle Aug 20 '26
This looks super amazing 😍 great work!
2
u/billydecay Aug 20 '26
I didn't see any worms :(
2
u/3BlackFeathers Aug 25 '26
Looks amazing!
2
u/Sorry-Poem7786 Sep 06 '26
when you were a quantum spirit trying to figure out what planet and person to enter reality this is what it was like..
1
u/yolcogot Aug 20 '26
Supervbro
1
u/ms_dizzy Aug 23 '26
have you ever played split gate?
It's like this game.. no rail guns needed.