Algorithm for creating spheres?
- by Dan the Man
Does anyone have an algorithm for creating a sphere proceduraly with la amount of latitude lines, lo amount of longitude lines, and a radius of r? I need it to work with Unity, so the vertex positions need to be defined and then, the triangles defined via indexes (more info).
EDIT
I managed to get the code working in unity. But I think I…