• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

I need some help about BLP

Status
Not open for further replies.
Level 1
Joined
Aug 13, 2010
Messages
3
I am coding a tool and I want to show a blp file in a picture box.(using c# , I think that is a beautiful language)
but when I convert the blp file to jpg file , I found a problem , the color!!!

172616i8fcgvtggvv993vc.png


the left one is the tool converted.
the right one is I converted.(I read the BLP format in http://www.wc3c.net/tools/specs/MagosBlpFormat.txt)

Why the color is wrong?
I need some help , please.

I am a foreigner . So my English is not very well.
 
Level 1
Joined
Aug 13, 2010
Messages
3
Red and blue colour channels are swapped by the looks of things. You also have a problem generating value 0 as it is coming out as a value around 64.

It is hard to tell the exact problem only that colours are skewed and the colour channels are swapped.

thanks for help, I think I should find a BLP tool's source code and understand how it converted.
 
Status
Not open for further replies.
Top