- Joined
- May 5, 2013
- Messages
- 20
Removing Hero Glow - The Easy Way
By Ulithium_Dragon
Overview
Difficulty
- 2/10 Easy difficulty
Tools Needed
- GIMP (Get the Latest Version)
- Or Photoshop, but this tutorial uses GIMP because it's free
- Warcraft 3 Viewer
- War3 Model Editor
- World Editor
What You're Expected To Already Know
- How to navigate folders and open files
- How to navigate program tabs and sub menus (for World Editor and War3 Model Editor)
- How to follow some simple directions without a picture (all but the most basic steps have pictures)
Contents
- Section 1: Introduction
- Section 2: Creating and Exporting the Blank Texture Using GIMP
- Section 3: Converting the .tga File to .blp Using Warcraft 3 Viewer
- Section 4: Replacing the Hero Glow Texture With Your New Transparent One
- Section 5: Importing the New Model Into World Edit and Setting It Up
- Section 6: Changing to the No Hero Glow Model
Section 1: Introduction
I decided to do this after reading this post which gives a link to this tutorial.
However, the method used is both complicated, and requires coding-esk editing of the .mdl file.
In this tutorial, I will show you how to create a simple "blank" texture with nothing but an
alpha (transparent) channel which we will use to replace the hero glow texture.
For purposes of this tutorial, I will be using the Priestess of the Moon model to demonstrate how to do this.
If you wish to use a base game model, you will have to extract it yourself.*
*There are plenty of tutorials available on how to do this, so I won't be going over it in this tutorial!
Here is the model with the Hero Glow:
At the end of this tutorial, the model will look like this:
*If you want to just use the transparency texture file I made, you can download it at the bottom of this post and skip to Section 3.
Section 2: Creating and Exporting the Blank Texture Using GIMP
By this point you should already have GIMP installed. If you don't then you can download it here.
Section 2.1: Creating the Texture
Open up GIMP and click File -> New.
In the new window, expand Advanced Options, and change the drop down menu for Fill with to Transparency. A new window will pop up with the settings we used.*
*If you already had a file open in GIMP (like what's seen in the following video clip). If you didn't have any files open in GIMP, it will use the main GIMP window that opens when GIMP does. Both are the same.
Also, any size texture should work fine for this, but to avoid any issues I went with the standard 64x64.
Section 2.2: Exporting the Texture
Now it's time to export the new texture. Click File -> Export.*
*Make sure you have the correct GIMP window Selected!
A new window will pop up. Save the file in a format recognized by Warcraft 3 Viewer (I just used .tga). The default Export setting should be fine.
Section 3: Converting the .tga File to .blp Using Warcraft 3 Viewer
Now we are going to convert the texture we just exported from a .tga file to a .blp file. While World Editor supposedly does support .tga files, we're going to be on the safe side here and convert our texture to a .blp file (a format created for and used exclusively by Warcraft 3).
Open up Warcraft 3 viewer (download link here), and in the Convert Files dropdown menu, select BMP, TGA, or JPG -> BLP (the second one from the top). Or just press CTRL+V (Windows).
A new window will pop up. Open up the file location of where you exported your .tga texture, select it and hit Open
In the next window, make sure your file now has a .blp file extension (this should be done automatically), then hit Save.
A new window will pop up, just keep the default settings the same and hit Ok.
When it's finished being converted, one final window will pop up saying it was successful. Just hit Ok to close it.
*Note that your model DOES NOT need to be open to convert files this way, mine was just still loaded when I recorded this!
Section 4: Replacing the Hero Glow Texture With Your New Transparent One
At last it's time to get rid of that annoying hero glow! Open up your desired model using War3 Model Editor (download link here).
Section 4.1: Setting up War3 Model Editor
You now need to open up two extra windows from within War3 Model Editor. Select the Windows drop down menu, and then select both Texture Manager and Material Manager.
Section 4.2: Importing the Transparent Texture and Replacing the Hero Glow
Right click anywhere on the Texture Manager window and select Import. Navigate to where you saved your transparency .blp texture (it will have been saved to the same folder as your .tga texture), select it and hit Open.
Now double click on the material you need to change in the Material Manager window (you're looking for any material layer using Replacable ID 2. In most cases a model won't have too many materials or materials layers, so just checking them all is easiest).
A new window will pop up. Double click on the material sub node that uses Replacable ID 2 and another new window will pop up called Material Layer.
In the Material Layer window, select the drop down menu under the Texture ID section, and select your transparent texture. Now hit Ok to close the Material Layer window, then Ok again to close the Material window. If you did this correctly, the hero glow should now be gone!
Now save the model with File -> Save if you wish to overwrite the old model, or File -> Save As if you don't want to overwrite the model (make sure to give it a different name).
Section 4.3: Saving a New Portrait Model (Optional)
*This part is only necessary if you saved your model under a new name, and if your model has a portrait model included with it!
Open up the original portrait model using War3 Model Editor, then select File -> Save As and give it the same name as your normal model file but with a _portrait suffix (this is NOT OPTIONAL - it's just how the game searches for portrait models for the unit models).
Note that in some rare cases (such as the Priestess of the Moon model), the hero's weapons have a hero glow effect, AND are within the camera view of the portrait model. If this is the case and you want the hero glow removed from the weapons in the portrait, too, then simply re-do Section 4.2 again with the hero portrait model.
Section 5: Importing the New Model Into World Edit and Setting It Up
Now that we have a working model with no hero glow, let's get it to work in World Edit! So open up World Edit and select your desired map.
Section 5.1: Importing the Models and New Texture
Open up the Import Manager. This can be done by using the icon on the top bar (the second one in from the right that as a little file icon), selecting Module drop down menu, then selecting Import Manager, or by simply hitting F12 (Windows).
Once open, right click anywhere on the blank space and select Import File....
A new window will pop up. Navigate to where you saved your model file and select Open. You will need to do this for the transparency texture file, and the portrait model file.
Section 5.2: Editing the File Path for the Imported Files
By default, all imported files are given the file path war3mapImported\. Depending on the what the model/texture you're importing is used for, you may need to give it a different file path, but if I'm not sure, I just use a basic file path and remove the war3mapImported\ part.
Right click on each of your imported files and select Modify File Properties..., then check the checkbox use custom path, and delete the war3mapImported\ part. When you're done, hit Ok. Do this for each file you imported!
*WARNING: If you chose to simply overwrite the original model, then you will need to input the proper file path that the original model used! For example, the Priestess of the Moon model uses the file path Units\NightElf\HeroMoonPriestess\.
Section 6: Changing to the No Hero Glow Model
*Before you start this part, you should save your map, close World Edit, restart it, and re-open your map. This is because World Edit seems to need to be restarted in order for it to recognize the new models and textures inside the editor (although they seem to appear just fine when using the "Test Map" button in World Edit).
I would guess it has something to do with World Edit finalizing or indexing the MPQ file when it's closed, but I'm not sure. Note that simply reloading the map doesn't work, you need to fully exit World Edit!
Now to tell the game to use the model without hero glow! For this tutorial, I will be replacing the normal Priestess of the Moon model with our new no hero glow version.
Open up the Object Editro. This can be done by hitting the icon in the top bar that looks like a little helmet, selecting Module drop down menu, then selecting Object Manager, or by simply hitting F6 (Windows).
Select the hero you wish to edit in the left pane of the Object Manager window, and in the right pane, double click on the line that says Art - Model File.
A new window will pop up named Edit Unit Value - Model. Check the selection circle next to Import:, then find your model in the drop down menu and select it. When you're done, hit Ok.
----
If you followed this tutorial properly, your new model should have been successfully imported with the hero glow removed:
I hope this tutorial was both helpful and informative!
If you have further questions or run into any problems, post a comment bellow, or send me a PM!
Attachments
-
Transparency.7z544 bytes · Views: 266
-
[00]_MoonPriestess_WithHeroGlow.gif224.4 KB · Views: 1,268
-
[01]_GIMP_MakeTransparentTexture.gif369.8 KB · Views: 1,256
-
[02]_GIMP_Export_P1.gif64.8 KB · Views: 1,287
-
[03]_GIMP_Export_P2.gif341.4 KB · Views: 1,441
-
[04]_Warcraft3Viewer_Convert_TGA_To_BLP.gif1.1 MB · Views: 2,067
-
[05]_War3ModelEditor_Import_Texture.gif782.4 KB · Views: 1,473
-
[06]_War3ModelEditor_Change_Texture_To_Transparency.gif718.4 KB · Views: 1,319
-
[07]_War3ModelEditor_Save_New_Portrait.gif1.1 MB · Views: 1,879
-
[08]_WorldEditor_Import_New_Files.gif1 MB · Views: 1,211
-
[09]_WorldEditor_Change_File_Path.gif463.1 KB · Views: 1,404
-
[10]_WorldEditor_Change_Model.gif867.5 KB · Views: 1,291
-
[11]_MoonPriestess_WithoutHeroGlow.gif194.5 KB · Views: 1,203
Last edited: