Rotate the camera
#2
I do not understand why you are not using any camera from Ab3d.PowerToys - here all the cameras have Heading, Attitude and Bank properties. You can bind sliders directly to the properties.

Anyway, one of the problems with your code is that you have only one rotation assigned to Camera object - either is this x, y or z rotation - but always only one. This could be fixed by creating a TransformGroup and adding all transformations to that group.

But this would not solve your problem - rotating is 3D is difficult: if you first rotate by 90 degress on x axis and than by 30 degrees on y axis you will get different result that if you first rotate by 30 degrees on y and than by 90 degrees on x axis. The math I use is quite complex and I do not want to disclose it here - just use the cameras from Ab3d.PowerToys and you will have the solution.
Andrej Benedik
  


Messages In This Thread
Rotate the camera - by mibe - 01-16-2014, 03:50 PM
RE: Rotate the camera - by abenedik - 01-22-2014, 03:21 PM
RE: Rotate the camera - by mibe - 02-06-2014, 11:47 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)