dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
756 stars 299 forks source link

Arcball update #72

Closed DavidHnilica closed 5 years ago

DavidHnilica commented 9 years ago

changed arcball behavior:

-screen coordinates adjustment changed -added changeable radius of the virtual sphere (normally circle inscribed in rectangular screen is taken as ball). This allows (IMO) easier rolling. -sphere mapping changed according to the following article : https://www.opengl.org/wiki/Object_Mouse_Trackball

(sphere when pointer is inside circle, hyperboloid otherwise)

MichelLaplane commented 5 years ago

Lets try it thanks Dave and David

GianlucaGrotto commented 4 years ago

Hi David, I'm using your ArcBall class in openGLControl and not in SheneControl. My project is a 3D CAD. I would like to extrate the rotation angles x,y, z, after ArcBall rotation, so that I can save the Views. Do you have any idea of how to do that?

I image I have to use the ModelView matrix gl.GetDouble(OpenGL.GL_MODELVIEW_MATRIX, mv);

Is there any utility function or method to get these values? Or do you have any document tio help me in this?

Thank you very much.