libgdx_blender_g3d_exporter icon indicating copy to clipboard operation
libgdx_blender_g3d_exporter copied to clipboard

Dope sheet actions don't get exported

Open ashkitten opened this issue 8 years ago • 11 comments

I am using the dope sheet to create keyframe actions, but they are not exported to the g3dj file. It works properly if I use the fbx exporter and convert it afterward, but it would be nice for it to work using this.

ashkitten avatar Jun 26 '16 05:06 ashkitten

I did make sure that the "fake user" option was checked by the way

ashkitten avatar Jun 26 '16 05:06 ashkitten

I would like this, too. As FBX converter for some reason screws everything up.

midn1 avatar Aug 11 '16 14:08 midn1

Dope Sheet actions do export it seems, but I run into problems when I edit key frames in one of the actions and then only one of them (I guess the first? or maybe root bone?) action export. It seems there is something that needs to be reset on the armature, but I can't figure it out yet. All actions work fine in blender, which makes debugging a little difficult. Do you get no actions(listed under "Animations") at all in your file when you export?

dilom avatar Jan 31 '17 06:01 dilom

I think I have found out why I had problems with my actions. Hopefully this helps other people. I have two simple actions one is Move the other one is Rotate. My Move action exports every time, while my Rotate action exports only if it is a Quternion Rotation. Since, I need a very simple one axis rotation I was trying to simplify it to a EULER rotation but when I do the Rotation action does not get exported.

dilom avatar Feb 01 '17 03:02 dilom

@dilom That makes sense. I read the Python property for quaternion rotations but my initial belief was that no matter the kind of rotation I read Blender would always convert the actual value and return it.

From your report it seems that's not the case, it will only return quaternion rotations if that's the kind you're using.

Thanks for the report. I'll check if I can verify which rotation is being used and convert if necessary.

Dancovich avatar Feb 01 '17 04:02 Dancovich

I am having this issue as well. After exporting I have 0 animations. Does anyone have a fix for this? I'll attach the .blend file I'm using and the exported files as well. animation_issues.zip

orodri avatar Feb 28 '17 03:02 orodri

@orodri You had the same problem as dilom, your rotation animation was using Euler rotations and my exporter doesn't convert them to quaternions (G3D only supports quaternion rotations).

I semi-fixed your animation by converting the rotation to quaternions and the animation exported as usual. I say "semi" because for some reason your action isn't looping after the change, but I believe you can fix that.

Below is the fixed file.

animation_issues_fixed.zip

Dancovich avatar Mar 02 '17 15:03 Dancovich

Thank you.

orodri avatar Mar 10 '17 16:03 orodri

Hi. If anyone could give me some advice because I try to export a model with multiple animations and when I import it into libgdx the animations and the model look warped. model.zip It is important because I want to add this plugin in the BDX project.

vittfiles avatar Jul 05 '20 19:07 vittfiles

I found that if you create an animation it saves correctly but if you create two animations the first animation is the sum of the first and the second animation and the second animation is like the sum of that new first animation and the second animation.

vittfiles avatar Jul 08 '20 21:07 vittfiles