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

tips on creating gtlfs for the viewers #188

Closed
KevinAquino opened this issue May 21, 2024 · 2 comments
Closed

tips on creating gtlfs for the viewers #188

KevinAquino opened this issue May 21, 2024 · 2 comments

Comments

@KevinAquino
Copy link

Hi,
I would like to create some gltfs to use in your examples but I can't seem to save them correctly - is there guidance on what the gltfs need?

For instance if I take the space.gltf file, load and save it (like in the python script below)

from pygltflib import GLTF2
gltf = GLTF2().load(filename)
gltf.save()

and set that output, I get an error on loading. Specifically in the web console I get:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'scene.nodes')

so obviously there are specific tags/workflows I am missing. Any advice would be great, thanks!

@AdaRoseCannon
Copy link
Member

This is not the best place to ask these sorts of issues.

Try stackoverflow for python support.

@KevinAquino
Copy link
Author

Hi,

Sorry this is not really a python question - more of a question on the requirements of the gltf. Is there a standard or a validator for the gltfs that can be used with the tools used here?

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