Anim8or Community

General Category => General Anim8or Forum => Topic started by: johnar on January 31, 2015, 03:27:50 am

Title: Camera orientation in scene mode
Post by: johnar on January 31, 2015, 03:27:50 am
Rather than go into a long winded spiel about whats going on, it would probably be easier to just ask this question.
 Scene mode. The camera is set to 'facing other', and the other,(figure), moves around the scene, with camera following.
 The orientation of the camera changes hugely during this part of the scene, but the cameras orientation values remain the same.
0.000, -0.000 and -0.000?

 Shouldn't the values be showing the orientation of the camera.?
Title: Re: Camera orientation in scene mode
Post by: ENSONIQ5 on January 31, 2015, 04:53:38 am
Not if the orientation is relative to the object it's facing, then its orientation isn't really changing at all.  It's like if you set an object as the child of another.  If you move the parent the child moves too, but the child object's position values remain unchanged as they are relative to the parent.
Title: Re: Camera orientation in scene mode
Post by: johnar on January 31, 2015, 07:18:01 am
Ok. i see that now. Thanks for the reply.
 But..... although the orientation isn't really changing relative to the object it is facing, it is changing as far as world co-ordinates go.
  As it is now then, as soon as the camera is made a 'child' to an object, then there is no way to access the world orientation of the camera ?.
 Makes it near impossible to do a seamless camera swap, in some cases anyway, not knowing the exact orientation of the camera(s)
 hmmm, oh well, back to the drawing board.... :-\ (http://s6.postimg.org/p4cqdev8d/grysmile.gif)
Title: Re: Camera orientation in scene mode
Post by: ENSONIQ5 on January 31, 2015, 07:43:10 am
Yeah, that's a problem.  Even a script just returns an orientation of 0,0,0.  While it would be possible to script the motion of the second camera, determining the orientation of the first camera mathematically based on its location in 3D space relative to the location of the object it's pointing at, that might be over complicating things.  Not sure of your requirements but one possible solution might be to use camera targets, each camera pointing to a different target.  In the frame where the cameras switch, if both targets are in the same location, and both cameras are in the same location, for that frame both cameras should show the exact same scene (so long as they are of the same type etc.)
Title: Re: Camera orientation in scene mode
Post by: johnar on January 31, 2015, 07:57:17 am
Quote
...but one possible solution might be to use camera targets...
Nice one ENSONIQ5 That'll probly do it. (http://s6.postimg.org/4y98eizkt/grywink.gif)

 Funny thing, i started off with 1 target at the beginning.....thanks for putting me back on track there.... TWO targets, same place, and with both cameras  in identical positions, the targets will take care of the cameras orientations....sounds like it'll work
 Cool....cheers for that...(http://s6.postimg.org/p4cqdev8d/grysmile.gif)
Title: Re: Camera orientation in scene mode
Post by: ENSONIQ5 on January 31, 2015, 09:19:58 am
No probs, hope it works! Cheers. :)