Game Development Community

Advanced Camera and Interpolation

by Alex (Stalker) Sakablukow · in Torque Game Engine · 11/22/2006 (1:51 am) · 3 replies

Hi, i have a "small" problem with this ressource:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471

I need interpolated camera for my Project, so i have added the changes from Manoel Neto (incl fix for camera coordinates) and updates from "Gustavo Carvalho"..

The Camera work now exactly as i need, with only one bug: sometime it crashes (stop) at the first frame ingame (or better, at the end of mission loading).

With the old torcue camera it start with no problems.

Has anyone get the advanced camera with interpolation to work witn no errors? Or has any idea what going wrong with this ressource?

Maybe network-problem? (probably).

EDIT: Have found a way to fix that (i create 2 camera-objects, start with the old tge camera, and swith then to interpolated. The interpolated camera schould be set to no interpolation, and after some time (1sec als example) to interpolation.

But havent found the bug.

#1
11/27/2006 (1:13 am)
Are you starting the game in first person or the advanced camera? I know that I implemented a hardcoded version of the spring model in game programming gems 4 and I haven't had any lock ups or problems with the camera. Let me know your initializing code to go directly into advanced camera and i'll give it a shot.


Padraic
#2
11/30/2006 (6:31 am)
I start with third person camera (since my game hasnt first person view ;) ).

I have tryed both, start with advCamera with 0.05 Interpolation, and 1.0 (no interpolation), but both is randomly crashes at the first frame.
#3
11/30/2006 (7:56 am)
Make sure that you have initialize the start position vector of your camera.

Pretty hard to tell what's your problem by the detail you gave.

Aun.