immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
979 stars 474 forks source link

tips on creating gtlfs for the viewers #188

Closed KevinAquino closed 1 month ago

KevinAquino commented 1 month ago

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 commented 1 month ago

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

Try stackoverflow for python support.

KevinAquino commented 1 month ago

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?