• 🏆 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!

Crash Course On Ripping Sc2 Models

Level 12
Joined
Oct 10, 2009
Messages
438
The Programs You Will Need


Homework before we begin

First of all go grab all the above programs and install them.
Once you've done that give yourself a pat on the back; we've done the easiest step and now we get to do the hardest part. Extracting Sc2 / Hots files with casc.

Go launch yourself the Casc viewer, navigate to where you installed Sc2 and open up the Casc MPQ. We'll need all these files for later ( when we view them via m3 importer ), so go ahead and extract them to a place you'll remember. There are a lot of files and this will take some time....

Great! Now on to the easy stuff.​

The Hard Stuff

Okay I might have lied about the hard stuff being done. Time to rip those models out of the casc storage we just saved.

Open up 3ds Studio Max and navigate to the right side panel > MaxScript > M3 Import
If you've installed everything correctly you should see something like this:
unknown.png
Click on Import... and navigate around until you find your desired Sc2 / Hots model. Once you've found it slam that like, subscribe and +rep button to import it!


So I went ahead and imported fusion core from base.sc2assets/assets/buildings/terran and ended up getting this:
upload_2021-1-26_9-59-13.png


Depending on the mood of the blizzard model creator at the time, you'll be greeted with either a blank looking model, a weird looking model or if you're lucky, a textured one.
Don't panic if you have a non-textured or weirdly textured model. That's what the Material Editor is for and oddly enough, the next step of this tutorial.​

Help my model needs textures!

Skip this step if your model is already textured, or has a weird repeating texture.

Strap on in, here's the fun part! Open up the Material Editor
upload_2021-1-26_10-1-47.png


Using the Material Editor, create a Warcraft 3 Material by searching and dragging it onto the palette
unknown.png
And now you'll need to find the texture file Sc2 uses for the model by yourself. My best advice is to search through the Casc files you extracted looking for ${YourModelName}_diff.dds.

But once you do find it, drag and drop it onto the Material Editor and then connect it with the Warcraft 3 Material we made earlier

upload_2021-1-26_10-4-50.png


This tells the renderer ( and the exporter ) to create a material using these textures. Remember where these textures are from! You'll have to include them with the exported model otherwise you'll get a textureless, gray mesh.

There's various settings you can tinker with on the right hand side, but that's up to you to mess around with.
Using 3ds max, select the part of the model you want to apply the texture to and then in the Material Editor select Assign Material To Selection
upload_2021-1-26_10-7-1.png


This will tell the meshes you have selected to use the chosen Material... and you're done. Next step!​

Crash Course On Texturing


Does your texture repeat strangely, have seams or doesn't match the mesh? Read this simple step to fix it. Doctors hate him! Forewarning, this is a fairly complex stage and I'll be going through it quickly to keep the guide simple. Feel free to experiment and read further tutorials online
unknown.png
In 3ds max select the mesh that has a strange texture, in the modifiers panel at the top right you'll need to add "Unwrap UVW". This lets us manually control where the texture is applied
upload_2021-1-26_10-12-34.png
Once you've done that, click on Open UV Editor. You'll be greeted with something that looks like this
upload_2021-1-26_10-12-57.png


If your texture file is blank ( The square in the background ), you just have to select the material you made at the top right ( where the screenshot has Bitmaptextu... ). If you can't find your material there, that means you never applied it to the mesh. Go back and do that.

Our goal here is to move the mesh around so it aligns with the texture file. Just experiment with moving it around and the various settings until you get it looking right! Read some more indepth, specialized online tutorial if you need help on this step.
upload_2021-1-26_10-15-5.png


Bam! Once you've got the mesh lined up and looking nicely let's go on to the next stage.

Exporting The Model


upload_2021-1-26_10-16-28.png


Wow, look at that. The model is looking great! There's a few more things you can do in 3ds max to improve how it looks ( tinkering with materials, cleaning up animations ) but let's just export it and get it working in Warcraft 3.


At the top of the screen select Neodex > Export Wc3 Model
upload_2021-1-26_10-18-12.png


Name the model something witty or relevant and for now, keep the export settings the default options
upload_2021-1-26_10-18-48.png
And then export it!

Once you're done you'll have the model you just ripped sitting at a mdx file. Just be aware you'll need to include the textures you are using in the same directory you saved the file.

And you're done! You can just import your model and textures into Warcraft 3 as you would with anything else.


Troubleshooting


Oh boy, you ran into a problem? Let me short list some fixes here.

I can't open the model in warcraft 3!

Yeah for some reason this happens. Just open the model you created with Retera's Model Studio and save it. RMS does some weird magic that fixes any model corruptions. Don't ask me how, just bless @Retera

My model's animations are super jank!
In the Neodex menu you can tinker around with how it imports animations. My best advice would be to slap all the buttons in Neodex > Animation Tools to see if it fixes it. Jank / low fps animations can be fixed by setting the controllers Neodex uses to Linear

upload_2021-1-26_10-22-19.png
 

Attachments

  • upload_2021-1-26_10-1-34.png
    upload_2021-1-26_10-1-34.png
    46.7 KB · Views: 66
  • upload_2021-1-26_10-7-0.png
    upload_2021-1-26_10-7-0.png
    20.7 KB · Views: 62
  • upload_2021-1-26_10-11-55.png
    upload_2021-1-26_10-11-55.png
    33.1 KB · Views: 63
Last edited by a moderator:
Level 12
Joined
Oct 10, 2009
Messages
438
Hi, I've been trying to use your tutorial and it worked pretty well but after exporting all of the animations look like the picture I've attached. The bones are in the right positions but I think there might be a skinweight issue. Can you help me? Thanks!View attachment 390171

Is that the HOTS Deathwing? Yeah, some of the newer models don't export well with Tyler's exporter. And I'm not a modelling wizard enough to really know how to fix it.

What I've done to fix some weird animation weights before is:
My model's animations are super jank!
In the Neodex menu you can tinker around with how it imports animations. My best advice would be to slap all the buttons in Neodex > Animation Tools to see if it fixes it. Jank / low fps animations can be fixed by setting the controllers Neodex uses to Linear

And in the case of the one Defiler model I use, I had to completely rebone and reanimate him myself to fix the problem.
 
Is that the HOTS Deathwing? Yeah, some of the newer models don't export well with Tyler's exporter. And I'm not a modelling wizard enough to really know how to fix it.

What I've done to fix some weird animation weights before is:


And in the case of the one Defiler model I use, I had to completely rebone and reanimate him myself to fix the problem.
Yeah, it is the HoTS Deathwing. I've been having trouble with every model so far. This is the closest I've gotten to a clean model, though! I may just end up reassigning the matrix manually for each bone. Thanks for the tips! I will try them out :)
 
Is there no alternative method to 3DS Max?
While this is probably the most reliable method there is also a very good blender m3 addon and there is also an excellent mdl exporter by @twilac. You should be able to port sc2 models to wc3 using that method, too.
 
Level 10
Joined
Nov 9, 2020
Messages
23
Top