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 > Modeling Tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-08-2008, 04:17 AM   #1
fabioz
User
 
fabioz's Avatar
 
Join Date: Sep 2007
Posts: 9

Submissions (1)

fabioz will become famous soon enough (26)

Default Scratch-Made Weapon Attachments with Particle Emitters

Scratch-Made Weapon Attachments with Particle Emitters
By: Fabioz (U.S. East)

Introduction:
Today we are going to make a weapon that will be attached to a unit. The model that we are going to make is going to be completly from scratch. We are going to use only in-game textures. The weapon will also have a particle emitter to show "fire" or "blue flames". Neat!


Tools required:

Getting to Know the Vertex Modifier:

Selection:
  • Select: When highlighted, any points you select will light up, and will be modified. But, if you select new points, these points will be unselected.
  • Add: When highlighted, any points you select will light up, and will be modified. But, if you select new points, the new points and the old points will all be slected.
  • Deselct: When highlighted, any points you select will be unselected. But not any of the other already selected points.

Transformations:
  • Move: When highlighted, any points selected will translate.
  • Rotate: When highlighted, any points selected will rotate around the center of mass.
  • Scale: When highlighted, any points selected will shrink or grow around the center of mass.
  • Extrude: When highlighted, any points selected will be cloned in the same position as the older ones, but translated to a new position. This is very useful.

Other Useful Things:
  • X: When highlighted, any points will not be affected in the X axis, during a transformation.
  • Y: When highlighted, any points will not be affected in the Y axis, during a transformation.
  • Z: When highlighted, any points will not be affected in the Z axis, during a transformation.



Making Your Model:
  1. Open up your Vertex Modifier
  2. You should see three blank "viewports"
  3. Go to "File" and select "Open". Find where you saved the Primitives.
  4. Open one of the primitives that you want to use. I will be using a cube to create a sword.
  5. Let us save the primitive. I named mine "Sword". Your screen should look a bit like this:
    Click image for larger version

Name:	CubeVertexModify.jpg
Views:	271
Size:	66.8 KB
ID:	33800



Transforming the Model:
  1. So the sword will be facing the right way when attached to a unit, the weapon should face upright in the top right viewport.
  2. The part of the weapon that will be in the unit's hand, should be right on the origin. (very middle)
  3. For my sword, I first used the rotate tool to make the sword turn about 45 degrees. So the sides will be sharp
  4. Then I used the scale tool and made my hilt (cube on the origin) long and skinny; press in X, Y, or Z to make it long, but not thick.
  5. Next, I used the extrude tool to make the hilt extend into the other parts of the sword.
  6. That is how I used the tools, there is no need for me to explain how I got to the finished product. All you have to do is play around with the tools, and eventually you will have a weapon. This is what I ended up with:
    Click image for larger version

Name:	SwordVertexModify-1.jpg
Views:	321
Size:	73.6 KB
ID:	33801



Adding Texture to Your Weapon:
  1. Open up your War3 Image Extractor II
  2. We are going to use in-game textures, because, most people don't like to mess with out of game textures. So, find a texture that you want use for your new weapon model.
  3. I found the captain texture in the file: "Textures" and the picture name was: "DungeonDoodad0.blp". Remember where you found your texture! Write it down! Mine is "Texture\DungeonDoodad0.blp".
  4. Once you find a good texture, right click the file and save it. Save it somewhere you will remember. Here is a screenshot:
    Click image for larger version

Name:	imageextractnewsword.jpg
Views:	205
Size:	177.0 KB
ID:	33802
  5. Go back to Vertex Modifier and open the weapon you want to texture.
  6. First, go to "tools" and select "UV Mapping". Click "Load Image" and load the texture that you saved. Exit out of that window and select your entire weapon, so each vertex (point) is lighted.
  7. Go back into the UV mapping window. In the drop-down box, select how you want your model to face while texturing it. Then click "Remap".
  8. Edit the points so they surround what you want to be on the model. I ended up with this:
    Click image for larger version

Name:	NewSwordUVMAP.jpg
Views:	225
Size:	184.9 KB
ID:	33803
  9. Now, go to Notepad and open your model. You might have to change the type of files to "All Files".
  10. Go to textures and there should be a part that says "Image", and after that it says "Textures\white.blp". When typing in the file, use "\" not "/"!
  11. Change that to the name of the texture you used. Remember when I said to remember this, and to write it down? Here is what it looks like, the highlighted part is what you change.
    Click image for larger version

