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

I get transfer gltf file , show in Cesium is black, Why? #111

Closed
yangxin2017 opened this issue Oct 26, 2017 · 1 comment
Closed

I get transfer gltf file , show in Cesium is black, Why? #111

yangxin2017 opened this issue Oct 26, 2017 · 1 comment

Comments

@yangxin2017
Copy link

entity = viewer.entities.add({ name : 'sig2.gltf', position : position, orientation : orientation, model : { uri : url, minimumPixelSize : 128, maximumScale : 20000, color: Cesium.Color.RED, colorBlendMode: 0 } });
This is my obj file.
obj.zip

@lilleyse
Copy link
Contributor

It looks like the problem is the obj doesn't have normals. obj2gltf doesn't generate normals anymore and neither does cesium, so the model appears black. If you are able to export the obj with normals that would fix the problem for now.

We have an issue open in Cesium for this: CesiumGS/cesium#5838. I'll close this in the meantime.

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