Page 7 of 7 FirstFirst ... 567
Results 61 to 63 of 63

Thread: Loading DX Textures in an imagelist - which is the fastest?

  1. #61

    Loading DX Textures in an imagelist - which is the fastest?

    Hi Sly

    found something on the AlphaChannel for PNG issue?
    I can send you an imagelist if you like.

    If it is not working no problem, but it would be interesting to know.

    Thanks

    Firle

  2. #62

    Loading DX Textures in an imagelist - which is the fastest?

    Would you believe that it is the way D3DX saves out to PNG files? If I change the format to use DDS or BMP files, it works. The downside to that is the file size grows quite a bit. It still loads quickly, but the file is a lot larger. As a comparison, my test file is 51KB as PNG, 277KB as BMP and 369KB as DDS.

    So D3DX can load alpha from PNG files ok, but if you save the texture back out to a file using D3DX and load it again using D3DX, the alpha no longer works. The alpha is there in the image. I tested this by loading the saved PNG into PaintShop Pro and the alpha channel is there. Something goes wrong, but I cannot tell what.

    To test the fix, search in OmegaImageList.pas for D3DXIFF_PNG and change it to D3DXIFF_DDS or D3DXIFF_BMP. Save out your image lists again from the original source images and try loading them. The alpha should work now.

  3. #63
    Anonymous
    Guest

    Loading DX Textures in an imagelist - which is the fastest?

    Hi Sly,

    this is no problem. All my stuff with Alphachannel now is stored in one imagelist, and this imagelist I load and save the old way. I have a dozen more, they are quick-loaded your way without alphachannel.

    Thanks a lot for the info!

    Firle

Page 7 of 7 FirstFirst ... 567

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •