• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JAVA] Code to Read BLPs!

Status
Not open for further replies.
Hello; I'm looking for code that will allow me to load BLP image files into a JAVA program that I'm working on. Be it an exe that I could embed in my program and run with command line scripts, or actual JAVA code, I'm looking for something that will turn BLP image files into something usable for java -- either a Java object, like maybe a "BufferedImage", or a .png file.
But I want to make my code do it automatically! The end goal is to make my program act similar to the War3ModelEditor, so it can extract textures from the MPQ archives and load them onto rendered models.

I've attached a picture of what I mean. This picture was made by manually extracting the BLPs as PNGs, and then loading them into the software I'm writing; I don't want users to have to manually do any of that!

All help loading BLP files into JAVA is appreciated! I found an online java package called jblp, and it can only load about 1/4 of the Warcraft III textures correctly! If anyone has code for, or understands better, the BLP format, it would be awesome to have a working BLP reader for my java program!

Edit: attached picture
 

Attachments

  • MxE.png
    MxE.png
    295.8 KB · Views: 136
Status
Not open for further replies.
Top