Page 1 of 1

Camera.Rotation issue

Posted: Mon Jan 23, 2017 12:32 pm
by lukoprovandrey
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 10233 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 10233 times
In my opinion it is improperly:

Do you know what happend?

Re: Camera.Rotation issue

Posted: Mon Jan 23, 2017 3:49 pm
by ArctionPasi
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.

Re: Camera.Rotation issue

Posted: Mon Jan 23, 2017 6:32 pm
by lukoprovandrey
Got it, thanks. :)