sword trails

Posted By: mocosgames

sword trails - 03/30/07 03:19

I made a code that creates a real time trail behind objects such as swords. Its free to use for anything you want.



http://mocosgames.com/sword.zip
Posted By: Andvari

Re: sword trails - 03/30/07 04:06

man that's great! looks just as good as the "Ghost Trails" plugin for 3dsmax
Posted By: cartoon_baboon

Re: sword trails - 03/30/07 07:33

Thanks Mocosgames, this is extremely useful! Looks great!

cartoon_baboon
Posted By: frazzle

Re: sword trails - 03/30/07 13:46

Same here mocosgames, nice contribution !!
The effect looks oke but it's the effect itself that is important not the look, this can be changed or adapted via EP3

Cheers

Frazzle
Posted By: mocosgames

Re: sword trails - 03/30/07 21:13

Its not a particle effect, it uses a model. Just change the texture for trail.mdl if you want it to look different.
Posted By: mpdeveloper_B

Re: sword trails - 03/30/07 21:31

well well well, i and my friend were looking for this, very nice model deformation, and because it's a model, you can skin it to be waaaay different, good job
Posted By: mpdeveloper_A

Re: sword trails - 03/30/07 22:32

Yes we can really use this. Thank you very much. If we add this to our 3d beam sabers it will look great.
Posted By: Scorpion

Re: sword trails - 03/31/07 10:01

I ever wanted to make something like that, but had no idea hos to make it...thank you mocosgames, great contribution
Posted By: Blink

Re: sword trails - 04/01/07 01:58

awesome! i am going to try using it for a hammer weapon.
Posted By: RJDL

Re: sword trails - 05/19/07 11:35

this is excactly what i've been looking for, but the link seems to be expired.
could you please upload it again?
thank you in advance
Posted By: sheefo

Re: sword trails - 05/19/07 13:33

Try at http://www.coniserver.net/coni_users/web_users/pirvu/au/scripts/swordtrail.zip
Posted By: Blink

Re: sword trails - 05/20/07 02:55

noob question. i know how to use it with my weapon alone like the example, but how can i use it if i have a model and the model is a weapon? do the character using the weapon have to have a trail too, or can i just have the weapon use the code. i am not sure how to implement this for my use. can anyone help?
Posted By: RJDL

Re: sword trails - 05/23/07 06:01

@sheefo: thank you very much! i'll surely use it
Posted By: DavidLancaster

Re: sword trails - 06/26/07 13:40

This is a really good contribution! Thank you!

I've got a very weird problem, vec_to_mesh in my current project doesn't work On any model, it works but it deforms it so strangely and not to the coordinates I specify...Does any have any idea?
Posted By: mpdeveloper_B

Re: sword trails - 06/26/07 21:32

same here david, the trail works nice, but it's not attached to the entity, it's halfway across the map.....
Posted By: mocosgames

Re: sword trails - 06/26/07 23:17

I figured out the problem. Instead of
trail1=ent_create("trail1mdl.mdl",my.pos,null);
use
trail1=ent_create("trail1mdl.mdl",nullvector,null);
Posted By: DavidLancaster

Re: sword trails - 06/27/07 01:50

Thank you so much Mocosgames! I was running my brain crazy trying to figure it out. Is it a realtive/absolute coordinate issue? How'd you figure it out? Thanks again!
Posted By: DavidLancaster

Re: sword trails - 06/27/07 02:23

I don't know if you can help me here, the moment the weapon the streak is attached to, when it passes x coordinate 3700 (approx) the streak disappears, if I go back it appears again...Would you happen to have any insight into this? Thanks

Edit: I tried this:

vec_set(trail1.x,my.x);
vec_for_vertex(trailpos2.x,my,1); // vertex # for top of blade
vec_for_vertex(trailpos1.x,my,2); // vertex # for bottom of blade
vec_sub(trailpos2.x,my.x);
vec_sub(trailpos1.x,my.x);

And it kind works, stops the model disappearing, but then the interpolation code you implemented doesn't quite work the same, doesn't look as good...
© 2024 lite-C Forums