Original Post
Hi.
I need some HELP!
I’m trying to make a sphere class (for generating spheres) but I can’t get the vertexes in the right places. The closest thing I have been able to produce is some kind of distorted cylinder ting.
Is there some kind person out there that can help me with this? (Please ^_^)
I have the radius and the number of segments (horizontally and vertically) and I want to calculate all the vertexes and store them in an array.
I would also like to have them in some kind of order, more exactly one plane at the time (all vertexes with the same y value) starting from the top and going downwards, or bottom to top.
So if there are 16 horizontal segments then the first 16 indexes in the array would be the top or bottom and the next 16 would be the second layer and the next 16 the third and so on.
If it’s not too much to ask for I would like not only a formula or some kind of source (preferably in c) but also an explanation so that I can figure out what I have been doing wrong.
(I hope I posted this in the right forum
)