godot_heightmap_plugin icon indicating copy to clipboard operation
godot_heightmap_plugin copied to clipboard

result of importing exr is a plane

Open epth opened this issue 4 years ago • 2 comments

Describe the bug result of importing exr is a plane

To Reproduce Steps to reproduce the behavior: 1,export houdini heightfield to 16bit floating exr file, 2,Select exr file in godot_heightmap_plugin, 3,Click import in godot_heightmap_plugin,and the result is a plane.

Screenshots open in krita and can see the channels: image and in plugin the result is just a plane image

Environment

  • OS: Windows 10 20H2
  • NVIDIA 1050ti
  • Godot version: Godot_v3.2.4-beta6_win64
  • Plugin version: af6a0ac2ebfea8d92d975a78d4dd9d89da6a0e0a (zip from respositories)
  • Renderer used: GLES3

attachment: height.zip

epth avatar Jan 23 '21 05:01 epth

The importer assumes that EXR files use real height range. Your EXR file uses 16-bit floats but they are all within the [0..1] range, so it will look almost flat throughout the terrain.

This could be fixed by allowing to specify a remapping height in the importer, which is an option only available with raw import at the moment.

Another workaround is to use the map_scale property of the terrain node and increase Y a lot, however I never tested it on very large scales, and it might look bad because normals are computed from the source heightmap and will lack precision due to the super-low slope frequency in [0..1].

Zylann avatar Jan 23 '21 20:01 Zylann

The importer assumes that EXR files use real height range. Your EXR file uses 16-bit floats but they are all within the [0..1] range, so it will look almost flat throughout the terrain.

This could be fixed by allowing to specify a remapping height in the importer, which is an option only available with raw import at the moment.

Another workaround is to use the map_scale property of the terrain node and increase Y a lot, however I never tested it on very large scales, and it might look bad because normals are computed from the source heightmap and will lack precision due to the super-low slope frequency in [0..1].

Thank you! @Zylann it looks good if not select the autoremap 0-1 in Houdini image

i thought range 0-1 should be exported then the plugin will remap to min-max height,a llittle bit misunderstanding haha.

epth avatar Jan 24 '21 03:01 epth