Infinite Terrain code

More in depth reports of how Determinance is coming along

Moderator: Admins

User avatar
Omroth
Site Admin
Posts: 1701
Joined: Sun Nov 07, 2004 7:07 pm

Infinite Terrain code

Postby Omroth » Sat Feb 18, 2006 2:34 pm

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
Devfrost
Posts: 2
Joined: Fri Mar 02, 2007 11:41 pm

Postby Devfrost » Sat Mar 03, 2007 1:44 am

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?
User avatar
rats_
Star Spawn of Cthulhu
Posts: 351
Joined: Wed May 03, 2006 1:32 pm
Location: Funland

Postby rats_ » Sat Mar 03, 2007 7:51 am

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.
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn !
Image
MODERATOR
User avatar
Omroth
Site Admin
Posts: 1701
Joined: Sun Nov 07, 2004 7:07 pm

Postby Omroth » Sat Mar 03, 2007 1:20 pm

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.
User avatar
Faxmachinen
Posts: 110
Joined: Thu Feb 15, 2007 7:27 pm
Location: Norway

Postby Faxmachinen » Sat Mar 03, 2007 5:07 pm

What happens when you overflow the vector describing your position?
Toshers
Posts: 91
Joined: Sun Feb 25, 2007 1:30 am
Location: England, Cheshire
Contact:

Postby Toshers » Sat Mar 03, 2007 7:17 pm

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 >.>
Andy M
User avatar
Faxmachinen
Posts: 110
Joined: Thu Feb 15, 2007 7:27 pm
Location: Norway

Postby Faxmachinen » Sat Mar 03, 2007 7:54 pm

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.
Toshers
Posts: 91
Joined: Sun Feb 25, 2007 1:30 am
Location: England, Cheshire
Contact:

Postby Toshers » Sat Mar 03, 2007 8:17 pm

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
Andy M
User avatar
Omroth
Site Admin
Posts: 1701
Joined: Sun Nov 07, 2004 7:07 pm

Postby Omroth » Sat Mar 03, 2007 8:27 pm

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!
User avatar
rats_
Star Spawn of Cthulhu
Posts: 351
Joined: Wed May 03, 2006 1:32 pm
Location: Funland

Postby rats_ » Sat Mar 03, 2007 9:07 pm

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.
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn !
Image
MODERATOR
Toshers
Posts: 91
Joined: Sun Feb 25, 2007 1:30 am
Location: England, Cheshire
Contact:

Postby Toshers » Sat Mar 03, 2007 10:28 pm

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.
Andy M
Nazriel
Posts: 65
Joined: Sun Feb 18, 2007 8:08 am
Location: IL, USA

Postby Nazriel » Sun Mar 04, 2007 12:22 am

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!
User avatar
Omroth
Site Admin
Posts: 1701
Joined: Sun Nov 07, 2004 7:07 pm

Postby Omroth » Sun Mar 04, 2007 12:31 am

Yeah I reckon Determinance 15 will have walking. I can do that.

Return to “Inside News”

Who is online

Users browsing this forum: No registered users