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

The glTF.scene should be optional #4793

Closed
javagl opened this issue Dec 30, 2016 · 2 comments
Closed

The glTF.scene should be optional #4793

javagl opened this issue Dec 30, 2016 · 2 comments

Comments

@javagl
Copy link
Contributor

javagl commented Dec 30, 2016

According to the specification, the glTF.scene field is optional (i.e "not required").

But there are at least two places where gltf.scenes[gltf.scene] seems to be accessed directly:

(others may exist - I did not systematically search for all possible occurrences).

When trying to load a glTF without a scene property, this obviously leads to the error

TypeError: t.scenes[t.scene] is undefined

(This basically applies to all the tutorial models. Right now, it can be tested quickly at https://cx20.github.io/gltf-test/examples/cesium/index.html?category=tutorialModels&model=SimpleTexture&scale=1&type=glTF-Embedded-buffer )


(BTW: The linked lines also raise the question of whether cesium would be capable of handling multiple scenes, but this may be another issue...)

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 16, 2017

CC KhronosGroup/glTF#815

@javagl
Copy link
Contributor Author

javagl commented Jul 27, 2022

Seems to be resolved 👴

Cesium NoScene

@javagl javagl closed this as completed Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants