1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Model file compression

Discussion in 'Modeling & Animation' started by MN Lahmar, Oct 26, 2013.

  1. MN Lahmar

    MN Lahmar

    Joined:
    Jul 28, 2013
    Messages:
    631
    Resources:
    9
    Models:
    7
    Icons:
    1
    Skins:
    1
    Resources:
    9
    Hello, what is the best way to compress the skin and the model file?
     
  2. Freddyk

    Freddyk

    Joined:
    Sep 7, 2013
    Messages:
    219
    Resources:
    10
    Models:
    9
    Icons:
    1
    Resources:
    10
    For the model, you can save a lot of space by making all animations linear. However it will make animations less smooth, but it's often hardly noticeable.
    You can do that easily in Mdlvis (in the "optimization" menu).

    For the skin, the best way is to use in-game textures, then you don't have to import any texture.
    If you need a custom skin, just decrease the size and/or quality of the texture (i usually use War3 Viewer to convert textures to blp, you can set the compression quality). However this will result in more blurry textures.
     
  3. BlinkBoy

    BlinkBoy

    Joined:
    Nov 11, 2004
    Messages:
    2,099
    Resources:
    12
    Models:
    4
    Icons:
    1
    Tools:
    1
    StarCraft II Resources:
    1
    Tutorials:
    3
    JASS:
    2
    Resources:
    12
    For optimizing the model there are many things you can do like linearizing smooth animations, removing unused bones, mdl objects: reducing unseeable faces and squishing the MDX. You can also rescale the unwrap to reduce the image filesize by reorganizing cutting and resizing.

    For optimizing the skin. Get a tool called blp lab, there's a type of blp compression called paletted blps. These kind of blps normally produce better quality/size ratios than jpg compressions when compressed by the map/mod. The downside of paletted blps is that they aren't too good for big image files and you need clean images to generate good results (no jittered images from a badly jpg compressed). They also reduce color quality but keep sharp edges perfect, pretty good for building textures. If your texture is very monochrome, the color reduction may not even apply.
     
  4. Infrisios

    Infrisios

    Joined:
    Feb 21, 2005
    Messages:
    106
    Resources:
    7
    Models:
    7
    Resources:
    7
    Models:
    Take care to crop out anything unnecessary, if you know the file system well the best way is to use notepad/notepad++ and edit the MDL files directly.
    Afterwards, use MDX Squisher. It basically cuts off the last bits of the numbers, rounding them to a more fitting value. Don't expect to see any notable difference if you apply it only once. The effects only show after MPQ compression.
    Link to MDX Squisher: http://www.wc3c.net/showthread.php?p=800246&fromattachment=800246

    Textures:
    There is a multitude of tools like the BLPaletter, which uses a color palette to reduce the size (making it more effective on images with a low variety of colors).
    If you don't care about mac users, you can probably use all those tools. If you do, you should be careful though - macs seem to experience crashes when you use certain functions of tools like blplab, paletting etc.; I never got around to do detailed tests on what crashes them though.
    If you wanna be safe, go for WC3Viewer and don't use batch conversion. When converting with WC3Viewer, you can set the compression quality which usually brings good results with values between 35 and 55, depending on how complex the image is in terms of color variety, sharpness etc.
     
  5. Dark_Axl

    Dark_Axl

    Joined:
    Dec 12, 2007
    Messages:
    473
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    this tool can help too