Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

result of importing exr is a plane #241

Open
epth opened this issue Jan 23, 2021 · 2 comments
Open

result of importing exr is a plane #241

epth opened this issue Jan 23, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@epth
Copy link

epth commented Jan 23, 2021

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: af6a0ac (zip from respositories)
  • Renderer used: GLES3

attachment: height.zip

@Zylann
Copy link
Owner

Zylann commented Jan 23, 2021

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 Zylann added the enhancement New feature or request label Jan 23, 2021
@epth
Copy link
Author

epth commented Jan 24, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants