Player/Camera Issue
by Jacob Williams · in Torque Game Engine · 01/10/2009 (10:18 pm) · 1 replies
I am having a bit of a strange issue and though some of you might be able to help. Let me preface this problem by saying that I am using the OrbitView Mode from the Advanced Camera Resource. When I force the game to start in 3rd person (via C++ or TorqueScript) the player model is invisible.

However, if I toggle first person mode on and off again, the player model appears just fine.

I don't believe the problem is with the model because I have used both the model above as well as the Kork model. I am looking for either a fix to the problem, or a way to schedule 3rd person mode once the player and camera objects are created.
Thanks!

However, if I toggle first person mode on and off again, the player model appears just fine.

I don't believe the problem is with the model because I have used both the model above as well as the Kork model. I am looking for either a fix to the problem, or a way to schedule 3rd person mode once the player and camera objects are created.
Thanks!
Torque 3D Owner Tom Bampton
Fixing the "advanced" camera means pretty much rewriting it in it's entirity. Your best bet is to use something like the tracking camera resource as a base to write a new camera that does what you need. If you are wonky with 3D math, you can gank the math from the advanced camera ... but only the math, ignore the code completely.
This is not a problem you can work around. It will manifest in may subtle ways that are hard to figure out unless you know what to look for. It shouldn't take more than a day, probably more like a couple of hours, to fix the camera properly. Even if it takes you a week that is time very well spent and will save you a lot of pain later down the road.
T.