Maya for 3D Printing - Rapid Prototyping
In this course we're going to look at something a little different, creating technically accurate 3D printed parts.
# 1 17-01-2012 , 01:02 AM
Subscriber
Join Date: Oct 2011
Posts: 139

How to change direction of camera rotation?

I set a camera in middle of the room and have it go around... so let's say it starts on angle 0 on fr1 and goes to 359 on fr200. But when I set the keyframes the camera will always rotate to the right, so it moves 1 degree instead of doing the full turn. I thought it picks the shortest route to the keframe, so I set a keyframe on fr100 past the middle point, but doesn't help either...

# 2 17-01-2012 , 01:07 AM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
What does the curve look like in the graph editor? Select your camera, open the graph editor and check your RotateY or whichever channel it is. You can modify the values and tangents in the editor too.

# 3 17-01-2012 , 01:16 AM
Subscriber
Join Date: Oct 2011
Posts: 139
It looks normal, a line with two keyframes..
user added image

EDIT: the annoying thing is that in new scene it works perfectly.. just here it's messed up


Last edited by nov2011; 17-01-2012 at 01:19 AM.
# 4 17-01-2012 , 01:18 AM
EduSciVis-er
Join Date: Dec 2005
Location: Toronto
Posts: 3,374
Okay, so that's going to rotate from -40 to -80 degrees... is that what you want??

# 5 17-01-2012 , 01:21 AM
Subscriber
Join Date: Oct 2011
Posts: 139
yes and no... I want it to rotate 'the long way around' but once it gets to 270 degrees it resets and continues the count starting ant -90... hope you understand what I'm saying.


Now it moves 40 degrees or so.. i want it to move 320...


The camera rotates in a way that the degree is calculated like this:

-80 ...0 ... 270 ...-90 ...0

If I have the camera tilted down - just a bit.. and the angle doesn't change, then the rotation looks like this:
-80..0...90 (now it count down) ..80...0 -90 ..(count down again) -80 -70 etc... wth

EDIT: it has definitely something to do with the tilt.. if I rebuild the camera looking straight, then the degrees go 0 to 360, as expected; but when I have an X tilt on the camera the degrees got all messed up..

EDIT: To recreate what I'm talking about:
Open new scene, create camera, in rotate settings select rotate mode: world, angle it down a bit (rotate x.. e.g. -20) then rotate it around and see the rotate Y numbers in the channel box go crazy.


Last edited by nov2011; 17-01-2012 at 01:55 AM.
# 6 17-01-2012 , 02:50 AM
Subscriber
Join Date: Oct 2011
Posts: 139
after hours and hours of trying I found the solution in case somebody runs in the same problem:

Screw World Rotate Mode - it doesn't work if the camera's angled - use Gimbal instead

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads