[3D Art] Crash Course On Ripping Sc2 Models

Level 11
Joined
Oct 10, 2009
Messages
431
The Programs You Will Need

- 3ds Studio Max ( I'm using the latest )
- Taylor Mouse's M3 Importer ( This is how we import sc2/hots stuff into 3ds max )
- Install by placing the script in C\Program Files\Autodesk\3ds Max 2020\scripts\Startup
- Neodex 2.7 ( Download link at the bottom )
- Starcraft 2 or Heroes of the Storm ( Or both! )
- Casc Viewer ( Extract Hots and Sc2 files )
- Retera's Model Studio ( Reforged Hack )

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... Annd 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 lets 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 lets 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.

Trouble shooting

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: 24
  • upload_2021-1-26_10-7-0.png
    upload_2021-1-26_10-7-0.png
    20.7 KB · Views: 23
  • upload_2021-1-26_10-11-55.png
    upload_2021-1-26_10-11-55.png
    33.1 KB · Views: 26
Last edited:
Top