I'm trying to make an editor that has a lower/raise/level terrain tool using modifyterrain.
The editor will then save the terrain back to a BMP, therefore it makes sense to only have 256 height levels (Anything in-between would be rounded when saving)
So to do this I was using a constant to represent one unit of height:
The problem I'm getting is that when I SUBTRACT this unit from a point on the terrain like this:
it works fine, however ADDING:
Seems to have no effect unless I use a value ever so slightly more than HeightUnit which starts to mess up my terrain 'levels'
Ive actually tried subtracting with values much smaller than HeightUnit and that seems to work fine - why is there this difference???
Any explanations?
The editor will then save the terrain back to a BMP, therefore it makes sense to only have 256 height levels (Anything in-between would be rounded when saving)
So to do this I was using a constant to represent one unit of height:
Const HeightUnit = 1.0/256.0
The problem I'm getting is that when I SUBTRACT this unit from a point on the terrain like this:
ModifyTerrain terr, x, z, TerrainHeight(terr, x, z)-HeightUnit , True
it works fine, however ADDING:
ModifyTerrain terr, x, z, TerrainHeight(terr, x, z)+HeightUnit , True
Seems to have no effect unless I use a value ever so slightly more than HeightUnit which starts to mess up my terrain 'levels'
Ive actually tried subtracting with values much smaller than HeightUnit and that seems to work fine - why is there this difference???
Any explanations?