How to create an even sphere with triangles in OpenGL?
opengl
Solution
Start with a unit icosahedron. Then apply muliple homogenous subdivisions of the triangles, normalizing the resulting vertices distance to the origin.
Problem
Is there a formula that generates a set of coordinates of triangles whose vertices are located on a sphere? I am probably looking for something that does something similar to `gluSphere`. Yet, I need to color the different triangles in specfic colors so that it seems I can't use `gluSphere`. Also: I do understand that `gluSphere` draws edges along lines with equal longitudes and lattitudes which entails the triangles being small at the poles compared to their size at the equator. Now, if such a formula would generate the triangles such that their difference in size is minimized, that would be great.