gattomanzo
02-21-2008, 08:50 AM
PROBLEM SOLVED, READ BELOW
hi there,
having some serious troubles with animation clip length in XNA,
i've tryed almost anything but i couldn't have a loop animation clip inside xnaviewer, everything i export goes beyond its last keyframe and have infinite (00:00:00) duration value.
it could be caused by a bug inside the export process, because the tutorial objects and scenes export correctly (so they could have inherited correct values from 1.0 XNA plugin), even if i create new clips, and alternatively xna models creatd from scratch do all have the same duration lentgh problem.
any help appreciated.
(link to wrong file removed)
-----------------------------SOLUTION-----------------------------------------
mirroring here solution posted in XNA forums
"aiutati, che Dio t'aiuta" :-)
well guys, it seems that this time we helped ourselves alone.
after an entire day on this problem we've managed to solve the Duration Action Clip problem.
to obtain a correct animation time do the following steps:
xna toolbar -> create model (yup NOT skinned).
put you mesh inside this newly creatd model and remove the cube.
give a phong.fx to your mesh (without this skeleton will not work).
create your skeleton, if you have multiple segments keep in mind that you mustn't parent roots to effectors, but to last bone (jeez my english is terrible!). At last you must have only one compact skeleton.
middle click the entire skeleton root and drag it inside your model.
do envelope procedure.
select all roots, activate translation and create a Character Key Set.
select all bones, activate rotation and add market parameters to key set.
animate your character with key character set option.
action->store->character key set animation or current values, ok with default parameters.
publish your model.et voilą
sincerely hoping that this can be of any help, if not drop a line here.
Mentezero staff
hi there,
having some serious troubles with animation clip length in XNA,
i've tryed almost anything but i couldn't have a loop animation clip inside xnaviewer, everything i export goes beyond its last keyframe and have infinite (00:00:00) duration value.
it could be caused by a bug inside the export process, because the tutorial objects and scenes export correctly (so they could have inherited correct values from 1.0 XNA plugin), even if i create new clips, and alternatively xna models creatd from scratch do all have the same duration lentgh problem.
any help appreciated.
(link to wrong file removed)
-----------------------------SOLUTION-----------------------------------------
mirroring here solution posted in XNA forums
"aiutati, che Dio t'aiuta" :-)
well guys, it seems that this time we helped ourselves alone.
after an entire day on this problem we've managed to solve the Duration Action Clip problem.
to obtain a correct animation time do the following steps:
xna toolbar -> create model (yup NOT skinned).
put you mesh inside this newly creatd model and remove the cube.
give a phong.fx to your mesh (without this skeleton will not work).
create your skeleton, if you have multiple segments keep in mind that you mustn't parent roots to effectors, but to last bone (jeez my english is terrible!). At last you must have only one compact skeleton.
middle click the entire skeleton root and drag it inside your model.
do envelope procedure.
select all roots, activate translation and create a Character Key Set.
select all bones, activate rotation and add market parameters to key set.
animate your character with key character set option.
action->store->character key set animation or current values, ok with default parameters.
publish your model.et voilą
sincerely hoping that this can be of any help, if not drop a line here.
Mentezero staff