|
vec_for_vertex and frame animation
#226924
09/11/08 23:21
09/11/08 23:21
|
Joined: Aug 2006
Posts: 155
RyuMaster
OP
Member
|
OP
Member
Joined: Aug 2006
Posts: 155
|
Hi! You can find additional discussion on this matter in newbies forum if needed.
Now, I have robot model, which preforms frame ertex-based jump animation. I use vec_for_vertex to attach hand to robot.
vec_for_vertex is not being updated during frame animation at all. Like, vertex is not moving, but stays still. So hand is not being attached as well.
Is that true?
Is there a way to force-update it?
vector updates only if I use c_move or change entities x,y, or z value, but nor during frame vertex-based animation.
Regards, Konstantin.
What kills me not, that makes me stronger.
***Working on RPG/RTS***
|
|
|
Re: vec_for_vertex and frame animation
[Re: jcl]
#227098
09/12/08 16:05
09/12/08 16:05
|
Joined: Aug 2006
Posts: 155
RyuMaster
OP
Member
|
OP
Member
Joined: Aug 2006
Posts: 155
|
Then how come vec_for_vertex returns the same value during animation? I have tested it many times. When I change actual model position, vec_for_vertex updates and returns new coordinates into my debug panel. But during animation it is not.
What kills me not, that makes me stronger.
***Working on RPG/RTS***
|
|
|
Re: vec_for_vertex and frame animation
[Re: RyuMaster]
#228520
09/20/08 04:33
09/20/08 04:33
|
Joined: Aug 2002
Posts: 164 Houston
Nicholas
Member
|
Member
Joined: Aug 2002
Posts: 164
Houston
|
Is it a bones animation? Without knowing, I'm just going to assume it is since that is what my suggestion is based on. Since vector animations should update the vector position relative to model position and world position, that should work fine. With bones animation I believe the vertex is thinking it's in the same actual position but the bone is fooling it to move relative to the bones not the zero point of the model. This is, of course, just a guess. It should be easy to check though, just make a small model using vertex animation and test that with vec_for_vertex. If this is what is happening with you then I guess it could be a bug with the new system that you might have been the first to catch.
hopefully that'll help.
*edit. oops I didn't read the post properly I'm guessing "ertex" means vertex animation. In that case, take what I said about bones and vertex animation and maybe it only shows the correct numbers one frame 1 with no anim.
Last edited by Nicholas; 09/20/08 04:36.
Black holes are where God divided by zero.
|
|
|
Re: vec_for_vertex and frame animation
[Re: AJ]
#247020
01/18/09 15:23
01/18/09 15:23
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
If your 3DGS version is HIGH, look into ent_getvertex(...).
Otherwise try using vec_for_mesh(...), it takes animation frames into account. But dont forget it will need converting from entity co-ordinates to world co-ordinates, and I cant remember what that command is right now...
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
|