glTF model is black

Hello,

I converted a collada modell to glTF. I tried to use cesium 1.16. The model was shown, but all material was black. Something wrong with lights? Material?

Thanks.

Best Regards

Gerhard

Hello Gerhard,

Have you seen the troubleshooting section of our 3D models tutorial? http://cesiumjs.org/tutorials/3D-Models-Tutorial/

If your collada model appears fine and there aren’t any error messages in Cesium, let me know and I’ll take a closer look at it.

Thanks,

Hannah

Hello Hannah,

I have already read your 3D models tutorial. I hope that I understood it correctly.

· I modelled a simple blue cube in Blender and exported it as a collada file

· I converted it with collada2gltf in gltf files

· The collada file seems correct. I can see the cube in Visual Studio Collada Viewer (see VSCube.png)

· In cesium the cube is black (see CubeCesium.png)

Thanks,

Gerhard

CubeCesium.png

Hmm… I’m not sure exactly what would be causing that problem. Could you attached the COLLADA model so I can take a look at it?

Thanks,

Hannah

Hi,

It could just be the lighting in Cesium. Did you try moving the time slider at the bottom of the Cesium widget?

Patrick

Hi,

I moved the time slider, but it did not help.

Thanks

Gerhard

Hello Hannah,

here the file

Thanks

Gerhard

cube.dae (10.4 KB)

I have a similar problem.
Using Blender, a few point lights were added to an imported Light Wave Object (LWO) and exported to COLLADA format.
Using the COLLADA to GLTF converter, the file was converted to GLTF.
Using the Sandcastle Models demo, the GLTF model was tested within Cesium.
Unfortunately, when the GLTF model loads from a CZML file, the model is rendered in black.
The
attached Portable Data Format file presents images of the model within the COLLADA to GLTF converter, the Sandcastle demo, and how it appears when it is loaded from a CZML file…

The original LWO file was downloaded from the NASA 3D Resources website.
http://nasa3d.arc.nasa.gov/detail/lro-full

Here is the CZML code:
[ {
“id”:“document”,
“name”:“Lunar Transfer Trajectory”,
“version”:“1.0”,
“clock”:{
“interval”:“2014-07-22T11:00:00Z/2014-08-12T22:07:27Z”,
“currentTime”:“2014-07-22T11:00:00Z”,
“multiplier”:20,
“range”:“LOOP_STOP”,
“step”:“SYSTEM_CLOCK_MULTIPLIER”
}},
{
“id”: “lunarProbe”,
“availability”:[“2014-07-22T11:00:00Z/2014-08-12T22:07:27Z”],
“model” : {
“gltf” : “LRO_spacecraft.gltf”,
“scale” : 5000.0,
“show” : [{
“interval” : “2014-07-22T11:00:00Z/2014-08-12T22:07:27Z”,
“boolean” : true
}]
},
“path” : {
“width” : 1.5,
“material”:{
“solidColor”:{ “color”:{ “rgba”:[ 200,100,150,255 ] } }
},
“show” : true
},
“position”: {
“cartesian”: [
“2014-07-22T11:29:11Z”,-137380198.4340,75679878.6754,21487638.7519,
“2014-07-22T11:30:11Z”,-137394120.7690,75653088.4724,21492771.5937,
“2014-07-22T11:33:21Z”,-137438027.2700,75567784.4716,21509029.0206,
//—
]
} }]

20160204_model_loaded_from_CZML_rendered_black.pdf (533 KB)

Success!
Using the Collada2GLTF converter provided by the Khronos group produced a colorful gltf file that loaded from CZML.
https://github.com/KhronosGroup/glTF/releases/tag/v1.0-draft2

The issue at #3737 has just been closed and may resolve your issue. Look for the change in Cesium 1.45 on May 1, or get it now in the master branch on GitHub https://github.com/AnalyticalGraphicsInc/cesium.

Thank you.