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.
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.
#2
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.
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
Thanks you very much.
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
The nodes are "cam" and "eye" :P
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
Thanks for the help!
04/05/2010 (11:53 am)
Ops, yes, the error was the names, now works. Was a stupid error...Thanks for the help!
Torque Owner Donald Teal
Duck's Den Productions Inc
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