Game Development Community

Default camera position setting or simple script?

by Nick Wagner · in Torque Game Engine · 01/19/2007 (9:27 am) · 5 replies

Hey guys.
Is there a simple way to adjust the default 3rd person camera distance from the player?
Nothing serious...I'd just like to be able to have my whole character on the screen instead of just head and shoulders.
I've attached a picture of what specificlly i'm looking for.

*edit - www.nickwagner.com/hosted/exampleCamera.jpg

SOLUTION!!!!! using "starter.fps" browse to your "server/scripts/player.cs" and scroll down till you see "cameraMaxDist = 3" <--- change that to something like 7. Now you can hit TAB when in game and the camera is further away from your player.

#1
01/19/2007 (9:37 am)
Implement the Advanced Camera resource and look through the available changes to set up exactly how you want your camera.
#2
01/19/2007 (10:00 am)
Are you referring to Thomas "Man of Ice"'s resource?
I've tried briefly to implement it with stock TGE 1.5 but the 1.5 code is diffrent than what his walkthrough describes.
(some of the changes he says to make have already been implemented)
Also in the walkthrough when you add in the advanced camera.cc and .h files to your project do you also need to "#include game/advancedCamera.h" somewhere? I didn't see him do that anywhere in the walkthrough.

Although for the moment if possible i'd really like a simple "hey stupid.. there's a camera minimum distance variable over in X .cs file" or something like that.
#3
01/19/2007 (10:31 am)
You can set how far away the camera is in 3d studio max and i assume any other 3d app that exports to torque.
In 3d max you have nodes called "eye" and "cam"
eye is the position of the first person camera
cam is the position of the 3rd person camera

I can move where these are simply by moving the nodes in 3dmax b4 export.

For example, when i was exporting a character i moved cam to the side of the vehicle, pointing at the wheels as i wasnt sure they were spinning properly.

If this isnt a suitable solution, or you have tried it already .. I'm sorry
#4
01/19/2007 (12:23 pm)
*edit - Holy triple posts batman!

Ok. Thanks guys. That'll give me a pretty low tech solution.
I'm trying to focus my efforts into taking things one at a time and learning the foundations of torque before i jump right in and make an MMORPG. ( just kidding )
#5
01/28/2007 (3:28 pm)
If you like weirdness, try "cameraMaxDist = 0" and then look down at your insides!