Did you update the cop car or not?
If not, I’ll reiterate the fact that the origin is (0,0,0) from the export itself, and the vertices are shifted. I don’t think there’s something we can do in this case.
The skeleton/animation stores extra data that allows it to transform the vertices.
@Mathias_Westerdahl
Mathias, just a quick feedback.
As probably expected, I have the same issues as @MasterMind with setting up animations on my mini m1.
And, just on a sidenote: there is no smoke in the animation collection, so the editor moans about the missing instance. But the main script might be @MasterMind 's and not yours.
Everything else is cool!
Get a crash when building if model property “Default Animation” is set to none then trying to start animation via script. No crash if a default animation is set in model properties and trying to change the animation via script has no effect.
Update:
The crash occurs from passing blend_duration in model.play properties table when there is no default animation selected , no animation playing to blend with.
You are correct, when testing the transforms offset issue from before I had accidently saved the project file after applying delta transforms to the copcar and armature out of habit, then never reverted the transform. I cleared the delta transforms but the issue seems to be still present.
Update: The offset still happens when no animation is set in “Default Animation” property. it only happens when exporting with armature selected. Armature(Bones) also have the same origin location as the model. I will still try and pin it down, but if all else users can set the model to zero world position to export if they need the default no animation selected in model setting.
I will recreate model and animations from scratch and confirm the issue.
I’ve updated the build with some more fixes.
As far as I know, there are no outstanding issues with this build.
The only thing left to do on my side is to clean up our unit tests, and write a few more for the new format. If nothing unforeseen happens, I expect it to be released in the 1.3.7 release.
Confirmed selectable “Default Animation” property for glTF single animation setup is now working properly.
Now when applying an animation set file in model properties and choosing a “Default Animation” the animations do not show in drop down menu , now only the name of the animation set file is shown.
I have worked out the proper exporting settings for glTF from blender and now got the animations playing from code.
interesting step needs to be made on export for both model and skeleton. The animation action needs to be set active on both model and rig separately, then exported. Much different than .dea animation export.
What’s plans for including this in a beta/release?
Not sure if it’s a real issue or not but if I tried exporting a model that did not have UVs it would not work. It either complained the file was corrupt or drew the whole screen as black. Until I created UVs, exported again. I was using objects that are shaded only with colors so didn’t care about UVs.
We want to release this as soon as possible, once we are confident that all major issues have been resolved. This thread and everyone in here testing the new importer has been a fantastic help to us. I will let @Mathias_Westerdahl share more about the release plans, but it should be fairly soon now.
Don’t rush it, it could be a very huge announcement, so better to take care of UX upfront
I’m not into Defold 3D, so sorry I am not much of a help here but the work you are doing is amazing!
I’m trying to use the vertex color. I get a strange result. The editor displays mesh, model, model in the collection differently. In the build it is displayed as expected. test_3d_gltf.zip (30.3 KB)