Editor update – terrain

Planning and Development

Check this out:That’s a genuinely terrible excuse for a terrain but it was generated completely in the editor.  For now right clicking on a terrain while in edit mode raises vertex closest to your click by 2 units.  This obviously needs to be expanded to allow for arbitrary up and down movement, but it’s a start.  The terrain object’s vertex and normal arrays have to be recomputed every time a vertex is moved, but this works.  After the controls themselves are improved a little, I’ll need to write a way to export this terrain to a height map.  Then I’ll have to make a way to import those height maps back into the editor.  Lots to do.

Leave a Reply

Your email address will not be published. Required fields are marked *