Game Development Community

TSE and the Advanced Camera Resource

by Amr Bekhit · in Torque Game Engine Advanced · 11/02/2006 (10:05 am) · 4 replies

Hi all,

I posted this message on the Advanced Camera Resource page but have got no replies for a few days now so I hope to get more info by posting here.

I'm having trouble getting the resource to work with TSE. I added the 2 files to the project, but when I came to compile, I received an error in advancedCamera.cc on line 6 saying that the compiler couldn't find the file dgl.h.

I commented out the #include and the program compiled fine, but after adding the script changes, I find that the advanced camera doesn't function - I am simply placed in a first person view of my player.

I was wondering if anyone has successfully added this resource to TSE - one comment on the resource page claims to have done so, stating that they simply added the source files to an up to date version of the source and it worked, but unfortunately this hasn't worked for me. I did try adding it to TGE 1.4 and it was very easy to install and use.

Any info people?

Thanks.

--Amr

#1
11/03/2006 (10:42 am)
Dont know if it works in TSE to be honest - I've heard it does from 2 guys though.

Neither do I know if it works in 1.5.

I'm not using it at the moment for my current game project, so thats why I havent worked on/with it in the latest builds
#2
11/03/2006 (11:03 am)
@Amr: you need to replace all dgl drawing stuff with the equivilent calls the new graphics manager (GFX).

I have not looked at the resource but I don't think a camera does much rendering ;p so should be straight forward.
#3
11/03/2006 (12:08 pm)
Ah, I see. Thanks for the info Neo.

Here's a question: in order for the resource to compile, I had to comment out the #include dgl/dgl.h. It compiled after that - it seems to imply to me that the camera doesn't access anything declared in dgl.h otherwise I'd get Functions not decalred errors, or is that incorrect?

I'll have a browse through the code and see what I can do.

--Amr
#4
11/03/2006 (12:34 pm)
Hmm... I've had a read through advancedCamera.cc and I can't any calls to any sort of rendering functions. :(

It'd be nice if anyone who's incorporated this into TSE enlighten us with their method.

--Amr