display the gltf model with texture but had problem in render the texture

1. A concise explanation of the problem you’re experiencing.

Hello evertone, I’m beginner of cesium. i have some city building models with format in kmz.

And i had used the collada2gltf to change my building model format into .gltf, but this

wired that it has strange black shadow on building surface and whole building looks so

dark. you can see them in following screenshot about the presenation in cesium and google earth.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

My code used to load my model is following:

var modelMatrix1 = Cesium.Transforms.eastNorthUpToFixedFrame(

Cesium.Cartesian3.fromDegrees(120.300028781098, 22.6224908296288, 20));

var model1 = scene.primitives.add(Cesium.Model.fromGltf({

url: ‘r51/P2_land2271_24.gltf’,

modelMatrix: modelMatrix1,

scale: 1.0

}));

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I’m wondering about what may cause this black shadow and how to fix this and how to make my model brighten

4. The Cesium version you’re using, your operating system and browser.

Cesium 1.48

WINDOWS OS

Google chrome browers

Hey Hirosi,

I wonder if this is an issue with the Collada2Gltf library. This issue sounds like it might be related:

It might be worth posting your model there and asking why the output looks like that. Another helpful tool is Don McCurdy’s glTF Viewer:

https://gltf-viewer.donmccurdy.com/

So you can see if the issue is with Cesium or with the model itself.

Hi Omar, Thanks for your suggest. I will check my model first.