Skip to content

The values in the ground heightmap are incorrect when loading a DTM from a GeoTIFF file. #191

Description

@naulan-chrzaszcz

(I haven't tested the generator's behavior with DTMs from other sources.)

DTM used :

**Parametrage 1 utilisé : **

format: minetest

worldName: Parc - Albania
verticalScale: 1.0
horizontalScale: 1.0
area:
  center:
    latitude: 42.067834
    longitude: 19.513717
  extentX: 250
  extentY: 250

crs: EPSG:6870
heightmaps:
  ground:
    default: 0
  water:
    default: 0

forEachTile:
  altitude:
    type: sequence
    do:
    - type: fetchData
      modelType: altitude
      provider:
        type: geotiff
        filePath: data/dtm.tif
    - type: populateHeightmap
      models:
        type: altitude
      heightmap: ground
    - type: setSpawn
      heightmap:
        sum: [ground, 1]
      x: 0
      y: 0
    - type: renderHeightmap
      at: ground
      place:
        structure:
          - put: *voxel-grass
            at: [0, 0, 0]
          - put: *voxel-dirt
            at: [0, 0, -3..-1]
          - put: *voxel-stone
            at: [0, 0, -20..-4]

Generation result :
Image

**In this screenshot, you can see that the heightmap does not reach its expected limits : **
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    On holdTodo latertype: bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions