The Forum is up for sale: XeNTaX Forum looking for new owner

[HELP] Get Bone and Animation for model

Post questions about game models here, or help out others!
tainhx
advanced
Posts: 53
Joined: Tue Jun 26, 2018 10:03 am
Has thanked: 2 times
Been thanked: 1 time

Re: [HELP] Get Bone and Animation for model

Post by tainhx »

shakotay2 wrote: Sat Jan 04, 2020 10:43 pm
tainhx wrote: Sat Jan 04, 2020 4:51 pmCould you export animation data for this horse? So I can compare it with my cat
Why not do it yourself?
ScionOfFate-Data.7z
tainhx wrote: Sat Jan 04, 2020 4:54 pmSo my problem here is lack of Scene Root animation data for each frame?
No. The cat moves although Scene Root data is zero. The problem lies elsewhere.

Comparing cat and horse animations is a good idea.
I don't understand data structure of *.smd file so I can't extract it like what I did which *.bon
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: [HELP] Get Bone and Animation for model

Post by shakotay2 »

tainhx wrote: Tue Jan 07, 2020 4:29 pmI don't understand data structure of *.smd file
It doesn't really matter - smd was just for visualization and more clear for me (all data from bon and ani in ONE file, except the mesh).
I know I'm not always as clear as I should be so here's my question concerning cat-Animation 1_mainsequence.smd:

the cat in there is moving correctly (more or less), like you wish?
"Yes" or "no"? If "no" I fear I can't help any further.

If "yes" then have a look at the two named bones: "Scene Root" is not moving (other than for the horse, iirc).
Bone "Bip01 Footsteps" seems to be the base for the translational moving of the cat, I'd say.
.
cat_moving.png
The first three values (after the bone number, 0..31) in the smd time block are the position, 3 euler angles (rotation, in radians) to follow.

Code: Select all

time 0
  0 0.000000 2.711911 -0.653285 -0.000000 1.570796 -0.000000
  1 0.000000 -2.656473 0.000000 -0.000000 -1.570796 -0.000000
"Bip01 Footsteps", frame 0
1 0.000000 -2.656473 0.000000 -0.000000 -1.570796 -0.000000
frame 1
1 0.000000 -2.653497 0.000000 -0.000000 -1.570796 -0.000000
...
frame 80
1 0.000000 -2.530534 -0.000000 -0.000000 -1.570796 -0.000000
...
frame 139
1 0.000000 -2.602156 0.000000 -0.000000 -1.570796 -0.000000

So this (-2.656473...-2.602156) makes the cat moving in y direction (plus trans/rot of other bones).

So now simply look what's different with the not correctly moving animals.
You do not have the required permissions to view the files attached to this post.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
tainhx
advanced
Posts: 53
Joined: Tue Jun 26, 2018 10:03 am
Has thanked: 2 times
Been thanked: 1 time

Re: [HELP] Get Bone and Animation for model

Post by tainhx »

the cat in there is moving correctly (more or less)?
Yes..The cat is moving correctly but less..It not like in game
Here is video for cat moving in game : https://1drv.ms/v/s!AtK3xgihMkhwhIlYcViI-obfPDo8hg

Could you try with anothe sample is Blacksmith
Sample data 2: https://1drv.ms/u/s!AtK3xgihMkhwhI5X4qoASMisva14PQ (Blacksmith)
Blacksmith's IDLE animation demo: https://www.youtube.com/watch?v=AEAQaz0KKWo

You can see the lower body of Blacksmith in demo absoluty is static..but in nosesis it is waving a little
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: [HELP] Get Bone and Animation for model

Post by shakotay2 »

tainhx wrote: Thu Jan 09, 2020 4:48 pmYou can see the lower body of Blacksmith in demo absoluty is static..but in nosesis it is waving a little
I'd really recommend to "hold the line"; what about comparing cat and horse animation data? :roll:

(For the Blacksmith I dunno; doesn't look like rounding errors :? - you could set [Right/Left thigh, calf , foot, Toe0] framelines to fixed values to cure it.)
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
tainhx
advanced
Posts: 53
Joined: Tue Jun 26, 2018 10:03 am
Has thanked: 2 times
Been thanked: 1 time

Re: [HELP] Get Bone and Animation for model

Post by tainhx »

shakotay2 wrote: Thu Jan 09, 2020 7:17 pm
tainhx wrote: Thu Jan 09, 2020 4:48 pmYou can see the lower body of Blacksmith in demo absoluty is static..but in nosesis it is waving a little
I'd really recommend to "hold the line"; what about comparing cat and horse animation data? :roll:

(For the Blacksmith I dunno; doesn't look like rounding errors :? - you could set [Right/Left thigh, calf , foot, Toe0] framelines to fixed values to cure it.)
"hold the line" ?
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4231
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1139 times
Been thanked: 2222 times

Re: [HELP] Get Bone and Animation for model

Post by shakotay2 »

What I demanded was to focus on the files we were talking about, not switch to other problems/files.
(Seems I can't help you any further, sorry.)
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
tainhx
advanced
Posts: 53
Joined: Tue Jun 26, 2018 10:03 am
Has thanked: 2 times
Been thanked: 1 time

Re: [HELP] Get Bone and Animation for model

Post by tainhx »

Up for helping ...
moonpaladin
ultra-veteran
ultra-veteran
Posts: 398
Joined: Tue Mar 05, 2019 6:24 am
Has thanked: 286 times
Been thanked: 18 times

Re: [HELP][Scion of Fate] Get Bone and Animation for model

Post by moonpaladin »

tainhx wrote: Sat Mar 16, 2019 8:05 am Noesis Python model import+export test module, imports/exports some data from/to a made-up format
Hello tainhx! would you mind in edit the script a bit, to we can switch off, load the bones and animations? because the files have no names, and takes time to find which bone/anim correspond to the mesh and the script throw error and error many times. Thank you! :D
Post Reply