Forum > Software Development
[TOOL] A new BLP Converter
<< < (3/3)
PhilipTNG:
--- Quote from: "Gurluas" ---It belongs to the MOP Battleship. Here it is:
https://dl.dropboxusercontent.com/u/952 ... _SAILS.BLP
When converted to a PNG it's just wireframe.
The texture is the sail for this ship:
--- End quote ---
Those are simple to get around, you just need to switch it's format then turn it into a PNG.. I had this issue when I was modifying Cataclysm's Title Screen a year ago and noticed that the image appeared fine in Adobe ImageReady however in windows explorer and photoshop itself it wasn't.
After an hour or so of trying to hex edit the PNG file with no luck, I just tried modifying the BLP's format and lo'and 'behold.... just changing it to the Non-Alpha versions fixed it. ^_^.... so naturally the easiest way to do that is just converting it to a DXT1 or RAW0 format with a converter that has that sort of option.
To Gurulas:
[youtube:30ouis60]http://www.youtube.com/watch?v=1exv2Rm4kAU[/youtube:30ouis60]
And just some food for thought, Alternatively you can just convert the Wireframe PNG File into a non-alpha'ed DXT1 DDS File which would give you a colored file and not a wireframe, then that back into whatever format you want. Or Convert the Wireframed PNG into a DXT1 BLP, it all works the same.. as I said, it's just Food For Thought.
relaxok:
Anthony - that's interesting that it works, but it brings up questions about the BLP format.
What about the BLP header suggests that this needs to be done?
As far as I can tell, it's just alpha encoding 7 which is DXT5 but no different than other DXT5 textures in the data.. might be missing something though. Alpha depth is 8 but I'm ignoring it for compressed textures. Libs like squish have no option that would seem to result in the correct color.
(i also get a wireframe)
Edit: Hmm, I see there is some difference between DXT1 with no alpha and with 1 bit alpha... the lib i'm using to decompress dxt textures does not have a mode to differentiate those things. I guess I will have to write my own if I want to be able to handle such files, however I still don't know how the BLP format differentiates "DXT1_A0" vs "DXT1_A1" to use the terms from the video.
Navigation
[0] Message Index
[*] Previous page
|