Tutorial Skinning a Model

elmstfreddie

The Finglonger
Reaction score
203
This tutorial will explain how to have 2 models: one with your new skin, one with the default skin. So, obviously, you will need a custom skin for this tutorial :)

First of all, we will need a program. I will try to explain step-by-step in case you have never used this program before.
War3 Model Editor (aka Mago's Model Editor) (got this link from the Useful Tools thread)
Download that, and let's begin!


1. Pre-Model Editor

Before we open the model editor, we will need a folder with your skin in it. Don't forget to have your skin as a blp. Remember this folder, and where in this folder the texture is. This will be important for when you import your newly skinned model into the World Editor. From now on, do NOT move your texture around. Keep it where it is.



2. Open the Model Editor
Now that the model editor is open, go to Windows -> MPQ Browser. In the MPQ browser, you must find the model that the new skin was created for.

Note: The website you downloaded the skin from will tell you the path that the skin should go on. Follow that path in the MPQ browser, and then find the MDX (not the blp!). If you can't find the MDX, it's most likely that the skin you downloaded was supposed to be imported into the Textures folder. Some hero textures are found in this folder, however their model counterparts will be found where you expect it to be (for example, the Mountain King skin is in the Textures folder, however the model is under Units\Human\HeroMountainKing\HeroMountainKing.mdx)

Now, open that model.
On the original window of the Model Editor, you will now see the model. With your model visible, hold left control, and click on the part of the model with the skin, and see the model flash black (if the model doesn't flash black, you didn't control click on the correct part of the model. You cannot click on a part with team colour. Otherwise something else got in the way, like hero glow, etc). Here's what the footman looks like when you control click the correct part of the model.
4zykf8z.jpg

With the correct part of the model selected, we can now see which geoset uses the texture by going into the geoset manager. That can be found in Window - Geoset Manager.
With the Geoset Manager open, one of the Geosets will be selected.
4yip1y1.jpg

Now, double click on this Geoset and another window will open. Remember the material which this Geoset uses, which can be found here.
5xqm4xl.jpg

Now, close this window and the Geoset Manager, and go into the Texture Manager. This can also be found in the Windows tab.
Import your new skin into the texture manager by right clicking anywhere (not on an existing texture though), and selecting Import. From here, find your blp, and then press open. Now, since we are using a new skin, we don't need the old one! So, right click on the old skin, and select remove. However, now that we removed the old skin, the model will look like this in the main window:
67sru3d.jpg

Don't worry, this is perfectly normal.
This time, we will go into the Material Manager (Also found under the windows tab). Open that material you were supposed to remember, and you will see a window with a list of Material Layers.
A lot of materials only have 1 layer, however some models have more than 1 layer. We will have to edit every layer if there is more than one, but it's quite simple.
Double click on the first layer, so that a window opens. There are 5 sections, Alpha, Flags, Texture ID, Animated Texture ID, and Filter Mode. You will notice that Texture ID and Animated Texture ID will have (none) as a selection. Animated Texture ID is not important, however we will need to set Texture ID to our new texture:
4udn61w.jpg

Select that one, and change it to your new texture.
When you go back to the main window, parts of your model will still be black, like this:
4qeotw9.jpg

This is because the Material with team colour has more than 1 layer. One layer is for team colour, the other is for the texture. So now, left control click on one of the black parts of your model, then open up the Material Manager. A material will be selected, open this one to find 2 layers. Double click both layers, and examine the texture it uses. One of the textures will be (none), and the other will be Replaceable ID 1. On the one with (none), replace (none) with your imported texture. Now, go back to the original window, and there should be no more black spots.
Now that we're done with the Model Editor, just save your model to the same folder which contains your skin. You can name the model however you like.



3. Into World Editor

Now that we are done with our model, we just have to import it into the World Editor. This is quite simple.
Import your model, import your texture, and then remove war3imported from the file path. That's it.
In the Object Editor, select your imported model from the list of imports, and you can now place your newly skinned unit along with the original unit.
Have fun skinning!


**If a mod feels they need to scale down the pictures you have my permission (I guess you don't really require it though lol)
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
Faster way...

Convert to .mdl > change skin path to w/e you want > convert to .mdx > done.
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
Look for the unit texture in this case its

Code:
Textures 3 {
	Bitmap {
		Image "Textures\Footman.blp",
	}
	Bitmap {
		Image "",
		ReplaceableId 1,
	}
	Bitmap {
		Image "Textures\gutz.blp",
	}
}

Change "Textures\Footman.blp" to w/e you want like Myskin.blp and when you import the model change the skin path to Myskin.blp

Here is the source for Footman.mdl
 

Attachments

  • Footman.txt
    294.8 KB · Views: 486

elmstfreddie

The Finglonger
Reaction score
203
But in that case you'd still have to make a new model based off the original... Might as well do it all with one comprehensible program;)
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
Instead of messing with the model's materials just change the texture path. Its a lot faster and easier to do.
 
M

madmuffin

Guest
I'm confused in the process which you are changing the unit's texture path Orc_Tamer, can you explain it in detail?
 

elmstfreddie

The Finglonger
Reaction score
203
In Orc_Tamer's method he saves the mdx, converts it to an mdl, opens it in notepad, finds the section with textures, changes the path, save as an mdl, converts to mdx, then imports the mdx and mdl. Kind of a more complicated method though...
 

ReVolver

Mega Super Ultra Cool Member
Reaction score
609
I'm confused in the process which you are changing the unit's texture path Orc_Tamer, can you explain it in detail?

1.Get Magos Model editor
2.Save the model as .mdl
3. Open the .mdl file with notepad
4. Search for "Yourskinpath.blp" < the path of the skin of your model
5. Change it to w/e you want.
6. Open in Magos Model editor
7. Save as .mdx
8. Import to map and use the texture path of the one you changed.
 
M

madmuffin

Guest
1.Get Magos Model editor
2.Save the model as .mdl
3. Open the .mdl file with notepad
4. Search for "Yourskinpath.blp" < the path of the skin of your model
5. Change it to w/e you want.
6. Open in Magos Model editor
7. Save as .mdx
8. Import to map and use the texture path of the one you changed.

When I tried to open it with the model editor after changing path, it said the texture did not exist.
 
C

covenant1

Guest
when i skin i cant save it to wat ever i want..i have to save it to footman or else it says there is an unknown extension
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top