Page 1 of 1

Infinite Terrain code

Posted: Sat Feb 18, 2006 2:34 pm
by Omroth
I've just finished work on the client-side infinite terrain code. Determinance's levels are about 4km^2 each, but repeat indefinitly, making the play area basically infinite.

Torque (DT's engine) supports repeating only the terrain (hills etc) out of the box, but I've just finished upgrading it so it infinitely repeats the rocks, towers, grass, spikes etc.

Ian

Posted: Sat Mar 03, 2007 1:44 am
by Devfrost
Wait so, the levels are like a planet? You can go one direction forever and sooner or later get to the position you were before?

Posted: Sat Mar 03, 2007 7:51 am
by rats_
Yep. Loopity loop loop.
Unless I have understood wrong. :| At least the ground starts to loop. But I'm not sure if the whole world, with players too, loops.

Posted: Sat Mar 03, 2007 1:20 pm
by Omroth
The terrain eventually repeats in structure, but the level is in fact infinite - you can fly off in one direction forever, and you will never meet other people or anything.

Posted: Sat Mar 03, 2007 5:07 pm
by Faxmachinen
What happens when you overflow the vector describing your position?

Posted: Sat Mar 03, 2007 7:17 pm
by Toshers
Heh, i was thinking the same thing. You'd probably have to go a hell of a long way to do that though. For example, the range of values in a Long is apparently approximately 9E18 >.>

Posted: Sat Mar 03, 2007 7:54 pm
by Faxmachinen
1. Start Determinance
2. Place heavy object on directional key
3. Sleep on it

Oh, and I think you've got Longs confused with Doubles.

Posted: Sat Mar 03, 2007 8:17 pm
by Toshers
The max length i posted was for a Long (googled), but i suppose a double would make more sense anyway. My knowledge of data types is somewhat restricted thanks to A-level computing not being hugely interested in them x.x

Posted: Sat Mar 03, 2007 8:27 pm
by Omroth
Yeah, DT does get confused if you fly for like a hundred thousand clicks. So I guess you could sue us for using the term infinite! Arg!

Posted: Sat Mar 03, 2007 9:07 pm
by rats_
No, no they couldn't.
The program acts in unappropiate way. They can't complain to you. :P It should be infinite, but the computer itself fucks it up. Or, so you gotta say.

Posted: Sat Mar 03, 2007 10:28 pm
by Toshers
Heh, you should make kilobyte position variables. By the time they manage to prove that the program crashes, you'll be in mexico >=D

...

Or you will have died of old age. Either is acceptable.

Posted: Sun Mar 04, 2007 12:22 am
by Nazriel
Toshers wrote:Or you will have died of old age. Either is acceptable.


Nooo.... Ian can't die of old age. He needs to be immortal and continue the series, up to and past Determinance 15: Trials of the Omphr: The Walking Duel: Now you %#@*ing Brats Can Walk!

Posted: Sun Mar 04, 2007 12:31 am
by Omroth
Yeah I reckon Determinance 15 will have walking. I can do that.