Page 1 of 1

Importing a heightfield

PostPosted: Sun Apr 16, 2006 3:13 pm
by Thing 2
Hi Aaron,

I just found your program through the forums over at garagegames.com, I downloaded the standard version last night. I have a heightfield that I'd like to see in 3D but when I try to import it, I get this:

L3DTio_LoadImage_FI error
- incorrect bit-depth for PNG HF

CMapGroup::LoadMapFile2 error
- error loading file

CMapGroup::LoadMapFile error
- Call to LoadMapFile2 failed

Program 'ImportHF_Wizard' terminated following errors


My heightfield is a png, it's dimensions are 868x666px and I tried switching the bit depth to 8 after I saw this error but it still didn't work

PostPosted: Sun Apr 16, 2006 3:48 pm
by Aaron
Gidday Thing 2,

This should be pretty easy to fix once I know what bpp/colour-mode the PNG is using. Could you send the image my way for testing (aaron@bundysoft.com)?

Cheers,
Aaron.

PostPosted: Mon Apr 17, 2006 3:37 am
by Aaron
Hello again,

The PNG was in 32-bit integer mode, which L3DT didn't support (but now does). You can get the latest version from the downloads page (v2.4 beta1 build 3).

Cheers,
Aaron.

PostPosted: Mon Apr 17, 2006 2:13 pm
by Thing 2
Thanks Aaron, I appreciate your effort!!

PostPosted: Wed Aug 09, 2006 5:12 pm
by fig
I get roughly the same error trying to import an 8 bit bitmap.

Any chance you could add support for this?

I tried converting it to 24 bit. It looks OK but the heights are messed up when generating the textures for it..

L3DTio_LoadImage_FI error
- incorrect bit-depth for BMP/JPEG HF

CMapGroup::LoadMapFile2 error
- error loading file

CMapGroup::LoadMapFile error
- Call to LoadMapFile2 failed


Edit: Forgot to mention what version I'm using. :)

Release no: 2.4 Rev. 16
Build date: 03-July-06
Pro version.

PostPosted: Wed Aug 09, 2006 5:44 pm
by fig
Just ignore me :)

I downloaded the new version and you've already fixed it..

Thanks
fig