Larger terrains
by Tom Vogt · in Torque Game Engine · 12/22/2002 (1:33 am) · 11 replies
I'm looking for ways to enlarge the terrain, or rather: It's resolution.
I know I can change the squareSize, but that gives me large patches of terrain.
Essentially, I want a 512x512 terrain block instead of the 256x256 that it's currently. Has anyone done this already or do I have to start from scratch?
PS: I know about the terrain manager. It's very nifty, but I think my needs were better served with just a larger/finer terrain.
I know I can change the squareSize, but that gives me large patches of terrain.
Essentially, I want a 512x512 terrain block instead of the 256x256 that it's currently. Has anyone done this already or do I have to start from scratch?
PS: I know about the terrain manager. It's very nifty, but I think my needs were better served with just a larger/finer terrain.
About the author
#2
12/22/2002 (2:06 am)
Have you tried the terrain manager with 4 256x256 blocks? that would give 1 512x512
#3
And yes, the terrain manager does saves just fine. Just about the only thing remaining to be finished is the creation of multiblock missions from within the editor.
12/22/2002 (5:38 am)
The terrain manager does what you need it to do. If you wanted 512x512 terrain (which is the size I use for testing) you'd create a mission with 4 terrain blocks arranged 2x2. Internaly they're represented as 4 blocks, externaly they're represented as one 512x512 block of terrain.And yes, the terrain manager does saves just fine. Just about the only thing remaining to be finished is the creation of multiblock missions from within the editor.
#4
12/23/2002 (1:20 am)
As I said: I know about the terrain manager, but I consider it overkill for something that could probably be done by changing the right five lines in the engine source.
#5
12/23/2002 (3:11 am)
That's kind of the point, it's not changing 5 lines. Changing the base 256x256 to something larger affects nearly as many files as the TerrainManager code does. If you were to start from scratch both implementations would require nearly the same amount of effort to accomplish, but only one of them gives you the flexibility to grow / shrink terrain sizes.
#6
12/23/2002 (5:55 am)
Hm, ok. Thanks for the info. I was halfway convinced that it required little more than changing a few definitions of "256" and "shift 8" to "512" and "shift 9".
#7
Even working with it as a base I still had to track down several sections of code that dealt with 256x256 as a rule in subtle ways.
12/23/2002 (6:27 am)
When I first started looking into increasing the terrain size I started down the same route you are. After quit a bit of digging I discovered it's nowhere close to being as easy as it first appears. That's when I decided to just fix the issues with the tehn-abandoned TerrainManager.Even working with it as a base I still had to track down several sections of code that dealt with 256x256 as a rule in subtle ways.
#8
Oh well, I guess I'll wait until it gets a little more stable and then just bite the bullet and do it.
12/23/2002 (10:01 am)
I've looked at the terrain manager a couple times. The problem with it is that it changes a lot of stuff in seemingly unrelated files, e.g. hovervehicles.cc that we have already modified for our project. That means a lot of work merging everything in, and with a target moving as fast as the terrainmanager.Oh well, I guess I'll wait until it gets a little more stable and then just bite the bullet and do it.
#9
Right now I'm working on streamlineing some of the "meta-grid" stuff and putting in the save/creation code. All the "hard" stuff is done now, it's just tweaking and wrapping up loose ends.
12/23/2002 (10:35 am)
There should be zero code changes to TerrainManager outside of the TerrainManager itself, the editor code and the editor scripts remaining, and not even very many outside of that. Unless someone finds a bug outside of those areas.Right now I'm working on streamlineing some of the "meta-grid" stuff and putting in the save/creation code. All the "hard" stuff is done now, it's just tweaking and wrapping up loose ends.
#10
Your hard work on furthering Brian's work on the Terrain Manager is sure appreciated by this guy. 8p
Keep up the good fight, and have pleasant holidays (the same for all of you, of course ;))
12/23/2002 (10:44 am)
Man, I can't say this enough, but thanks J.Donovan !!! ;)Your hard work on furthering Brian's work on the Terrain Manager is sure appreciated by this guy. 8p
Keep up the good fight, and have pleasant holidays (the same for all of you, of course ;))
#11
01/31/2003 (10:33 am)
Right now the terrain manager only edits one block of 256x256? I haven't tried adding two terrain blocks in yet. I'm looking for something in the range of 4x4 grid of 256x256 terrain blocks. Could you paint on the terrain of more than one black using the in-game editor?
Torque Owner Thorgrim
I've been looking for something to increase the size too but I dont think there is anything thing out there that works perfectly yet :/