1. Join Texturing Contest #30 now in a legendary battle of mythological creatures!
    Dismiss Notice
  2. The Aftermath has been revealed for the 19th Terraining Contest! Be sure to check out the Results and see what came out of it.
    Dismiss Notice
  3. Melee Mapping Contest #3 - Results are out! Congratulate the winners and check plenty of new 4v4 melee maps designed for this competition!
    Dismiss Notice
  4. The winners of our cinematic soundtrack competition have been decided! Step by the Music Contest #11 - Results to check the entries and congratulate the winners!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Shadow Daemon
Joined:
Nov 23, 2008
Messages:
184
Albums:
1
Birthday:
September 29
Location:
Western Siberia
    1. Cokemonkey11
      Cokemonkey11
      Hello,

      Do you still lurk?
    2. Ardenian
      Ardenian
      Oh sure, it was just something that came to my mind
    3. SeedinAethyr
      SeedinAethyr
      Happy Birthday! (Happy Birthday!)



      <span style="font-size: 12px">Here is a cake.</span>

      . . . ., ., ., .,. . . . .
      . . .__|__|__|__|__ . . .
      . . .|~~::~~~~::~~| . . .
      . . .|~!!~~~~~~!!~| . . .
      . . .|<(><)><(><)>| . . .
      . . .|}{}{}{}{}{}{| . . .
      _________________________

      <span style="font-size: 12px">Here is your present.</span>

      . . . . . . .\ &&& /. . . . . . .
      . . . . . . ./<span style="font-size: 15px">*&*</span>\. . . . . . .
      |~~~~~|~~~~|~~~~~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~~~~~|~~~~|~~~~~|
      |~~~~~|~~~~|~~~~~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~~~~~|~~~~|~~~~~|
    4. Sin'dorei300
      Sin'dorei300
      Happy Birthday! :)
    5. Ardenian
      Ardenian
      Hey, I would like to ask you something about the Button Manager.
      I just noticed, you could apply any border to any image, if using your tool.
      Could you imagine extending it and offer any size, instead of the initial cut-out and 64x64 ? This could allow users to create a Warcraft-like tooltip, for example, instead of having to print a screenie, cutting out, formatting and so on.
      I would be very grateful if the Button Manager would support any size and re-size and maybe an option to create a Warcraft tooltip ( like adding text with hex-code and get the tooltip printed).
      What do you think about such a feature ?
    6. Daffa the Mage
    7. Daffa the Mage
      Daffa the Mage
      Will your tools have a Mac support?
    8. stan0033
      stan0033
      Will you at least answer me?
    9. WaterKnight
      WaterKnight
      Well there is also SetPixels for whole areas. I have already integrated it in my custom object editor. It is just for previewing purposes, so I can pick the correct resource paths and browse to find something fitting. All the original files from the mpqs are pre-extracted.
    10. WaterKnight
      WaterKnight
      Works now.

      In Java, I switched to JPEGImageDecoder and decoded it as a Raster, in this Raster iterated over all pixels to swap first and third value (red and blue). Using this Raster and a sRGB ColorModel with alpha for the 4th component formed the correct BufferedImage.

      http://www.hiveworkshop.com/forums/pastebin.php?id=m5glms

      The decoder in vb on the other hand not only had red/blue swapped but also the values were inversed (255 - red/green/blue/alpha). The main issue however was the encoder I threw in between, I just wanted to save it as a stream to pass it further but it jumbled up everything.

      http://www.hiveworkshop.com/forums/pastebin.php?id=1pe1lu
    11. WaterKnight
      WaterKnight
      Seems like there was a problem with jumping back to the beginning of the file, so the offset the mipmap data was taken from was wrong. Also the decoder in vb expected the memorystream to be reverted. Now I handle the streaming in an own array and rewrote the script in java.

      You are right about the colors being off. They are unsaturated and the hue is incorrect. Photoshop deems it as CMYK. Some programs cannot open it at all. I have not succeeded in configuring the decoders yet.

      The vb one appears to be readonly after construction and the constructors do not exactly let you specify a color space. There is an option "PreservePixelFormat", so maybe one should instead inject a color profile in the jpeg.

      In java I tried the general ImageIO, which provides a stream you can pass to BufferedImage. From there you can create a 2nd BufferedImage with another color model and draw the first one on it. But I do not get a right result either. So I have not found out yet how to state the color model in the decoder nor how to mark the color profile you mentioned within the jpeg.

      edit:

      You can transform the BufferedImage with

      BufferedImage after = new BufferedImage(width, height, BufferedImage.TYPE_4BYTE_ABGR);
      AffineTransform at = AffineTransform.getScaleInstance(1, 1);
      AffineTransformOp scaleOp = new AffineTransformOp(at, AffineTransformOp.TYPE_BILINEAR);
      after = scaleOp.filter(bufImg, after);yet none of the types available make it look right.
    12. WaterKnight
      WaterKnight
      Yeah, that's what I am doing :D
      http://www.hiveworkshop.com/forums/pastebin.php?id=6lfqy5

      edit: Since people mention that you should not access the underlying baseStream that way, because streamReader buffers the data instead of reading directly from the source everytime, I also tried to close/reopen and senselessly reading in mipmapOffset bytes just to push the cursor. It did not help either. The decoder says the image header might be damaged.
    13. WaterKnight
      WaterKnight
      Hi, I am trying to display jpg-blps in an application and therefore want to convert to jpg, so a prewritten decoder can do the hard work.

      http://www.wc3c.net/tools/specs/ and
      http://www.wc3c.net/tools/specs/MagosBlpFormat.txt

      state that the jpg data is obtained by taking the header in the jpg-branch and merging it with the data of a mipmap. This however does not seem to be enough, since all programs complain about an invalid format. The sizes and offsets match those displayed in your BLPLab, the header has the right usual 0x270 length. Are the offsets from beginning of the blp file or from the jpg part? What I extract (in my example) misses like 15*16 bytes to get to the end token "FFD9" jpgs are expected to possess.
    14. SeedinAethyr
      SeedinAethyr
      Happy Birthday! (Happy Birthday!)



      <span style="font-size: 12px">Here is a cake.</span>

      . . . ., ., ., .,. . . . .
      . . .__|__|__|__|__ . . .
      . . .|~~::~~~~::~~| . . .
      . . .|~!!~~~~~~!!~| . . .
      . . .|<(><)><(><)>| . . .
      . . .|}{}{}{}{}{}{| . . .
      _________________________

      <span style="font-size: 12px">Here is your present.</span>

      . . . . . . .\ &&& /. . . . . . .
      . . . . . . ./<span style="font-size: 15px">*&*</span>\. . . . . . .
      |~~~~~|~~~~|~~~~~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~~~~~|~~~~|~~~~~|
      |~~~~~|~~~~|~~~~~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~'0~0'~|~~~~|~'0~0'~|
      |~~~~~|~~~~|~~~~~|
    15. Sin'dorei300
      Sin'dorei300
      Happy Birthday! :)
    16. Idaero Ace
      Idaero Ace
      Happy Birthday!



      Here is a cake.

      . . . ., ., ., .,. . . . .
      . . .__|__|__|__|__ . . .
      . . .|~~::~~~~::~~| . . .
      . . .|~!!~~~~~~!!~| . . .
      . . .|<(><)><(><)>| . . .
      . . .|}{}{}{}{}{}{| . . .
      _________________________
    17. Idaero Ace
    18. andreariona
      andreariona
      BLP lab and Button Manager, I've been using them since 2010. Thank you for contributing your timeless works sir. You made wc3 modding waaaay easier!
    19. Roland
      Roland
      Same to you ^^
    20. Roland
      Roland
      Merry Christmas friend!
  • Loading...
  • Loading...
  • About

    Birthday:
    September 29
    Location:
    Western Siberia
    Current Project:
    BLP Laboratory
    Electronic music, anime, programming

    Signature

    [​IMG] » John 00 Fleming - MMX1215
    » Button Manager v1.8.2
    » BLP Laboratory v0.5.0
    » "/quit Shadow_Daemon"
    Random favourite tune.
    The solution for icon makers.
    Texture viewer & converter.
    is not supported by kernel.
    [​IMG]
  • Loading...
  • Loading...