Game Development Community

Camera position

by Manuel M · in Torque 3D Professional · 04/04/2010 (7:56 pm) · 5 replies

Hello.
I'm trying to position the camera (first person and third person) in differents positions because the camera don't good point to my character. Where or how can I change the camera position for first person and third person?. I see the scripts, but I don't found nothing (I used the bynary version).

Thanks you.

#1
04/04/2010 (8:43 pm)
you can move the eye and camera nodes in the model itself.
I believe the eye node is for 1st person and camera node is where the distance is based from for the 3rd person. I could be wrong but thats my understanding of it
#2
04/05/2010 (6:01 am)
Donald is correct.
The stock player code looks for a few specifically named nodes in the player class: eye, cam and ear

cam and ear are optional and are set to the eye node if they don't exist. You can use your 3d editor to add/edit the nodes or the built in shape editor tool. Eye is usually placed where the eyes would be and the cam in an 'over-the-shoulder' position, although this is not required whatsoever. eye is used for first-person view, cam used for third-person. Ear... I'm not sure on, looks like it may have been a placeholder for later work on the sound system.
#3
04/05/2010 (11:08 am)
Yes, I tried, but this nodes not exist. Also I created the nodes but not work, maybe I did not write names correctly (I writen "camera" for thrid person and "eyes" for first person). I'll try again.

Thanks you very much.
#4
04/05/2010 (11:10 am)
Quote:I writen "camera" for thrid person and "eyes" for first person

The nodes are "cam" and "eye" :P
#5
04/05/2010 (11:53 am)
Ops, yes, the error was the names, now works. Was a stupid error...
Thanks for the help!