Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,888 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
vec_for_vertex and frame animation #226924
09/11/08 23:21
09/11/08 23:21
Joined: Aug 2006
Posts: 155
R
RyuMaster Offline OP
Member
RyuMaster  Offline OP
Member
R

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: RyuMaster] #226986
09/12/08 09:52
09/12/08 09:52
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
vec_for_vertex is supposed to give you always the actual position of the vertex, no matter how it moves or animates.

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
R
RyuMaster Offline OP
Member
RyuMaster  Offline OP
Member
R

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 Offline
Member
Nicholas  Offline
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: RyuMaster] #246951
01/18/09 00:48
01/18/09 00:48
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline
Member
AJ  Offline
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
Sorry to digg up an old post but this is the closest i could find to my problem.

Not unlike RyuMaster, my vertex positions are not changing like they should be. I am using bone animation and i have found that the vertex positions are changed if i move the model using c_move or its going through its animations. However, if i move the bones using ent_bonerotate the vertex positions are not changed.

That being said if i have my model in a walking animation and ent_bonerotate the bones, the vertex positions reported are the same as if i wasn't rotating the bones at all.

Hope i made sense.

Thanks

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 Offline
Expert
EvilSOB  Offline
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
Re: vec_for_vertex and frame animation [Re: EvilSOB] #247035
01/18/09 17:50
01/18/09 17:50
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Vec_for_vertex works fine with bones, but maybe you have already reset the bones when you call the command?

Re: vec_for_vertex and frame animation [Re: Tobias] #247087
01/18/09 23:02
01/18/09 23:02
Joined: Sep 2003
Posts: 133
Oklahoma, USA
AJ Offline
Member
AJ  Offline
Member

Joined: Sep 2003
Posts: 133
Oklahoma, USA
Apparently i had infact left an ent_bonereset in up above my manual bone rotation. After removing it vec_for_vertex and vec_for_bone work perfectly.

Thanks for pointing me in the right direction

Thanks,
AJ


Moderated by  old_bill, Tobias 

Gamestudio download | 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