Load BMP file in runtime

This topic contains 3 replies, has 4 voices, and was last updated by  Gordon 8 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29738

    Is it possible to load a .bmp file as texture in runtime without converting into .PVR format?

    #32844

    Xmas
    Member

    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.

    #32845

    RichardUK
    Member

    You need to get the source to DevIL

    http://openil.sourceforge.net/download.php

    Then
    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.

    #32846

    Gordon
    Moderator

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.