Camera Manipulation in racing mod?
by Kirby Webber · in Torque Game Engine · 11/24/2002 (8:37 pm) · 7 replies
I have a question regarding the difference between 1st and 3rd person modes. I have been playing around and can't seem to get the vehicle (custom model) to NOT render when in first person. (Racing mod)
I have checked the scripts thoroughly, and judging by the standard player script(fps~player.cs), the line should be renderFirstPerson = false;
The problem is, that when I add this command to my script, it makes no difference what-so-ever.
If anyone has any idea of what might fix this I'd really appreciate the advice.
I have checked the scripts thoroughly, and judging by the standard player script(fps~player.cs), the line should be renderFirstPerson = false;
The problem is, that when I add this command to my script, it makes no difference what-so-ever.
If anyone has any idea of what might fix this I'd really appreciate the advice.
#2
player.cs posseses the renderFirstPerson line, however car.cs in the racing directory does not. In both cases, the first and third person cameras work identically, the only difference being that the player doesn't render in first person, but the car does!
11/25/2002 (6:27 am)
David... are you sure?player.cs posseses the renderFirstPerson line, however car.cs in the racing directory does not. In both cases, the first and third person cameras work identically, the only difference being that the player doesn't render in first person, but the car does!
#3
You'd probably need to change that in source, do you have the SDK?
11/25/2002 (7:04 am)
There's probably extra functionality in player.cc that wheeledVehicle or vehicle.cc doesn't have.You'd probably need to change that in source, do you have the SDK?
#4
I'll look into the source when I get home and see what I can find out.
11/25/2002 (7:22 am)
Anthony... yes I do have the sdk. I was just hoping there was a line of script I may be missing. It's never the easy fixes with me! LOLI'll look into the source when I get home and see what I can find out.
#5
Are you certain that the player isnt rendered when you use the toggle? My assumption has always been that the cam and eye nodes (in the shapes export) told the engine where to place the camera...and since these nodes are infront of the player, you wouldnt see the shape.
I could be wrong, but every little thing helps,
~Myk
11/25/2002 (8:37 am)
Kirby,Are you certain that the player isnt rendered when you use the toggle? My assumption has always been that the cam and eye nodes (in the shapes export) told the engine where to place the camera...and since these nodes are infront of the player, you wouldnt see the shape.
I could be wrong, but every little thing helps,
~Myk
#6
I was going off of the assumption that it was set up like Tribes2. In T2, there is a variable you can set to turn it on or off. When it's on, you can actually look down at the players feet. I had assumed it would be the same since the stock player is a warped T2 model, but I could be wrong.
I would say though, that it is the same, the reason being, that wehn you pick up a weapon, it renders but the player does not. This evidenced when you look down and the rotation of the weapon reveals "more than it should" (also ala T2) but the players arms do not show.
I could be wrong, but then I'll know more when I look at the source.
...unless of course, someone has allready encountered this??
11/25/2002 (9:13 am)
Hmmm.... Well, I am not 100% shure now that you mention it.I was going off of the assumption that it was set up like Tribes2. In T2, there is a variable you can set to turn it on or off. When it's on, you can actually look down at the players feet. I had assumed it would be the same since the stock player is a warped T2 model, but I could be wrong.
I would say though, that it is the same, the reason being, that wehn you pick up a weapon, it renders but the player does not. This evidenced when you look down and the rotation of the weapon reveals "more than it should" (also ala T2) but the players arms do not show.
I could be wrong, but then I'll know more when I look at the source.
...unless of course, someone has allready encountered this??
#7
renderFirstPerson, when TRUE tells the game to render your own model, so you see your legs when you look down and what not.
I would have to look at the vehicle code, but am pretty sure that it would have to be added to remove the vehicle rendering.
That or add a way to move the camera to different nodes based on a key press. Like adding a bumper cam or what not.
11/26/2002 (3:48 pm)
the player object supports "renderFirstPerson" which when false, tells the game to NOT RENDER the player model when in first person, very much like all the Quake dervied games work.renderFirstPerson, when TRUE tells the game to render your own model, so you see your legs when you look down and what not.
I would have to look at the vehicle code, but am pretty sure that it would have to be added to remove the vehicle rendering.
That or add a way to move the camera to different nodes based on a key press. Like adding a bumper cam or what not.
Torque Owner David Massey
TimeSync Interactive