viridis Posted May 12, 2017 Report Share Posted May 12, 2017 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 Quote Link to comment Share on other sites More sharing options...
vladislavbelov Posted May 12, 2017 Report Share Posted May 12, 2017 (edited) As the error says, BMP format (with these settings) is not supported, you need to use BMP with right settings, the one of: gray, 8 bits per pixel without alpha channel colored, 24 bits per pixel without alpha channel 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 May 12, 2017 by vladislavbelov 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.