Hello mmowned users!
I want to publish my BLP-Library. The Lib is completly written in C# and does not need any additional 3th Party Libs than the .Net-Framework. Everything is written in managed code, so no unsafe-code is used. here are some features, whats possible with this lib
- Read compressed and uncompressed BLP-Files
- extract the 32pppRGBA-Data out of a compressed or uncompressed BLP-File
- Read a BLP-File into a System.Drawing.Bitmap Class
- Convert a BLP-File to BMP, PNG, JPEG or any other format which is supported by the Bitmap.Save()-Method
- Supports DXT1, DXT3 and DXT5 decompression
- 8-Bit Alpha-Channel support
Here are some ressources, in fact you want to get some more info about the BLP-Format or the decompression algorithms
- BLP - MMOwned Wiki
- .BLP - Wikipedia, the free encyclopedia
- S3 Texture Compression - Wikipedia, the free encyclopedia
- DXT Compression Techniques at Simon's Graphics Blog
- libsquish - Open source DXT compression library. - Google Project Hosting
I've ported some of the LibSquish decompression algorithms from c++ to c#, so credits goes to them
In this release is also a little example application with an example blp-file. I think everything you need to know is covered there and in the lib itselfIf you have any questions, feel free to ask (after you have read my PFAQ :P)
PFAQ - Possibly Frequently Asked Questions
How do I use this lib?
Well, if you don't know how to load a project into Visual Studio 2010, then you should not need this lib!
Can I use this lib in my <Insert-Tool-Name-Here>?
Since this lib is licensed under the MIT-License, you can do everything which is described there. Feel free to use it in any project you want, even in commercial ones. But please, give credits
The code is shitty!
Yes... it is. I only want to show you, how to work with BLP files. Nothing more. Feel free to modify / optimise it
How can I get a BLP-File from a MPQ-Archive?
Well, there are multiple ways to achive this. You can extract it by hand, using MPQ-Viewer (Like MPQ Editor). You could also do it like me and read the MPQ using C# by adding some new features to the opensource MPQ-Tool. Do it as you like.
Thanks to:
- LibSquish - A nice lib for DXT-compression
- Malu05 - The wow.dev-Wiki is one of the best ressources for WoW-Reversing I have ever seen!
- mmowned - Thank you for this great board
Download
SereniaBLP Lib | VirusTotal-Report