Name:	NotepadNEWSWORD.jpg
Views:	95
Size:	67.8 KB
ID:	33809
  12. Open War3 Model Editor and open your model. Now look at your beautiful weapon... ahh, so pretty. But, it can be even better!
    Click image for larger version

Name:	TexturedSword.jpg
Views:	259
Size:	39.5 KB
ID:	33804


    !Note!: Before adding the particle emitters, you may want to test your weapon in the World Editor to make sure that it is "to scale". Make sure that it isn't too big or too small for the units.
    If it is too big, or too small, all you have to do is use the scale tool in the Vertex Modifier. A sword from 70~90 units from the origin is all right.


Adding Particle Emitters:
  1. Now that we have our weapon, let us make it into a fire sword, or maybe a water sword! Don't know what I mean? You'll soon find out.
  2. I will be using 1 particle emitters. Go to "Windows" and select "Node Manager". You should see a blank screen with "Box01" at the top.
  3. Right-click anywhere in the screen, but not on the word object "Box01" and select "Create Particle Emitter 2" Remember to select the one that says "2"!
  4. Now, go back to the Vertex Modifier. Use your mouse to hover over the place you want your particle emitter, look at the bottom left part of the screen and write down the coordnates.
  5. Go back to War3 Model Editor, right-click one of the particle emitters and select "Edit Node" change the name if you want. (to organize)
  6. Change the "Pivot Points" to the coordinates you wrote down. Do this for This is what I have:
    Click image for larger version

Name:	nodemanager2.jpg
Views:	86
Size:	59.6 KB
ID:	33805
  7. Now that you have specified where you want your emitter, we are going to choose what our emitter looks like.
  8. Open up the "MPQ Browser" find a texture that you like. I would use SingleCloud.blp, because that is the most basic particle emitter that can work for pretty much everything. SingleCloud.blp is in the file "Textures".
  9. Right-click your texture and select "Use as Texture" You can use more that one texture.
  10. Exit out of the "MPQ Browser" and go back to the "Node Manager"
  11. Double-click your emitter. A screen like this should show up:
    Click image for larger version

Name:	PaticleEmitter1.jpg
Views:	66
Size:	145.9 KB
ID:	33806
  12. This is what it all means:
    • Visibility: 0 = Not Visible; 1-Infinity = Visible. Usually always set to 1. 2 does the same thing as 3, etc.
    • Emission Rate: How many particles are released per second.
    • Speed: How many units per second the particles move
    • Variation: This varies the speed you have set. So if you set the speed to 30 and the variation to 20, each particle will travel at a speed between 10 and 50.
    • Latitude: This one is really neat! The measurments for this variable is degrees. 0 means all particles will travel up. If set on 360 particles will start from the middle and travel out in any direction.
    • Width: This is how long you want your particle emitter.
    • Length: This is how thick you want your particle emitter.
      Note: Magos mixed width and length.
    • Gravity: This is how much gravity will play a part in your emitter. Setting this to a positive number will make the particles go down, while a negative number will make it go up.
    • Texture ID: This specifies the texture that is used as the particles.
    • Filter Mode: This changes the art of the texture, as much as I could figure out. This is almost always set to "Additive".
    • Segment 1: This is not seen. Unless "Time" is set to a different variable.
    • Segment 2: This is seen first (or second). This color mixes with segment 1 (If time is set correctly)
    • Segment 3: This is seen last, this color mixes with segment 2.
    • Alpha (0 - 255): This is how much of this emitter is visible. 0 = Invisible while 255 = completely visible.
    • Scale: This is the size of the particle.
    • Head (Life Span): This is how long you can see the head part of the particle.
    • Head (Decay): This is when the particle begins to fade (decay).
    • Tail (Life Span): This sets how long the tail can be seen.
    • Tail (Decay): This is the time when the particle begins to fade.
    • Rows: This sets how many rows of particles are emitted. I do not recomend changing this. It will look boxy if you do.
    • Columns: This sets how many columns of particles are emitted. I do not recomend changing this. It will look boxy if you do.
    • Life Span: This is how long (in seconds) one particle takes to disappear.
    • Tail Length: I did not notice any changes when editing this variable.
    • Time: This is the amount of time each segment is to be seen. This allows segment one to be seen, if you set it to one.
    • Flags:
      • Unshaded: If checked, particles will not be affected by lighting.
      • Unfogged: If checked, paticles will not be affected by fog.
      • Alpha Key: I do not notice any changes. Do not check
      • Line Emitter: Whether or not particles move in three directions, or two.
      • Sort Primitives Far Z: Keeps particles "in order". Keep this checked
      • Model Space: Whether or not particles move with the emitter.
      • XY Quad: This makes it so the emitter can only be seen from the top, in XY coordinates; not XYZ coordinates
      • Squirt: I do not notice any changes.
      • Head: This needs to be checked so people can see the emitter.
      • Tail: I do not notice any changes. I'm guessing that this shows the tail. I have yet to figure out what the tail is though.



    If anyone could help me out with some of these, help is appreciated.


  13. There are a lot of sections to fill out, so I will show you the basic fire particle emitter settings:
    • Set the Visibility to 1
    • Set the Emission Rate to 100~200
    • Set the Speed to 30~50
    • Set the Variation to 0.02~0.10
    • Set the Latitude to 0
    • Set the Width to how thick you want it, mine is 80.
    • Set the Length to how long you want it, mine is 10.
    • Set the Gravity to 0
    • Set the Texture to the texture you want to use, min is: Textures\CloudSingle.blp
    • Set the Filter Mode to Additive
    • Set the Segment 1 color to dark yellow
    • Set the Segment 2 color to red
    • Set the Segment 3 color to dark red
    • Set all the Segment Alpha values to 255
    • Set the Segment Scaling values to 5~30
    • Set all the Start and End to 0
    • Set the rest of the Repeat to 1
    • Set the Rows to 1
    • Set the Columns to 1
    • Set the Life Span to 1
    • Set the Tail Length to 1
    • Set the Priority Plane to 0
    • Set the Replaceable ID to 0
    • Set the Time to 0
    • Check Flags: Unshaded, Sort Primitives Far Z, and Head
    Here is a filled out Particle Emitter Node:
    Click image for larger version

