Terrain Generator

Posted By: sheefo

Terrain Generator - 10/08/06 10:46

In the Wiki there is a snippet for generating terrain HMP files using DLL and C-Script (http://www.coniserver.net/wiki/index.php/HMP). I got it working, and generating a nice small terrain. But when I make it large it only changes the X verts and the result is that it looks like a long line for a terrain.

There is this line of code that links to a function you have to create yourself, and the comment tells you what to do. But I don't get it, I don't know how to change the terrain's Y vertices?

Code:

Terrain_GetSize(terrain, Terrain_Info); //get Size (Num Verts X / Tri Size X/Y) via a help function



Someone please help me, all I want is to change the size of the entire terrain and not just the X size.
Posted By: sheefo

Re: Terrain Generator - 10/08/06 16:29

OK, I've worked out that when I put it as 32 it becomes square 32x32 but when I make it 64 it becomes 64x16.

You can't set the width and the height individually, it's just one variable so I have no idea how it works. Please will someone help?
© 2023 lite-C Forums