Advanced Camera
by Timothy Castagna · in Torque Game Engine Advanced · 07/18/2008 (12:08 pm) · 33 replies
So i'm trying to get the advanced camera resource added into tgea 1.03 and it uses the include for the dgl which as far as i can tell no longer is there. can someone help me out and point me in the right direction as to where this went.
#include "dgl/dgl.h"
thanks in advanced.
#include "dgl/dgl.h"
thanks in advanced.
About the author
#22
08/01/2008 (7:13 am)
Ok, i'll keep you posted.
#23
08/01/2008 (10:58 am)
Any idea why i always start in first person..im using AFX TGEA 1.7 if that helps
#24
08/03/2008 (1:55 am)
Add in game.cs :function GameConnection::onClientEnterGame(%this)
{
....
// Create a new camera object.
...
// create advanced camera
%this.advCamera = new AdvancedCamera() {
dataBlock = AdvCameraData;
};
MissionCleanup.add(%this.advCamera);
%this.advCamera.scopeToClient(%this);
toggleFirstPerson(1); // switch on enter game
...}
#25
08/04/2008 (11:10 am)
That didnt work either, is toggleFirstPerson a command that you have set up in script?
#26
I've been tracing down this problem all day today, yet I got nowhere.
If anyone got this working - any help would be very much appreciated!
@Timothy: Maybe Picasso meant toggleFirstPersonPOV(1); - check out your default.bind.cs, this is bound to TAB, and normally toggles between 1st and 3rd person view.
08/04/2008 (11:55 am)
I'm having the same problem as Timothy, using TGEA 1.7.1 and the latest AFX:A. Not only do I start in first person, I can't seem to change modes. I know the two resources are conflicting, I just can't see how. I've been tracing down this problem all day today, yet I got nowhere.
If anyone got this working - any help would be very much appreciated!
@Timothy: Maybe Picasso meant toggleFirstPersonPOV(1); - check out your default.bind.cs, this is bound to TAB, and normally toggles between 1st and 3rd person view.
#27
ServerConnection.setFirstPerson(false);
This is after I've setup the camera and all that...
08/04/2008 (1:33 pm)
I do this at the end of GameConnection::createPlayer in the server game.cs file:ServerConnection.setFirstPerson(false);
This is after I've setup the camera and all that...
#28
08/04/2008 (2:21 pm)
SWEET, that did it. thanks for the help eric. Now to implement click to move!
#29
08/04/2008 (2:33 pm)
Thanks Eric, that solved the problem!
#30
I have a video that shows it off, I'll see about getting it cleaned up and post it, then you can see if its the kind of thing you're going for...
08/04/2008 (6:50 pm)
I have click to move working, and some party leader following, so let me know if you run into any issues with that... :-)I have a video that shows it off, I'll see about getting it cleaned up and post it, then you can see if its the kind of thing you're going for...
#31
08/05/2008 (6:21 am)
Ok sounds good. thanks man
#32
08/06/2008 (11:33 am)
Hey eric, any idea how to make a crosshair for when you are in god mode? i decided against click to move but i need a crosshair to see where i'm firing.
#33
so far its not going so well as this was written for TGE 1.4
Lots of changes since then.
08/07/2008 (10:55 am)
I started a port of this www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3533so far its not going so well as this was written for TGE 1.4
Lots of changes since then.
Torque 3D Owner Eric Armstrong
Bloody Tongue Games