Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent errors on GLTF export from Blender after modifying action #274

Closed
aoedipus opened this issue Feb 4, 2019 · 3 comments
Closed
Labels
Animation bug Something isn't working exporter This involves or affects the export process ReTest with master Old ticket that must be retested with current master

Comments

@aoedipus
Copy link

aoedipus commented Feb 4, 2019

I have a model with 7 animations that exports ok, with or without actions being pushed down into NLA tracks, or saved as data blocks. I introduce a new animation following a workflow identical to the other seven (all rigged and exported in Mixamo, then imported to Blender 2.79b as FBX). The exporter will then typically start throwing errors, even though no settings have changed. A voodoo process ensues, trying things like purging data, removing then relinking actions, appending from a .blend file instead of importing the FBX directly, reinstalling the exporter, clearing keyframes, quitting and restarting, saving as a new file name, etc.

Sometimes one of these things works - or something else happens that makes it appear as though one of these things works. There's no rhyme or reason that I can discern. Establishing a reliable workflow for modifying an animation or introducing a new action has become fraught with fear.

This issue is seemingly related to 39 and 166. So far no workaround I've tried is very predictable.

Occasionally bones import from Mixamo with a -1 orientation on a given quaternion, which I'll correct in Blender. I've also noticed a high degree of weirdness when re-exporting things that play back fine in Blender, then break apart (unexpected rotations) when loaded in a three.js context. Applying all the loc/rot/scale makes no difference. Again, there's not a pattern for why this happens that I can figure out. Unsure if it's somehow related.

The steps that seem to semi-reliably get things exporting properly again include: purging data > clearing all animation data in the scene view, relinking actions by running through each of them in the action editor, saving as a new .blend file, quitting blender, reopening the file, and exporting. When that fails, as a last resort I will clear keyframes (but this often requires a fair amount of cleanup, or redoing an animation from scratch - ugh). Even this last step only works sporadically.

If I had any hair left to pull out I would. This file is an example of one that was broken a bit ago, but started working again after taking the step of clearing keyframes on the root bone of the newly added action.

I'm currently using the most recent build of the gltf 2.0 Import-Export package.

Any feedback/tips much appreciated, and thanks for all the great work.

@julienduroure julienduroure added bug Something isn't working exporter This involves or affects the export process labels Feb 4, 2019
@julienduroure
Copy link
Collaborator

This is maybe link to issue #461 about NLA that can have some issue in some cases

@julienduroure julienduroure added the ReTest with master Old ticket that must be retested with current master label Jan 6, 2020
@julienduroure
Copy link
Collaborator

Hello @aoedipus Can you please test again with a recent build of blender, for exemple with Blender 2.82 beta, that you can download here : https://builder.blender.org/download/

@julienduroure
Copy link
Collaborator

Export seems to be OK, and I can't reproduce any issue. Without answer from this issue reporting, closing.
Don't hesitate to comment or create a new ticket if you still have issue with recent blender version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Animation bug Something isn't working exporter This involves or affects the export process ReTest with master Old ticket that must be retested with current master
Projects
None yet
Development

No branches or pull requests

2 participants