Page 1 of 1

3D rotation by mouse

Posted: Mon Jun 02, 2014 1:37 am
by minoru
Even if 3D rotation by mouse,
Camera3D.RotationX and Camera3D.RotationZ does not change.

So, in demo program , even if the rotation by mouse,
the slide bar of roll and pitch does not move.

It was all right in v 5. :roll:

Regards,
Minoru

Re: 3D rotation by mouse

Posted: Mon Jun 02, 2014 11:17 am
by ArctionPasi
Hi Minoru,

You are right, there's a problem in RotationX, the property value doesn't update.

RotationZ doesn't adjust by mouse at all, and didn't do that either in v.5.

We'll fix RotationX property asap. Apologies for the trouble.

Re: 3D rotation by mouse

Posted: Mon Jun 09, 2014 10:15 am
by juergen
Hi,
I have to use RotationX as well. I think the mistake is in "View3DBase.cs" in method "PanOnMouseCoordinates".
At the end it should be:

//Check the valid range
if (dRotX > m_camera.m_dRotationXMaximum)
dRotX = m_camera.m_dRotationXMaximum;
if (dRotX < m_camera.m_dRotationXMinimum)
dRotX = m_camera.m_dRotationXMinimum;
m_camera.RotationX = dRotX; <----

instead of:
m_camera.m_dRotationX= dRotX;

After that it worked...

Best,
Jürgen

Re: 3D rotation by mouse

Posted: Mon Jun 09, 2014 5:04 pm
by ArctionPasi
This is fixed in v.6.0.4 and newer.