Modcraft - The community dedicated to quality WoW modding!

Content creation => Modelling and Animation => Tutorials => Topic started by: Met@ on June 21, 2016, 04:24:02 am

Title: [TUTORIAL:Tools] How to clone particles ?
Post by: Met@ on June 21, 2016, 04:24:02 am
In this tutorial I'll explain to you how to clone particles from a model to another one with the help of ParticleCloner, a tool made by Tigurius. This tool is old, so it doesn't work with Cata+ models since the structure of the m2's has changed. I didn't tried with spell models from Cata and up (only doodads or creatures), maybe it's different and it can work, but not sure.

EDIT : it can load WoD or Legion models, but it's pretty random, if the models are similar it can work, sometimes not, just do some tests and try.



What programs do we need ?



- ParticleCloner (http://www73.zippyshare.com/v/AaFg7xag/file.html)

- 010 editor (with m2 template)

What's the process ?



First, choose the particles you need in WowModelViewer on the model that you want.

For this tuto I choose particles from the spell Arcane_form_precast.m2 to put on 2 models, one without bones or animations, and one with both : misc_2h_pitchfork_a_01.m2 and sheep.m2 .

(https://media.giphy.com/media/xT8qAYMjz51LZuFryw/giphy.gif) (http://www.model-changing.net/uploads/monthly_2016_06/fork.jpg.588ed0975ab636a9857fd2a39484acff.jpg) (http://www.model-changing.net/uploads/monthly_2016_06/sheep.jpg.01ea1baaef0f9980ad40b2c299edf24d.jpg)

To make the transfert, select first the "destination" model, CTRL+left click to select the second "source" model and drag&drop on the application. (Always do backups if you did it in the wrong way, this program overwrite the original file ! )

(https://media.giphy.com/media/xT8qBnbh0IfQHxaYKc/giphy.gif)

When it's done, you'll have the particles at the same place of its original model.

(https://media.giphy.com/media/xT8qBdxBSKsF1twZ4A/giphy.gif) (https://media.giphy.com/media/3o72F06wt1zboWg0vu/giphy.gif)

 Now, you certainly want to move the particles to the right place.

Open the m2 with 010editor and load the M2 Template. Go to the end of the file at the line " struct Particle ". You'll have all the informations you need, the attached bones, coordinates, etc...

Particles have the bone from the original model, for a simple animation like this, there's only one bone. For this fire, there's three elements (flames, smoke and sparks), so there's 3 bones. I used it for a Sargeras model.

(http://www.model-changing.net/uploads/monthly_2016_06/book_fire.jpg.1f4ee535103b5897d65d0e6ea1277c53.jpg) (http://www.model-changing.net/uploads/monthly_2016_01/sargeras.thumb.gif.ea0e330de52b12e129bb05b00946ab7d.gif)

(http://www.model-changing.net/uploads/monthly_2016_01/help_particles.thumb.jpg.828192522532510824c24cc356b6f821.jpg)

You have to set the number of the bone where you want the particles to be. To move it to the right place, go to the " struct FloatVec3 pos " line. As you can see on the picture above, I modified the values on the x axis.

(http://www.model-changing.net/uploads/monthly_2016_06/particles_position.jpg.0811f6c284db63d1df26002a595d1c53.jpg)

You can change what you want to have the good coords. Just try and retry with the help of WMV to visualize the result. For the sheep, I set the particles on bone 3 who's attached to the head.

(http://www.model-changing.net/uploads/monthly_2016_06/particles_position_2.jpg.fa973f33696dc9380a4330160d76eb2c.jpg) (http://www.model-changing.net/uploads/monthly_2016_06/particles_position_3.jpg.229200febd9de0eb797531a343e92dfc.jpg)

This tool can copy the texture path of the BLPs used by the particles.

(http://www.model-changing.net/uploads/monthly_2016_06/sheep_texture.jpg.5a587e3376944c86f41fb34a1d212a24.jpg)

But when you'll go ingame to see if it works, you'll have little cubes instead of the texture. WMV can load them, but not WoW.

(http://www.model-changing.net/uploads/monthly_2016_06/particles_problem_2.jpg.cc4f6c7db9aa2e0b9af3444dd20f36f8.jpg)

Why ? Because the tool does some mess too. In the " struct VModelFileName " 1 & 2, you have random symbols at " struct filename texture > string value " . Delete all and reload the template, or save and close the model. Do it for each particle in your model.

(http://www.model-changing.net/uploads/monthly_2016_06/particles_problem.jpg.4528fd308a02cedae236b421772f3e10.jpg)

And it's finally done ! Good job, you can manage particles !

(https://media.giphy.com/media/3o72FjGbIXEpBjJtBK/giphy.gif)

PS : for unknown reasons, my fork is invisible ingame after I added the particles on it. Maybe because the model doesn't have enough "informations" in it because it's a little model, or because there's no bones in the original model. I don't know. Maybe one of you will find the solution ?
Title: Re: [TUTORIAL:Tools] [WotLk] How to clone particles ?
Post by: Uthil on June 21, 2016, 08:18:48 am
That gave me an idea for my project too. Thanks for tut mate.
Title: Re: [TUTORIAL:Tools] How to clone particles ?
Post by: IPEINA on December 30, 2016, 02:30:22 pm
THE  particlecloner  is "File has expired and does not exist anymore on this server"
Title: Re: [TUTORIAL:Tools] How to clone particles ?
Post by: inico on December 30, 2016, 05:13:24 pm
Quote from: "IPEINA"
THE  particlecloner  is "File has expired and does not exist anymore on this server"

Here you go:
https://www.mediafire.com/?6rey8d9mp5xpzx6 (https://www.mediafire.com/?6rey8d9mp5xpzx6" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL:Tools] How to clone particles ?
Post by: IPEINA on January 11, 2017, 02:34:18 pm
Only from large files into small file transfer?