3D Space Game using Torque?
by Chris Herbert · in Torque Game Engine · 05/29/2007 (11:59 am) · 1 replies
Hello,
Is Torque a suitable engine for writing a 3D Space Game with Solar Systems etc ?
I knocked up quite a good engine using Blitz 3D a few years back but came across a problem which I can't quite remember but I'm sure some of you will know what I'm talking about..
Something to do with the further I moved the camera out into the world space there was some kind of floating point number or limit that would cause strange behavior. Someone once suggested something about moving the universe object around the player rather moving the player around the universe objects. This way the camera always remains at 0,0,0.
Anyway, even better would be if anyone could provide some sample code and/or explain the above problem in better detail.
Thanks.
Is Torque a suitable engine for writing a 3D Space Game with Solar Systems etc ?
I knocked up quite a good engine using Blitz 3D a few years back but came across a problem which I can't quite remember but I'm sure some of you will know what I'm talking about..
Something to do with the further I moved the camera out into the world space there was some kind of floating point number or limit that would cause strange behavior. Someone once suggested something about moving the universe object around the player rather moving the player around the universe objects. This way the camera always remains at 0,0,0.
Anyway, even better would be if anyone could provide some sample code and/or explain the above problem in better detail.
Thanks.
Torque Owner Jacobin
There are a number of threads about the issue but no easy solution. Changing all the positional information to double floats would do the trick, but necessitate you changing all the math functions used to accommodate the new double floats. Some of which people say, don't happen to have double float versions.
This issue not only affects space games but those trying to take advantage of TGEA's "large unlimited terrains." It's a byproduct of the fact that torque was not designed for large terrains, but ones with game areas of < 2k.