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 Model Load accessing undefined material #1385

Closed
Digicrat opened this issue Jan 15, 2014 · 1 comment
Closed

gLTF Model Load accessing undefined material #1385

Digicrat opened this issue Jan 15, 2014 · 1 comment

Comments

@Digicrat
Copy link

I've pulled the latest changes in the Cesium GLTF branch, and also updated/re-compiled the Collada2gltf converter.

I am once again trying to convert a model from the NASA website (http://www.nasa.gov/multimedia/3d_resources/assets/eoss-messenger.html). This time the converter appears to be functioning, but I am getting JS errors when I attempt to load the model using the CesiumViewer2 example.

The error is on line 1169 of Model.js. primitive.material is defined as "", and there is no corresponding blank name in the materials array. As a result we get the exception of accessing instanceTechnique from an undefined property.

I'm not familiar enough with this code to know if this is a bug in Cesium or a problem in the converter (paired with a lack of error handling in Cesium).

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 16, 2014

Thanks for the issue. Glad you are checking out glTF.

This is most likely a bug in the converter. Perhaps #194. CC @fabrobinet

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

2 participants