|
|
Camera Rotation Weirdness
About Truespace Archives
These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.
They are retained here for archive purposes only.
Camera Rotation Weirdness // New Users
Post by johnhoward // Mar 30, 2008, 2:20pm
|
johnhoward
Total Posts: 231
|
To simplify the problem:
I have a track with a red vehicle racing around it and a camera centered above the track and angled down to watch the vehicle.
I want to rotate the camera to follow the vehicle and photo it after exactly a certain number of degrees around the track, for instance every 60 degrees.
I find this is impossible. I can get the camera to rotate by using the rotate object tool, but the numbers change in all three x,y,z columns in the info box. If I take a top view and guess at 60 degrees, the numbers make no sense at all.
I am starting with camera rotation of -120 , 0 , 0. Apparently, I need some complex math formula to derive the three info settings for exactly 60 degrees of rotation around the world vertical axis. I have tried to use both world and object coord systems, but a change in the z number alone always produces camera tilt (as if the camera is stuck in object coord system) instead of rotation around the world vertical axis.
Any clues to solving this would be greatly appreciated. Thanks |
Post by trueBlue // Mar 30, 2008, 2:30pm
|
trueBlue
Total Posts: 1761
|
Have you tried the LookAt tool? |
Post by johnhoward // Mar 30, 2008, 2:43pm
|
johnhoward
Total Posts: 231
|
The look at tool does not appear to work when viewing through a camera.
I see the idea though - move the vehical 60 degrees around the track and then use look-at to move the camera.
In the actual problem, though, there is no little vehical or track - I just used that to make clear how I want to control the camera: angled down and rotating around the world z axis by certain degrees. |
Post by johnhoward // Mar 30, 2008, 3:04pm
|
johnhoward
Total Posts: 231
|
I solved it.
I created a (blue) cube and encapsulated it with the camera. Now the info box numbers make sense and I can simply set the degree of rotation in the Z axis. The info box ignores the downward tilt of the camera and treats the pair of objects as if they are level so x and y do not change as as they rotate. |
Post by trueBlue // Mar 30, 2008, 3:06pm
|
trueBlue
Total Posts: 1761
|
I do not have a problem viewing from a camera that is constrained to an object. What you could do is select the camera then the LookAt tool and then select your red object. Make the red object invisible. Select camera and the View fom Camera tool.
Edit: Or what you did. Good solution.
P.S. I updated the Camera Viewer.
http://forums1.caligari.com/truespace/showthread.php?t=3494 |
Post by Jack Edwards // Mar 30, 2008, 8:11pm
|
Jack Edwards
Total Posts: 4062
|
I agree. Nice solution John! :) |
Post by johnhoward // Mar 31, 2008, 4:46am
|
johnhoward
Total Posts: 231
|
Thanks, TrueBlue and Jack.
The new camera viewer is really great. I love the "Create camera at current view". Thanks again for inventing this, TrueBlue. I am using it all the time.
BTW, could you invent a little button that does away with the bridge and moves all the model side functions and buttons to the workspace side. You could call it the 7.6 button. Just a thought. |
|