←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 #
1. maxnoe ◴[] No.45100369[source]
> WGS84 sucks for mapping a sphere.

WGS84 is not a map projection, it's a geodetic reference frame prescribing a reference ellipsoid and reference positions of ground stations.

https://en.m.wikipedia.org/wiki/World_Geodetic_System#WGS84