Game Development Community

Camera follow Player into slight shaking

by Tom Giant · in Torque 3D Professional · 03/16/2011 (5:26 am) · 4 replies

I have an own Player. He will be up and down as breathing. So my lens would shake when I used "First Person Camera" and "Third Person Camera".
But it was strange that I found the default player "gideon" wouldn't cause the lens wobble in the case of "First Person Camera" and I found the shadow of gideon's head didn't shake, although his body was slightly shaking.

I also want to get that effect, but don't know how to do.
Does any body know that? Thanks for any help in advance.

#1
03/22/2011 (12:26 am)
Do you mean you want the camera to move up and down as the player breaths and runs?

If so, you are correct, the Gideon model doesn't do this by default.

What you have to do is attach the eye node to the models "head" bone, and if the "head" moves the eye node will also move.

If you want the 3rd person camera to do the same thing you need to attach the cam node to the "head".

You can do this to the gideon model in the T3D shape editor.

If you use 3DS Max for your modelling you can look in the Graph Editor menu for New Schematic View and attach the nodes in there.

#2
03/23/2011 (3:10 am)
Thanks for your reply very much. I didn't mean I wanted the camera to move up and down as the player breaths, but camera should follow the action when runing and jumping. Sorry for my not clear stating.

On the contrary, I wanted to avoid camera slight shaking.
Now I got it. The key to my question is whether the "eye node" is attached to the "head" bone with the up and down animation. Am I right?
#3
03/27/2011 (5:55 am)
Yes you are right.
If you don't want the 1st person camera to move up and down you need to detach the eye node from the bones in the model.
#4
03/27/2011 (6:06 pm)
Got it. Thanks.