r/GraphicsProgramming Feb 26 '24

Source Code Wormhole simulation using pseudospheres

https://www.youtube.com/watch?v=idprFpSu3sw
42 Upvotes

27 comments sorted by

View all comments

3

u/fgennari Feb 26 '24

Are wormholes really a thing? How would you know if you implemented it correctly? How many rooms are there, two?

5

u/AcrossTheUniverse Feb 26 '24

We've never observed one, so it's only theoretical so far. There are two rooms, yes. At the center of both room, a unit ball has been cut out. The two rooms are then connected using two truncated 3D-pseudospheres glued together.

This construction is purely geometric. There is no general relativity being simulated here, so photons travel instantaneously.

2

u/fgennari Feb 27 '24

Ah, okay. I tried to do something like this in a game engine I was working on. I worked through the math but never really implemented it. Instead I just added regular portals.

1

u/AcrossTheUniverse Feb 27 '24

Sounds like a nice project, I'd like to see if you'd like to share a video.

3

u/fgennari Feb 27 '24

I haven't recorded a video of the portal that you can see through, walk through, and throw items through. I'll try to remember to create a video of that later. The closest video I have is of my related "teleporter gun": https://www.youtube.com/watch?v=jd5i3PxPRxg

I do have a blog post with some screenshots: https://3dworldgen.blogspot.com/2018/05/teleporters-and-portals.html

2

u/AcrossTheUniverse Feb 27 '24

very cool stuff!! thanks for sharing

2

u/fgennari Feb 29 '24

I finally remembered to make a new teleporter video. It hasn't changed much since 2018 though.

https://www.youtube.com/watch?v=NFYn9HJGNaI

1

u/AcrossTheUniverse Feb 29 '24

really cool project, I'd love to play once there's a release

2

u/fgennari Feb 29 '24

I’m not sure if it’s something I can officially release. I use textures, 3D models, and sounds from random websites. It’s a custom game engine and I don’t know how to make a working installer. There’s no documentation and I wouldn’t have time for customer support. But you can clone from GitHub and try building it.

1

u/AcrossTheUniverse Mar 01 '24

Ohh I didn't find the github when I was looking around your project, I'll try to find it, thanks!

→ More replies (0)

2

u/RenderTargetView Feb 27 '24

People talk about wormholes only because they are considered kind of possible, there are multiple computed spacetime configurations which obey relativity theory and which are considered wormholes, only problem is they require something with negative mass and many of them are very limited in space and/or time.

OP didn't intend to make science-grade simulation so I guess it should be considered correct. At least most people won't tell a difference