Camera Animation
-
- Halfling
- Posts: 43
- Joined: Fri Jun 20, 2014 7:05 pm
Camera Animation
As my character moves in scene, I use the translation values to move my camera. When character is walk motion it looks good. But, when character is in running motion camera animation looks jerky. What should I do make it smooth? I am using characters' root bone position (absolute position) for translation of my camera.
- dark_sylinc
- OGRE Team Member
- Posts: 5296
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1278
- Contact:
Re: Camera Animation
Most likely the character's root bone position isn't stationary, and moves or rotates back and forth a little during the run animation. And there's your jerkiness.koreos wrote:What should I do make it smooth? I am using characters' root bone position (absolute position) for translation of my camera.
Attaching the camera to a bone is usually a bad idea.
-
- Orc Shaman
- Posts: 788
- Joined: Mon Jan 18, 2010 6:06 pm
- Location: Costa Mesa, California
- x 24
Re: Camera Animation
Like dark_sylinc said - usually a camera is best to attach to something that is moving smoothly - like the object's scenenode.
-
- Halfling
- Posts: 43
- Joined: Fri Jun 20, 2014 7:05 pm
Re: Camera Animation
I don't have anything than root bone for calculating camera transitions (for moving camera). Then, how should I achieve camera animation?
-
- Orc Shaman
- Posts: 788
- Joined: Mon Jan 18, 2010 6:06 pm
- Location: Costa Mesa, California
- x 24
Re: Camera Animation
Attach your character and your camera to the same sceneNode for a start, then move the scenenode to move your character and the camera together.