←back to thread

Making Minecraft Spherical

(www.bowerbyte.com)
899 points iamwil | 1 comments | | HN request time: 0.203s | source
1. exDM69 ◴[] No.45092795[source]
The article doesn't describe the way to avoid the difference in rectangle size in a cubesphere, so let me.

The bad way: - Generate a cube - Subdivide each face using linear interpolation (lerp) - Normalize each vector to put it on a unit sphere

The good way: - Generate a cube - Subdivide using spherical linear interpolation (slerp) - done!

The cubesphere has lots of interesting geometric properties, particularly in texture mapping.