7
$\begingroup$

After looking at the documentation about supported file formats on wiki, I tried to use 8 bit BMP files as texture. (I know, old school, but I wanted to avoid conversions)

However, the image appears blank in blender.

Is there anything I need to set (like a property, or parameter while importing) to be able to use an 8bit BMP image as texture?
When I convert these to PNG or 24b BMP there is no problem.
Also when I save something with mspaint as 8b BMP the same problem happens.

Note I used a python script to import these, image.load().

$\endgroup$
1
  • 1
    $\begingroup$ just as a heads up .BMP is a bad format for blender and several other 3d apps. Use .tga or .png or .exr. Those three will have you covered for most of your needs. Also .HDR exist for environment maps. Do not be too lazy to convert. $\endgroup$
    – user320
    Commented Aug 14, 2013 at 22:48

2 Answers 2

4
$\begingroup$

It is not supported, the Import Image as Plane addon prints (console)

IMB_ibImageFromMemory: unknown fileformat 

Trying to open a 8 bit BMP manually also prints "Unknown fileformat" on the console window.

The difference to 16, 24 and 32 bit BMPs is that 256-Colors are adressed from a palette this makes the file format different to the other formats.

If you have many images to convert you could consider batch-converting them with ImageMagic, Gimp or Irfanview

$\endgroup$
2
  • 3
    $\begingroup$ Actually a fix for this was committed yesterday. Try an svn build of r59103 or higher. This fix will be part of 2.69 $\endgroup$
    – sambler
    Commented Aug 14, 2013 at 19:15
  • $\begingroup$ @sambler as long as the feature is available in some form. It is fine to answer. $\endgroup$
    – iKlsR
    Commented Aug 14, 2013 at 19:30
5
$\begingroup$

Support for loading 8bit bitmaps was just committed to trunk recently. Grab any build of r59103 or greater and it should work and it will also be available by default in 2.69.

$\endgroup$
2
  • $\begingroup$ I downloaded 2.69 and tried this. The bitmaps now load, but incorrectly. After I use same texture in 24 bits, it will be allright. $\endgroup$
    – Zéiksz
    Commented Nov 16, 2013 at 22:46
  • $\begingroup$ @Zéiksz You could report this as a bug then, it was working at the time I tried it and wrote this answer. $\endgroup$
    – iKlsR
    Commented Nov 16, 2013 at 23:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .