- March 25, 2009 at 7:41 am #29738
Is it possible to load a .bmp file as texture in runtime without converting into .PVR format?March 25, 2009 at 4:08 pm #32844
Our SDK does not come with code to load BMP files, however the BMP file format is rather simple and it should not be hard to find a description or even free loader code or a library for it.March 25, 2009 at 5:36 pm #32845
You need to get the source to DevIL
rip out the BMP part or if you can find a version built for Arm and
Linux use that. It’s a very good lib although I think it’s not thread
safe. Not tried it in multiple threads but looks like it may not be
thread safe.March 26, 2009 at 7:15 am #32846
As Xmas says, it is certainly possible to use 24bpp BMP data for your textures without converting to .pvr files, but using uncompressed texture data like this is not recommended as an optimal solution for your applications. Using this data will increase the initial upload time of your textures (when compared to smaller and possibly pre-twiddled data) and will also increase the texture bandwidth use of your application by up to 12x (when compared to PVRTC 2bpp).
Typically in mobile applications this bandwidth cost cn severely affect performance e.g. in a recent demo I was presenting, simply optimizing the textures produced a framerate increase of between 40 and 60 percent.