Hey,
I am trying to load a model into Cesium (1.15) that has no indices defined.
I wrote the Gltf with an own converter that may have many other issues, but with the following error it seems like cesium expects models to have indices defined.
DeveloperError: attribute must have a vertexBuffer or a value.
Error
at new DeveloperError (http://localhost:8080/Source/Core/DeveloperError.js:43:19)
at addAttribute (http://localhost:8080/Source/Renderer/VertexArray.js:39:19)
at new VertexArray (http://localhost:8080/Source/Renderer/VertexArray.js:290:13)
at createVertexArrays (http://localhost:8080/Source/Scene/Model.js:1864:74)
I looked through the code and found this. I think that only if a primitive has indices, indexBuffer gets a value and if not the VertexArray is created with indexBuffer = null and then an error occurs.
Model.js
var indexBuffer;
if (defined(primitive.indices)) {
var accessor = accessors[primitive.indices];
indexBuffer = rendererBuffers[accessor.bufferView];
}
rendererVertexArrays[meshName + '.primitive.' + i] = new VertexArray({
context : context,
attributes : attrs,
indexBuffer : indexBuffer
});
``
So can Cesium handle Gltf 1.0 without indices, like specified, and my Gltf file has just other issues that lead to this error?