1. Join Texturing Contest #30 now in a legendary battle of mythological creatures!
    Dismiss Notice
  2. The Aftermath has been revealed for the 19th Terraining Contest! Be sure to check out the Results and see what came out of it.
    Dismiss Notice
  3. Melee Mapping Contest #3 - Results are out! Congratulate the winners and check plenty of new 4v4 melee maps designed for this competition!
    Dismiss Notice
  4. The winners of our cinematic soundtrack competition have been decided! Step by the Music Contest #11 - Results to check the entries and congratulate the winners!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

Milkshape Attachment Modeling

Discussion in '3D Modeling Tutorials' started by HappyTauren, Feb 15, 2008.

  1. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,414
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87

    Milkshape Attachment Modeling


    By HappyTauren/TotallyAwesome

    Introduction


    Many have seen attachments models made by me and kept asking me how I do it. That is why I decided to write this tutorial. Keep in mind that the texturing part is not included in this tutorial, though I will show you how to unwrap your model here.


    Part one: Preparation


    1. What do you need?
    -Milkshape 3D, a low polygon modeler mainly made for Half Life, but has a proper exporter for mdx/mdl;
    -Guesst's ms3d exporter, which you unzip and put into ms3d directory;
    -Warcraft3 Viewer;
    -Some paint program , you can use either MSPaint, or download GIMP;
    -Very basic or no knowledge of milkshape 3D (in which case you have to figure some things out by yourself).

    2. Now that you are all set, lets start!


    Part two: Reference image


    1. Lets say you want to make a sword. First, you will have to draw it, like this:
    Start up paint, make a new bmp file, and modify attributes so that they match power of 2, meaning image resolution could be 128X512, 64X128 and so on, warcraft 3 resolutions. Click okay.
    attributes 1.jpg attributes 2.jpg

    2.Then, fill the image with dark blue colour (so you can see vertices). Then you will get something like this:
    blue screen.jpg

    3.After that has been made, pick up red colour and start drawing your sword!
    First you should draw an outline, which looks like this:
    sword drawing 2.jpg

    4.Then, as we know that swords are not really flat, you should make indents somewhere! Okay, the image is complete!
    sword drawing 3.jpg


    Part three: Modeling the mesh in Milkshape3D


    1.Open the milkshape. The only tools you will need for this are marked in RED, you only need "Vertex" and "Face" buttons. This is milkshape interface:
    ms3d1.jpg

    2.Now you have to use your reference picture. To do this, just right click on the first field and select "Choose background image". Then click the ">>" Button and find the image on your hard drive, in this case, "Sword.bmp" placed on desktop.
    ms3d2.jpg ms3d3.jpg

    3.You are all set! Now you an start creating your mesh. Use the "Vertex" tool (on the right panel) and start placing vertices on the "hot spots" What is a hot spot? It is a place where few edges collide, for example like in the picture, or when edge is curved too much (those green points are "hot spots". Make sure to use "wireframe overlay" view (right click > wireframe overlay).
    ms3d4.jpg ms3d5.jpg

    4.Now, when vertices are placed, you need to make faces on them. You do this by selecting three vertices, in counter-clockwise rotation. You will get something like this:
    ms3d6.jpg

    5.Now you have finished adding anything. Change background image to blank. Now select ALL indented vertices (the ones you placed on the inner red lines. Then look at the window on the right. Use move feature, locking all axis BUT "Y" (to lock an axis, just click its letter on the right panel, e.g "X","Y","Z")
    ms3d7.jpg

    6.You have got sword finished, but it is one sided. To make it have the other side as well, you must duplicate it (CTRL+D) and then go to Vertex > Mirror front-back. Now weld it (CTRL+W). After that, go to groups, click both groups and click regroup. Now rightclick and select "Smooth shaded". You will see your model actually has a fill. So the geometry of the model is actually complete!
    ms3d8.jpg

    7. Now you have to change material and texture coordinates. This will be easy, just go to "materials" tab on right panel and click new. Then click small blank button a little up it (the first one!) and find your Sword.bmp texture. Then select all (CTRL+A) and doubleclick this material. Material is created. Now just go to Window>Texture Coordinate Editor and select "front" in small box. Then click remap.You will notice that your model is a bit bigger than the wrap but use scaling to get it to the right place (untill red lines on texture and on the selection are even!). This is what should it look like:
    ms3d9.jpg
    Now exit texture coordinate editor and returns to ms3d. This is what it should look like:
    ms3d10.jpg

    8.Now the major thing: Make it usable in wc3! First set up rotation. To do this, click rotation tab on the right panel and you will see 3 values near the botton, x,y and z. Set X=-90,Y=90 and Z=0. Now click rotate two times (the button right those three). Now the model has correct facing.


    Part four: Exporting


    1.It is time to export your new model to wc3. Go to "File>Export>Wc3MDLX beta 10" and then choose a location where you want to save it (remember to put MODELNAME.mdl when you are choosing name!!).

    2. Now open this mdl in notepad, and search for "white.blp". Replace it with "Modelname.blp". Now you have to convert texture from ".bmp" to ".blp". To do this, use Warcraft3 Model Viewer and find button on the upper panel, right, that says something like "TGA>BLP", upside down. Click it. You will be prompted for quality settings, select 50, and it will say that you are missing alpha channel, asking you to add it, you say yes.

    3. Now your texture is exported. Rename it (if it is not already) MODELNAME.blp and put in same folder as model is. Then import both of them ingame and delete "war3mapimported\" off the texture's filename.

    4. Now, the only thing that the model lacks is a suitable texture. To read some tutorials, follow those links:
    -(THW) 2D Art Tutorials
    -(WC3C) 2D Art Tutorials (Skinning)
     
    Last edited: Jul 28, 2008
  2. operator

    operator

    Joined:
    Feb 9, 2006
    Messages:
    1,670
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Nice : ) *
     
  3. brad.dude03

    brad.dude03

    Joined:
    Mar 15, 2006
    Messages:
    9,267
    Resources:
    2
    Maps:
    1
    Tutorials:
    1
    Resources:
    2
    Operator lives. Sweet tutorial HT :p
     
  4. Dumbdumb36

    Dumbdumb36

    Joined:
    Jan 13, 2008
    Messages:
    172
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Nice ^^ I'm still a newb with milkshape
     
  5. ~Void~

    ~Void~

    Joined:
    Jul 1, 2007
    Messages:
    6,449
    Resources:
    14
    Icons:
    8
    Skins:
    2
    Tutorials:
    4
    Resources:
    14
    Good tutorial.

    [off topic]
    The sword hilt looks "obscene"
    Maybe it's just my twisted mind.
    [/off topic]
     
  6. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,414
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
    O NOES VOID FIGURED IT OUT1111
    yeah, pron out there :p
     
  7. blazing-inferno

    blazing-inferno

    Joined:
    Dec 29, 2006
    Messages:
    367
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    it works in game but for some reason the viewer doesn't detect the texture even when its changed in the mdl. eh... ill stick to 3d max. good tutorial though.
     
  8. Firelord213

    Firelord213

    Joined:
    Nov 4, 2006
    Messages:
    584
    Resources:
    4
    Models:
    1
    Icons:
    3
    Resources:
    4
    Pl0x explain the 6th part much more?Im stuck and cant do anything...I fail following it as it is at the moment.
     
    Last edited: Mar 1, 2008
  9. underscore

    underscore

    Joined:
    Mar 17, 2008
    Messages:
    150
    Resources:
    0
    Resources:
    0
    Well made tutorial, I always look at your models you know. HappyTauren!
     
  10. RedFuser

    RedFuser

    Joined:
    Jun 29, 2008
    Messages:
    16
    Resources:
    2
    Models:
    2
    Resources:
    2
    Perfect tut!!! +rep
     
  11. DragonElite

    DragonElite

    Joined:
    Jun 28, 2008
    Messages:
    22
    Resources:
    0
    Resources:
    0
    Hehe, Redfuser just made his second model thanks to this tutorial, I guess.
    But someone knows how to get 'adobe photoshop' free? because I don't have one.
    I can only make models but not texturing them... =/
     
  12. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,414
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
    [​IMG]
     
  13. Ralle

    Ralle

    Owner

    Joined:
    Oct 6, 2004
    Messages:
    11,139
    Resources:
    22
    Tools:
    3
    Maps:
    5
    Tutorials:
    14
    Resources:
    22
  14. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,414
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
  15. General Frank

    General Frank

    3D Modeling Moderator

    Joined:
    Nov 19, 2005
    Messages:
    4,788
    Resources:
    322
    Models:
    187
    Icons:
    126
    Packs:
    7
    Tutorials:
    2
    Resources:
    322
    Nice tutorial, very detailed and informative. I already practised the techniques described in it. Good work.
    [RAINBOW]~ Approved ~[/RAINBOW]
     
  16. deathchiken

    deathchiken

    Joined:
    Jul 21, 2008
    Messages:
    3
    Resources:
    0
    Resources:
    0
    there was no Wc3MDLX beta 10 under file>export, do u have to have the full milkshape, as in regestration? please help me.
     
  17. HappyTauren

    HappyTauren

    Joined:
    Nov 3, 2006
    Messages:
    8,414
    Resources:
    87
    Models:
    61
    Icons:
    23
    Packs:
    1
    Tutorials:
    2
    Resources:
    87
    You download guesst's exporter and put it into Milkshape 3D folder.
     
  18. skullzilla

    skullzilla

    Joined:
    Jul 1, 2008
    Messages:
    46
    Resources:
    0
    Resources:
    0
    How do you use more than one texture on a model with milkshape? I tried using 2 different materials but when i exported it only had textures 1 white.blp, i didn't see a place to put the second one.

    [nvm I figured it out]
    You just add a second texture in the mdl file and change the material id to reference the second texture.
    Code (Text):
    Textures 1 {
        Bitmap {
            Image "Textures\white.blp",
        }
    }
    becomes

    Code (Text):
    Textures 2 {
        Bitmap {
            Image "Textures\whatever.blp",
        }
           Bitmap {
            Image "Textures\yaddayadda.blp",
        }
    but then you have to change the materials part to match the texture..

    static TextureID 0,
    ...
    static TextureID 1,
     
  19. T3MPL4R

    T3MPL4R

    Joined:
    Sep 27, 2007
    Messages:
    85
    Resources:
    0
    Resources:
    0
    very well done tutorial and it looks very helpful although, how do you add COLOUR to the sword!?!?!?

    P.S why does the bottom of the handle look disturbing?! in the first picture o_O

    P.P.S why do does the bottom of the handle look even more disturbing when you put dots in them XD
     
  20. cool_is_i

    cool_is_i

    Joined:
    Oct 23, 2007
    Messages:
    505
    Resources:
    8
    Maps:
    7
    Tutorials:
    1
    Resources:
    8

    same here, can some 1 please send me a PM explaining how to do this?