Monday, June 8, 2015

3d - How to make minecraft like world round?


I'm interested is there a game or at least example which shows how minecraft-like world turn to sphere?


Idea is that there is sphere which consists from cubes like in minecraft but they are on the surface of it. This have to make that player can go around the world.



Math? Code? Examples?



Answer



You can't represent a sphere by cubes in a nice way. There is always going to be a distortion.


The 'best'/easiest way would probably be a cubemap approach. Check out this page for an interesting discussion about it. The image about halfway down of a cube and sphere shows the distortion of the squares. It is quite large.


If you are not constrained to cubes, then this question recieved a lot of useful information regarding spherical representatons. Triangles or hexagons are a slightly better fit than cubes.


No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...