Name:	Nodeedit.jpg
Views:	81
Size:	152.0 KB
ID:	33807
    And this is what it looks like:
    Click image for larger version

Name:	FireSword-1.jpg
Views:	196
Size:	48.6 KB
ID:	33808
    The possibilities are endless. Just change the texture and/or the particle emitter.
    Click image for larger version

Name:	Watersword.jpg
Views:	155
Size:	50.3 KB
ID:	33815

    Let us go through the steps again:
    Step One:
    Click image for larger version

Name:	CubeVertexModify.jpg
Views:	271
Size:	66.8 KB
ID:	33800
    Step Two:
    Click image for larger version

Name:	SwordVertexModify-1.jpg
Views:	321
Size:	73.6 KB
ID:	33801
    Step Three:
    Click image for larger version

Name:	SwordTexture-1.jpg
Views:	57
Size:	154.4 KB
ID:	33810
    Step Four:
    Click image for larger version

Name:	UVMappingSword-1.jpg
Views:	109
Size:	190.1 KB
ID:	33811
    Step Five:
    Click image for larger version

Name:	NotepadSword-1.jpg
Views:	55
Size:	74.0 KB
ID:	33812
    Step Six:
    Click image for larger version

Name:	TexturedWeapon.jpg
Views:	151
Size:	50.7 KB
ID:	33813
    Step Seven:
    Click image for larger version

Name:	FireSword.jpg
Views:	186
Size:	53.2 KB
ID:	33814

Well, thats it! Have Fun!
Please post any mistakes or if you have any questions!
Below are two models that are shown in the tutorial.
Attached Files
File Type: mdl FireSword(mdl).mdl (7.1 KB, 48 views)
File Type: mdl WaterSword(mdl).mdl (7.0 KB, 41 views)

Last edited by fabioz : 05-13-2008 at 03:48 AM.
fabioz is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-19-2008, 11:25 PM   #2
PitzerMike
Alcopops
 
PitzerMike's Avatar


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

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

A real masterpiece.
Not only the content, also how you structured, formatted and presented it.
I'll give you some rep.

I'd approve it right away, but we still need to attach the images to your post instead of linking to photobucket first.
I hope you can do that, otherwise I'll have to find the time to do it sometime this week.

Anyway, great work.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 05-01-2008, 04:14 AM   #3
fabioz
User
 
fabioz's Avatar
 
Join Date: Sep 2007
Posts: 9

Submissions (1)

fabioz will become famous soon enough (26)

Default

Thank you. I will gladly do it, but could you just tell me how
fabioz is offline   Reply With Quote
Old 05-01-2008, 05:35 AM   #4
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,514

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

Go edit your post (with the edit button) then click "Go Advanced". Find the "Manage Attachments" button and upload your pictures through the uploader there.

Finally, replace the links in your tutorial with links to the new files you just uploaded.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 05-01-2008, 07:43 AM   #5
TEC_Ghost
User
 
