ThirdPerson Camera in TGEA 1.7
by Kyle Pickering · in Torque Game Engine Advanced · 10/19/2008 (10:10 pm) · 1 replies
Hey everyone, i'm trying to get a camera setup going that is third person with a crosshair, and ultimately the camera is focused on the crosshair and not the player. I found a resource doing exactly what I want, however, it seems severly out of date, and give me many errors when I compile it.
The resource i'm trying to replicate is here:
http://www.garagegames.com/mg/forums/result.thread.php?qt=67176
the files are in engine/source/T3D/, since there is no /game file.
The first steps involving ProcessList::advanceClientTime() I cannot do, because I don't have those sections in my GameProcess.cpp file (everything has been changed to ClientProcessList:: and such). Any Ideas on that?
When Compiling (without the first steps), I get the following problems:
In In shapeImage.cc ShapeBase::getCorrectedAim(), i'm getting the probem
shapeImage.cpp(1216) : error C2440: 'initializing' : cannot convert from 'GameBase *' to 'ShapeBase *'
1> Cast from base to derived requires dynamic_cast or static_cast
as well as
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2653: 'GameCameraData' : is not a class or namespace name
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2270: 'getClassRep' : modifiers not allowed on nonmember functions
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2653: 'GameCameraData' : is not a class or namespace name
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2065: 'dynClassRep' : undeclared identifier
there are a few more but they are repeats.
Anyone got any ideas? and as far as looking at resources from a while back, i know that the engine/game file has been changed, what other changes have been made? I'm probably getting errors because it is old code, but i can't identify old code from new. any bones to be thrown from out there?
The resource i'm trying to replicate is here:
http://www.garagegames.com/mg/forums/result.thread.php?qt=67176
the files are in engine/source/T3D/, since there is no /game file.
The first steps involving ProcessList::advanceClientTime() I cannot do, because I don't have those sections in my GameProcess.cpp file (everything has been changed to ClientProcessList:: and such). Any Ideas on that?
When Compiling (without the first steps), I get the following problems:
In In shapeImage.cc ShapeBase::getCorrectedAim(), i'm getting the probem
shapeImage.cpp(1216) : error C2440: 'initializing' : cannot convert from 'GameBase *' to 'ShapeBase *'
1> Cast from base to derived requires dynamic_cast or static_cast
as well as
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2653: 'GameCameraData' : is not a class or namespace name
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2270: 'getClassRep' : modifiers not allowed on nonmember functions
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2653: 'GameCameraData' : is not a class or namespace name
1>..\..\..\..\..\engine\source\T3D\gameCamera.cc(31) : error C2065: 'dynClassRep' : undeclared identifier
there are a few more but they are repeats.
Anyone got any ideas? and as far as looking at resources from a while back, i know that the engine/game file has been changed, what other changes have been made? I'm probably getting errors because it is old code, but i can't identify old code from new. any bones to be thrown from out there?
About the author
Torque 3D Owner Kyle Pickering
maybe i should ask how gears of torque did it?