Jump to content

Heightmap import persisting error


 Share

Recommended Posts

Hi, I am trying to learn how to import heightmaps in order to collaborate with mapmaking, but find an error after importing the file. It is:

  • BMP format
  • 128x128 px
  • 8 bit gray-depth but RGB color mode

I am using Linux x64 and 0ad version Pyrogenesis 0.0.21

After some time working, the editor opens a window with the following error:

Function call failed: return value was -120102 (Invalid/unsupported texture format)
Location: tex.cpp:124 (tex_validate_plain_format)

Call stack:

(0x8fc9ee) /usr/bin/pyrogenesis() [0x8fc9ee]
(0x8bd0e9) /usr/bin/pyrogenesis() [0x8bd0e9]
(0x8bd4b5) /usr/bin/pyrogenesis() [0x8bd4b5]
(0x8bd838) /usr/bin/pyrogenesis() [0x8bd838]
(0x8f250d) /usr/bin/pyrogenesis() [0x8f250d]
(0x8f36c4) /usr/bin/pyrogenesis() [0x8f36c4]
(0x8f4c56) /usr/bin/pyrogenesis() [0x8f4c56]
(0x81bea0) /usr/bin/pyrogenesis() [0x81bea0]
(0x7e23e3) /usr/bin/pyrogenesis() [0x7e23e3]
(0x7f9c7665f2e7) /usr/lib/libpthread.so.0(+0x72e7) [0x7f9c7665f2e7]
(0x7f9c763a054f) /usr/lib/libc.so.6(clone+0x3f) [0x7f9c763a054f]

errno = 0 (No error reported here)
OS error = ?

Any ideas? could you try my image and tell me if you are able to generate a map with it?

I have attached both the BMP and the original image file.

Messina.tif

Messina-substract-8bit-128.bmp

Link to comment
Share on other sites

As the error says, BMP format (with these settings) is not supported, you need to use BMP with right settings, the one of:

  1. gray, 8 bits per pixel without alpha channel
  2. colored, 24 bits per pixel without alpha channel
  3. colored, 32 bits per pixel with alpha channel

About required format: https://trac.wildfiregames.com/wiki/Atlas_Manual_Heightmap_Import

UPD. Your BMP hasn't a gray flag (in other words it's colored), but it has 8 bits per pixel.

Edited by vladislavbelov
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...