wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > MDL Editing
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 12-21-2006, 06:17 AM   #1
Gerlif
>:)
 
Gerlif's Avatar
 
Join Date: Oct 2006
Posts: 51

Submissions (3)

Gerlif will become famous soon enough (34)Gerlif will become famous soon enough (34)

Send a message via MSN to Gerlif
Default How to edit models with "Mago's model editor"

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: jpg 1.jpg (82.7 KB, 1032 views)
File Type: jpg 2.jpg (77.5 KB, 896 views)
File Type: jpg 3.jpg (96.6 KB, 811 views)
File Type: jpg 4.jpg (89.7 KB, 955 views)
File Type: jpg 5.jpg (62.3 KB, 856 views)
File Type: jpg 6.jpg (73.1 KB, 791 views)
File Type: jpg 7.jpg (89.8 KB, 772 views)
File Type: jpg 8.jpg (84.1 KB, 761 views)
File Type: jpg 9.jpg (67.9 KB, 841 views)
File Type: jpg 10.jpg (75.6 KB, 731 views)
File Type: jpg 11.jpg (88.5 KB, 716 views)
File Type: jpg 12.jpg (74.6 KB, 709 views)
File Type: jpg 13.jpg (83.8 KB, 701 views)
File Type: jpg 14.jpg (108.1 KB, 729 views)
File Type: jpg 15.jpg (68.4 KB, 705 views)
File Type: jpg 16.jpg (64.2 KB, 701 views)
File Type: jpg 17.jpg (81.9 KB, 714 views)
File Type: jpg 18.jpg (106.1 KB, 858 views)
__________________

Last edited by Gerlif : 12-30-2006 at 08:01 PM.
Gerlif is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 12-21-2006, 06:41 PM   #2
slipknot_92
User
 
slipknot_92's Avatar
 
Join Date: Nov 2006
Posts: 21

Submissions (4)

slipknot_92 has little to show at this moment (5)

Default

you have almost copied my tutorial =(
I think you should look if the tutorial alread exist next time.
__________________
slipknot_92 is offline   Reply With Quote
Old 12-21-2006, 07:07 PM   #3
ragingspeedhorn
I MUST BREAK YOU
 
ragingspeedhorn's Avatar


Official Map Reviewer
 
Join Date: May 2005
Posts: 1,237

Submissions (10)

ragingspeedhorn is a jewel in the rough (211)ragingspeedhorn is a jewel in the rough (211)ragingspeedhorn is a jewel in the rough (211)ragingspeedhorn is a jewel in the rough (211)

Approved Map: Dodge The Wisp Wheels

Send a message via MSN to ragingspeedhorn
Default

Please link us to your tutorial since it does not exist on this site (atleast not in your submissions list).
ragingspeedhorn is offline   Reply With Quote
Old 12-21-2006, 07:17 PM   #4
kebabmeat
Cowmooflage
 
Join Date: Jul 2006
Posts: 435

Submissions (31)

kebabmeat will become famous soon enough (63)kebabmeat will become famous soon enough (63)kebabmeat will become famous soon enough (63)

Default

here it is: http://www.wc3campaigns.net/showthread.php?t=89388
__________________
kebabmeat is offline   Reply With Quote
Old 12-21-2006, 09:12 PM   #5
Gerlif
>:)
 
Gerlif's Avatar
 
Join Date: Oct 2006
Posts: 51

Submissions (3)

Gerlif will become famous soon enough (34)Gerlif will become famous soon enough (34)

Send a message via MSN to Gerlif
Default

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..
__________________
Gerlif is offline   Reply With Quote
Old 12-22-2006, 09:42 PM   #6
WILL THE ALMIGHTY
. . .
 
WILL THE ALMIGHTY's Avatar
 
Join Date: Oct 2006
Posts: 1,529

Submissions (21)

WILL THE ALMIGHTY is just really nice (284)WILL THE ALMIGHTY is just really nice (284)

Default

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.
__________________
Quote:
[21-10-00] WILLTHEALMIGHTY: Ok I have this weird sound upstairs... BRB gotta go check it out.
[21-10-09] Ash: WILLTHEALMIGHTY, WAIT
[21-10-16] Ash: WILLTHEALMIGHTY, IT IS NOT SAFE OUT THERE, TAKE THIS!
[21-10-16] Ash gives WILL a kitten.
WILL THE ALMIGHTY is offline   Reply With Quote
Old 12-30-2006, 02:13 PM   #7
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

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.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 12-30-2006, 08:02 PM   #8
Gerlif
>:)
 
Gerlif's Avatar
 
Join Date: Oct 2006
Posts: 51

Submissions (3)

Gerlif will become famous soon enough (34)Gerlif will become famous soon enough (34)

Send a message via MSN to Gerlif
Default

Done...
__________________
Gerlif is offline   Reply With Quote
Old 01-04-2007, 08:25 PM   #9
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

It's quite similar to the other tutorial, but I approve.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 01-07-2007, 10:03 PM   #10
Hydrolisk
User
 
Join Date: Mar 2006
Posts: 321

Submissions (1)

Hydrolisk is on a distinguished road (11)

Default

I like it, mostly for the portrait part though! Now I can fix some of my retarded models so they have good portraits.
Hydrolisk is offline   Reply With Quote
Old 01-23-2007, 10:54 AM   #11
Nu'Rah
User
 
Nu'Rah's Avatar
 
Join Date: Jan 2007
Posts: 6

Nu'Rah has little to show at this moment (0)

Send a message via MSN to Nu'Rah
Default

Thank you for this turtorial!
I had the version 1.02 and there was no working model editor !!!
__________________

Nu'Rah is offline   Reply With Quote
Old 04-07-2007, 07:25 PM   #12
daweed
User
 
daweed's Avatar
 
Join Date: Mar 2007
Posts: 5

daweed has little to show at this moment (0)

Send a message via AIM to daweed
Default but but but but but

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?
daweed is offline   Reply With Quote
Old 09-15-2007, 04:47 PM   #13
nickinese
User
 
Join Date: Jul 2007
Posts: 13

nickinese has little to show at this moment (0)

Default

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.
nickinese is offline   Reply With Quote
Old 04-12-2008, 04:34 AM   #14
JetFangInferno
I Break Chopsticks
 
JetFangInferno's Avatar


Project Member: PoC
 
Join Date: Feb 2004
Posts: 830

Submissions (71)

JetFangInferno is a glorious beacon of light (473)JetFangInferno is a glorious beacon of light (473)JetFangInferno is a glorious beacon of light (473)JetFangInferno is a glorious beacon of light (473)

Default

someone should elaborate on this to include rotations and translations.
__________________
"My mom never saw the irony of calling me a son of a beotch"
Rep me if u like my sig. Rep me again if you like my models. Rep me again if you like me :D
JetFangInferno is offline   Reply With Quote
Old 06-11-2008, 11:30 AM   #15
PotatoPeeler
User
 
Join Date: Aug 2007
Posts: 66

PotatoPeeler has little to show at this moment (4)

Default

link dun work
PotatoPeeler is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 05:03 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services