HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to edit models with "Mago's model editor"

12-21-2006, 06:17 AM#1
Gerlif
How to edit models with "Mago's model editor"

This tutorial is about basic editing a model in Mango's model editor.

Download the editor here:
http://magos.thejefffiles.com/War3ModelEditor/

Opening a model

Zoom (requires log in)
When you start the program select "Windows > Mpq Browser"

Zoom (requires log in)
Then click "File > War3.mpq" to open the Warcraft 3 mpq file. (Wich contains Warcraft 3 models/skins)

Zoom (requires log in)
Now you can select wich model you want to edit!
Lets just start whit an easy one; the sheep model.

Now you can view the model as in "Warcraft 3 Viewer" and play its animations.

Editing a model

Zoom (requires log in)
Now we are going to edit the model, and we need to open the model editor.
Select "Windows > Model Editor".

Zoom (requires log in)
This may looks a bit confusing, but dont fear!
Now click the "+X/Z" window, and zoom in (scroll on mouse) on the sheeps ear.

Zoom (requires log in)
Select the 4 red dots (they are turning green when selected, look at the image).

Zoom (requires log in)
Select "Transformations > Scaling". Then set X, Y, and Z in "Scaling" (not the pivot points) to 0.
This will hide the ear in the model, so the ear will disapear.
You can fill other values in to the X, Y and Z.
X= Forward/Backward
Y= Left/Right
Z= Up/Down

So if the Z where 0.9 (and the other fields where 1) the selected points will get moved a little bit down, etc.. (remember when all fields are 1, the point will stay where it are).
Lets try it here.

Zoom (requires log in)
Here you can see that i have moved some points abit.
(After you finished moving some points, be sure to unselect them before selecting some new. You can unselect them by clicking "Selection > Select None")

Zoom (requires log in)
And heres how the models look with the new points!

Saving a model

Zoom (requires log in)
To save a model is pretty easy, just select "File > Save As" (Remember to write .mdx after your filename!!).
But, what if we want the model to use a custom skin?

Zoom (requires log in)
First we'll need to open the Texture Manager.. "Windows > Texture Manager".

Zoom (requires log in)
Now select all textures you want replaced (in this case theres only one, the "Textures/SheepA.blp") and remove them/it.

Zoom (requires log in)
Now, right click and chose "Import" to import your custom skin.

Zoom (requires log in)
The model should disapear now.
Then select "Windows > Material Manager".

Zoom (requires log in)
Double click the file in window "1", a new window will open (window "2"), then double click the file in window "2".
Another new window will open (yep, you guessed it, window "3").
Here you just change the "None" dropdown to whatever your skin file is called. Then click "Ok" sometimes and your done!

Portrait Camera

If you are editing the skin on a model, with an extra "portrait" model, and you dont want to reskin the portrait model too, then just follow these easy steps!
There are 2 ways to do it..
An easy way, and a hard one.. (just take the easy one :P)

Easy way

Zoom (requires log in)
Find a nice view of your model.
Then select "Windows > Camera Manager".
Right click and select "Create new Camera from current view".
Just name the camrea "Camera01" or something..

Hard way... (just so you know it..)

Zoom (requires log in)
First you will need to open your model in Mango's model editor.
Then save it as an .mdl file by writing .mdl after your filename when saving it.

Zoom (requires log in)
Now, open your .mdl file in notepad.
At the end of the text file, insert this little code:

Code:
Camera "Camera01" {
   Position { 83.6731, 28.5186, 121.595 },
   Translation 6 {
      DontInterp,
      260000: { 0, 0, 0 },
      263600: { 0, 0, 0 },
      263633: { 0, 0, 0 },
      266667: { 0, 0, 0 },
      273333: { 0, 0, 0 },
      273367: { 0, 0, 0 },
   }
   Rotation 6 {
      DontInterp,
      260000: 0,
      263600: 0,
      263633: 0,
      266667: 0,
      273333: 0,
      273367: 0,
   }
   FieldOfView 0.785398,
   FarClip 1000,
   NearClip 8,
   Target {
      Position { X, Y, Z },
      Translation 6 {
         DontInterp,
         260000: { 0, 0, 0 },
         263600: { 0, 0, 0 },
         263633: { 0, 0, 0 },
         266667: { 0, 0, 0 },
         273333: { 0, 0, 0 },
         273367: { 0, 0, 0 },
      }
   }
}

Replace the X, Z, and Y with values.. These values will change the camera position. (You can view the camera in Warcraft 3 Viewer, just enable "View > Cameras").

Done!


Hope you learned something about editing a model (and more) :)

By Gerlif
Attached Images
File type: jpg1.jpg (82.7 KB)
File type: jpg2.jpg (77.5 KB)
File type: jpg3.jpg (96.6 KB)
File type: jpg4.jpg (89.7 KB)
File type: jpg5.jpg (62.3 KB)
File type: jpg6.jpg (73.1 KB)
File type: jpg7.jpg (89.8 KB)
File type: jpg8.jpg (84.1 KB)
File type: jpg9.jpg (67.9 KB)
File type: jpg10.jpg (75.6 KB)
File type: jpg11.jpg (88.5 KB)
File type: jpg12.jpg (74.6 KB)
File type: jpg13.jpg (83.8 KB)
File type: jpg14.jpg (108.1 KB)
File type: jpg15.jpg (68.4 KB)
File type: jpg16.jpg (64.2 KB)
File type: jpg17.jpg (81.9 KB)
File type: jpg18.jpg (106.1 KB)
12-21-2006, 06:41 PM#2
slipknot_92
you have almost copied my tutorial =(
I think you should look if the tutorial alread exist next time.
12-21-2006, 07:07 PM#3
ragingspeedhorn
Please link us to your tutorial since it does not exist on this site (atleast not in your submissions list).
12-21-2006, 07:17 PM#4
kebabmeat
here it is: http://www.wc3campaigns.net/showthread.php?t=89388
12-21-2006, 09:12 PM#5
Gerlif
sorry about that, just though that i would add some more about cameras and made it easier to understand... also when i used the program first time, lots of thing i didnt knew, and that was f***ing it up for me, and i could have avoided it if i knew etc, that i should unselect all before selecting new, and what the Z X and Y was..
12-22-2006, 09:42 PM#6
WILL THE ALMIGHTY
Thank you very much!

Not for the tutorial, but for letting me know the latest version of War3modeleditor had a working model editor, still, good tutorial.
12-30-2006, 02:13 PM#7
PitzerMike
I don't know if this is worth a tutorial.
You'd have to attach the images to your post instead of linking to offsite images anyway, in order to get approval.
12-30-2006, 08:02 PM#8
Gerlif
Done...
01-04-2007, 08:25 PM#9
PitzerMike
It's quite similar to the other tutorial, but I approve.
01-07-2007, 10:03 PM#10
Hydrolisk
I like it, mostly for the portrait part though! Now I can fix some of my retarded models so they have good portraits.
01-23-2007, 10:54 AM#11
Nu'Rah
Thank you for this turtorial!
I had the version 1.02 and there was no working model editor !!!
04-07-2007, 07:25 PM#12
daweed
ummm well u know ahh when i save the model and when i imported in into WE it dont work, the WE says that it could not read the model


how i fix that problem?
09-15-2007, 04:47 PM#13
nickinese
To get the editor to find the model, u have to save, then close the editor, (after importing) then just reopen and it should have it.

Also, u have to get rid of the war3mapImported\ to get it to read it right.
04-12-2008, 04:34 AM#14
JetFangInferno
someone should elaborate on this to include rotations and translations.
06-11-2008, 11:30 AM#15
PotatoPeeler
link dun work