jassdoc icon indicating copy to clipboard operation
jassdoc copied to clipboard

TerrainDeformCrater - shape/approximation

Open Cokemonkey11 opened this issue 5 years ago • 6 comments

image

18:56 <Cokelounge> ^ two craters of r = 256, depth = -128 18:56 <Cokelounge> step size 8 18:57 <Cokelounge> starting at -256 - 16

image

^ step-size 4

image

^ step-size 2

Observations:

  • GetTerrainZ() interpolates over adjacent heightmap datapoints
  • No values are modified outside radius r
  • Applying the same crater with the same parameters just hits the same heightmap values by the same magnitude - i.e. the heightmap is modified by a pure function of (x, y, r, depth)

Questions:

  • [x] Are the interpolated values linear over their cell?
  • [x] When duration parameter is set, how is the modification applied? linearly?
  • [x] What is the cell size?
  • [ ] How does the crater behave for radius and height values that are not divisible by the cell size? What about for x and y?

Cokemonkey11 avatar Oct 13 '19 18:10 Cokemonkey11