TEC_Ghost's Avatar
 
Join Date: Jul 2002
Posts: 416

TEC_Ghost will become famous soon enough (65)TEC_Ghost will become famous soon enough (65)TEC_Ghost will become famous soon enough (65)

Default

Very nice tut... here's how mine turned out!

Zoom (requires log in)

Zoom (requires log in)

Quote:
Originally Posted by fabioz
Very nice modeling and texturing. From what I can see, is that you made the width (not length, because magos messed up.) too small.

I made it kinda fat on purpose to fit the wc3 styling...here's a side shot :)

Zoom (requires log in)
Attached Images
File Type: jpg sword1.jpg (103.0 KB, 698 views)
File Type: jpg sword2.jpg (121.1 KB, 683 views)
File Type: jpg sword3.jpg (121.1 KB, 675 views)
__________________

Projects

Last edited by TEC_Ghost : 05-01-2008 at 10:51 PM.
TEC_Ghost is offline   Reply With Quote
Old 05-01-2008, 10:34 PM   #6
fabioz
User
 
fabioz's Avatar
 
Join Date: Sep 2007
Posts: 9

Submissions (1)

fabioz will become famous soon enough (26)

Default

Very nice modeling and texturing. From what I can see, is that you made the width (not length, because magos messed up.) too small.

>>Go edit your post (with the edit button) then click "Go Advanced". Find the "Manage Attachments" button and upload your pictures through the uploader there.

Finally, replace the links in your tutorial with links to the new files you just uploaded.

Wow... I really dont want to do that. Why is photobucket bad?

Ill eventually get to it...

Last edited by fabioz : 05-01-2008 at 10:36 PM.
fabioz is offline   Reply With Quote
Old 05-04-2008, 12:33 AM   #7
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,514

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

We don't like links to off-site stuff just because we like to have all the files and stuff like that in our database and also so the existence of the images isn't dependent on some other website.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 05-09-2008, 03:33 AM   #8
fabioz
User
 
fabioz's Avatar
 
Join Date: Sep 2007
Posts: 9

Submissions (1)

fabioz will become famous soon enough (26)

Default

Ok, I attached the images!

Didnt take as long as I thought.

I also up-dated some info on it (flags, emitter options, etc.)

Can't wait till its approved! =]
fabioz is offline   Reply With Quote
Old 05-12-2008, 12:56 PM   #9
PitzerMike
Alcopops
 
PitzerMike's Avatar


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

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

Neato!
I approve.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 05-12-2008, 11:44 PM   #10
TurtleGlove
User
 
TurtleGlove's Avatar
 
Join Date: Jul 2007
Posts: 26

TurtleGlove has little to show at this moment (0)

Default

And we all bowed down to its usefulness. Thanks.

Last edited by TurtleGlove : 05-12-2008 at 11:44 PM.
TurtleGlove is offline   Reply With Quote
Old 05-13-2008, 03:47 AM   #11
fabioz
User
 
fabioz's Avatar
 
Join Date: Sep 2007
Posts: 9

Submissions (1)

fabioz will become famous soon enough (26)

Default

How do you edit the "Description"?
fabioz is offline   Reply With Quote
Old 09-17-2008, 10:58 PM   #12
Tetsuoken
User
 
Join Date: Jan 2007
Posts: 2

Tetsuoken has little to show at this moment (0)

Default

When I try to add particles it doesn't work at all :(, I followed the tutorial exactly but nothing shows up at all
__________________

AKA Majin[HELL] (HiveWorkshop)
Tetsuoken is offline   Reply With Quote
Old 10-30-2008, 05:45 AM   #13
fabioz
User
 
fabioz's Avatar
 
Join Date: Sep 2007
Posts: 9

Submissions (1)

fabioz will become famous soon enough (26)

Default

Well, all I can think of is: just mess around with it. Thats how I learned what each thing did =P
fabioz is offline   Reply With Quote
Old 03-09-2009, 09:19 AM   #14
wraithseeker
User
 
Join Date: Feb 2009
Posts: 406

wraithseeker is on a distinguished road (17)

Default

Damn, I could only save it as a TGA image..!
wraithseeker is offline   Reply With Quote
Old 08-21-2009, 12:55 AM   #15
Vosty
User
 
Join Date: Aug 2009
Posts: 8

Vosty has little to show at this moment (0)

Default

"squirt" does not show up in magos, but caueses the particles to 'explode' outward at once, like and explosion.
__________________
Vosty 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 02:10 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

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