PDA

View Full Version : shpere to elipse



matt
11-29-2001, 03:27 AM
i would like to create an 3d eliptical sphere. how do i go about it?

T2k
11-29-2001, 05:23 AM
1. you know how to create a simple sphere ? yes => ok else search this board ...
2. you know how you multiply a vertex with a matrix (not over opengl) => yes go to next step, else try to find out how it would be done
3. scale your matrix axis as long as the elipse should be in x,y,z ( length of 1 is orginal size, 0.5 half, 2 double and so on)
4. multiply each vertex of the sphere with the matrix of 3.
5 done ... and its precalculated ...

matt
11-29-2001, 05:55 AM
thanks ill give that a go my good man.