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

gltf export produces validator with errors #141

Open
write3371 opened this issue Jun 23, 2024 · 4 comments
Open

gltf export produces validator with errors #141

write3371 opened this issue Jun 23, 2024 · 4 comments

Comments

@write3371
Copy link

write3371 commented Jun 23, 2024

I tried to record a gltf animation from unity but KhronosGroup/glTF-Validator shows a lot of error of ACCESSOR_ANIMATION_INPUT_NON_INCREASING

It means there was a Time value in an animationclip that is equal or less than the previous time value.

Is it possible to clean up export so that has correct gltf format like in https://github.com/mrdoob/three.js/pull/27529/files ?

here is my file
output.zip

@hybridherbst
Copy link

Hey @write3371 please list more information, like which version of UnityGltf, Unity, ... you're using.
This error should not happen on recent versions.

@write3371
Copy link
Author

it's the latest master installed on unity 22.3.5f1

@hybridherbst
Copy link

hybridherbst commented Jun 24, 2024

@write3371 can you please provide version information? "latest master" can mean any version depending on when you installed it, especially since there is no "master" branch at all.

  1. Please follow the installation steps here (https://github.com/khronosgroup/UnityGLTF?tab=readme-ov-file#installation) and then if the issue reproduces please provide the exact version (you can see it in Package Manager) of UnityGLTF.
  2. Please provide the input files that reproduce your issue (e.g. a unitypackage and steps on how to reproduce). Only looking at the output does not allow us to reproce the actual issue.

Thanks!

@write3371
Copy link
Author

write3371 commented Jun 25, 2024

Sorry, it was the main branch.

 "org.khronos.unitygltf": {
      "version": "https://github.com/prefrontalcortex/UnityGLTF.git",
      "depth": 0,
      "source": "git",
      "dependencies": {
        "com.unity.nuget.newtonsoft-json": "2.0.0",
        "com.unity.modules.imageconversion": "1.0.0",
        "com.unity.shadergraph": "10.0.0",
        "com.unity.mathematics": "1.0.0"
      },
      "hash": "dbd863412a2807fea00b4433d28ec3682eac6bda"
    },

I was trying to export a https://github.com/vrm-c/UniVRM with animation. I set Time.captureDeltaTime = 1.0f / 30; and then do StartRecording(); in Update(). I don't think there is anything else special

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants