3D rotation by mouse

Post your questions related to updating from LightningChart Ultimate v.5 to v.6 here

Moderator: Queue Moderators

Post Reply
minoru
Posts: 27
Joined: Thu Sep 26, 2013 1:30 am

3D rotation by mouse

Post by minoru » Mon Jun 02, 2014 1:37 am

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

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: 3D rotation by mouse

Post by ArctionPasi » Mon Jun 02, 2014 11:17 am

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.
LightningChart Support Team, PT

juergen
Posts: 27
Joined: Tue Feb 04, 2014 8:11 am

Re: 3D rotation by mouse

Post by juergen » Mon Jun 09, 2014 10:15 am

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

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: 3D rotation by mouse

Post by ArctionPasi » Mon Jun 09, 2014 5:04 pm

This is fixed in v.6.0.4 and newer.
LightningChart Support Team, PT

Post Reply