Page 1 of 1

Changing the grid size of a terrain [Solved]

Posted: Mon Dec 28, 2015 7:17 pm
by thelegend
I have been searching around but didn't find anything related to this.
I would like to know how to change the size of the terrain grid. I first saw the difference when I used terrains from both templates: Space and for default maps. If you open ZeroEditor and enable Grid View in top of your screen you should see a green grid. You also should see the huge difference between space and ground terrains. The grid size of space maps is much bigger. I don't know if this would affect the terrain size (e.g. 512x512, 256x256...) or just reduces the amount of squares you have for each edge (of the terrain at all).
Anyways I would like to know how to configure the size. Would I need to hex edit the .ter file or is there any way to do this through zero editor?
Thanks in advance.

Re: Changing the grid size of a terrain

Posted: Mon Dec 28, 2015 8:00 pm
by AceMastermind
http://www.gametoast.com/viewtopic.php?p=241816#p241816

Also, the terrain size represents how many 8x8 meter tiles there are in X and Z

A 256x256 terrain grid would be 2048x2048 meters or 2.048x2.048 kilometers

Re: Changing the grid size of a terrain

Posted: Tue Dec 29, 2015 7:44 am
by thelegend
I already read your link, but I was more refering to one single square size.
I am sorry if I was not clear enough:
Image

I would like to create a more detailed terrain with more squares.

Re: Changing the grid size of a terrain

Posted: Tue Dec 29, 2015 1:12 pm
by AceMastermind
I don't know, tga2ter can supposedly get around the default 8x8 meter grid tile size:
viewtopic.php?f=64&t=29691
-g or --grid - sets the terrain's grid size. If not set, defaults to 8.0.
Also, a note about the grid size. If you set this to lower, the mesh will appear smaller in game, but will also look higher quality. Because of this, if you want to use a smaller grid size, use a larger heightmap to compensate for the change. A problem with changing the grid size is that it makes ZE extremely laggy, at least on my machine, but it doesn't appear to have much of an fps hit in game. Here's a picture of a 1024x1024 terrain with a grid size of 1.0:
Hidden/Spoiler:
Image

Re: Changing the grid size of a terrain

Posted: Tue Dec 29, 2015 3:14 pm
by thelegend
This looks beatiful. Alright I will do my best to change it to 2.0 instead of 8.0 at least. Thanks for the tip Ace.

Edit: Yeah it worked. Got a better resolution of the terrain now. Let's get some 100Mb .ter files :yes: