←back to thread

Making Minecraft Spherical

(www.bowerbyte.com)
899 points iamwil | 1 comments | | HN request time: 0s | source
Show context
reactordev ◴[] No.45093496[source]
You should definitely have a look at space engineers. They have a similar spherical problem with their voxels and I don’t think they went half as far as you did when implementing “orbital bodies”.

As someone who is rather keen on space, gfx, and the algorithms that render them. Kudos. The problems were known to me, which is why I didn’t attempt it, however - the distortion correction, the chunking, I’m thinking if you just limit how far down you can dig (half way to the “core”) it will be fine. You won’t run into those tiny squished blocks that make up the core.

It’s also important to call out the quad-sphere. This is what makes it doable. Naive devs may just map lat long to sin cos spherical coordinates and call it a day, not realizing that their poles are jacked up. The cartography problem. I’m really glad to see that called out as people don’t realize WGS84 sucks for mapping a sphere.

replies(6): >>45093544 #>>45095325 #>>45096426 #>>45097275 #>>45100369 #>>45101586 #
lsaferite ◴[] No.45093544[source]
Not allowing excavation to the core solves weird gravity issue as well. Astroneer had super weird gravity at their planet core. You can get stuck oscillating there.
replies(4): >>45093570 #>>45093591 #>>45097449 #>>45127679 #
reactordev ◴[] No.45093570[source]
If you really wanted to go for realism, there would be NO GRAVITY at the core. :P

As you dig down you would get lighter and lighter on your feet.

Any mass you are below (within the sphere of Earth) will exert a gravitational pull in one direction, while the mass above you (also within the Earth) will exert an equal and opposite pull.

replies(6): >>45093671 #>>45093684 #>>45097858 #>>45099794 #>>45100610 #>>45110039 #
hdjrudni ◴[] No.45099794[source]
If earth was just full of water.... as you swam deeper and deeper there would be more and more pressure upon you. Would there be a point where that pressure would start to lessen as the water is pulled in all directions?
replies(2): >>45099923 #>>45100095 #
chii ◴[] No.45099923[source]
> pressure would start to lessen as the water is pulled in all directions?

the pressure would never lessen, just increase slower.

The gravity at the center is zero, but the mass above you is not exerting just gravity force (which gets cancelled out by the opposite side), but also pressure (from the weight of it falling down).

This means the water pressure would steadily climb, but at a slower rate as you move nearer to the center, and will be at maximum at the very center.

replies(1): >>45103695 #
1. reactordev ◴[] No.45103695{3}[source]
Correct. Gravity would be net zero but the pressure would be the entire worlds oceans.