Camera.Rotation issue

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
lukoprovandrey
Posts: 29
Joined: Fri Sep 04, 2015 2:30 pm

Camera.Rotation issue

Post by lukoprovandrey » Mon Jan 23, 2017 12:32 pm

Hello guys,

I configure a 3d view camera like this:

Code: Select all

 
chart.View3D.Camera.RotationX = 90;
chart.View3D.Camera.RotationY = 0;
chart.View3D.Camera.RotationZ = 0;
But chart show the next:
http://prntscr.com/dz8a05
Screenshot_8.png
Screenshot_8.png (67.68 KiB) Viewed 10019 times
for normal displaying i should do the next:

Code: Select all

 
chart.View3D.Camera.RotationX = 89.99999;
chart.View3D.Camera.RotationY = 0;
chart.View3D.Camera.RotationZ = 0;
Looks like this:
http://prntscr.com/dz89mm
Screenshot_9.png
Screenshot_9.png (225.28 KiB) Viewed 10019 times
In my opinion it is improperly:

Do you know what happend?

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

Re: Camera.Rotation issue

Post by ArctionPasi » Mon Jan 23, 2017 3:49 pm

There's some specific combination of X, Y, Z rotation angles that are impossible for trigonometric functions. :| This is one them, and there's currently no way we can fix it. You've found already a workaround, so I suggest using that.
LightningChart Support Team, PT

lukoprovandrey
Posts: 29
Joined: Fri Sep 04, 2015 2:30 pm

Re: Camera.Rotation issue

Post by lukoprovandrey » Mon Jan 23, 2017 6:32 pm

Got it, thanks. :)

Post Reply