Hi,
I’m new to Opengl. Now I have a problem. I dont know how to draw an ellipsoid with arbitrary axes. Now I know three vectors indicating three directions of the axes of the ellipsoid. I also know the lengths of each axes and the center of the ellipsoid. How can I draw such an ellipsoid?
Thank you very much!

I think I can draw a sphere first. Then translate, rotate and scale it to an ellipsoid. But I don’t know how to rotate three axes of the current coordinate to arbitrary three orthogonal axes.
Can anyone help me?
Thanks a lot!

I think you need to lookup matrix transformations. If it’s an orthogonal matrix, the
columns or rows of matrix should contain the x,y,z axis system. You can use this bit of
info to create a specific local to world matrix transformation.

Then after getting your matrix, it’s a matter of multiplying every vertex by it.