Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, TedMar, AndrewAMD), 986 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: sword trails [Re: RJDL] #120170
05/19/07 13:33
05/19/07 13:33
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline
User
sheefo  Offline
User

Joined: Jul 2006
Posts: 783
London, UK

Re: sword trails [Re: sheefo] #120171
05/20/07 02:55
05/20/07 02:55
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
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?


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: sword trails [Re: Blink] #120172
05/23/07 06:01
05/23/07 06:01
Joined: Mar 2005
Posts: 527
Netherlands
RJDL Offline
Developer
RJDL  Offline
Developer

Joined: Mar 2005
Posts: 527
Netherlands
@sheefo: thank you very much! i'll surely use it

Re: sword trails [Re: RJDL] #120173
06/26/07 13:40
06/26/07 13:40
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
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?

Re: sword trails [Re: DavidLancaster] #120174
06/26/07 21:32
06/26/07 21:32
Joined: Feb 2006
Posts: 2,185
mpdeveloper_B Offline
Expert
mpdeveloper_B  Offline
Expert

Joined: Feb 2006
Posts: 2,185
same here david, the trail works nice, but it's not attached to the entity, it's halfway across the map.....


- aka Manslayer101
Re: sword trails [Re: mpdeveloper_B] #120175
06/26/07 23:17
06/26/07 23:17
Joined: May 2005
Posts: 83
Texas
mocosgames Offline OP
Junior Member
mocosgames  Offline OP
Junior Member

Joined: May 2005
Posts: 83
Texas
I figured out the problem. Instead of
trail1=ent_create("trail1mdl.mdl",my.pos,null);
use
trail1=ent_create("trail1mdl.mdl",nullvector,null);

Re: sword trails [Re: mocosgames] #120176
06/27/07 01:50
06/27/07 01:50
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
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!

Re: sword trails [Re: DavidLancaster] #120177
06/27/07 02:23
06/27/07 02:23
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
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...

Last edited by DavidLancaster; 06/27/07 02:29.
Page 2 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1