Hi everyone,
I created easy model with bones,skinned mesh and animation in 3DS. I need to access to bones from my code. I exported this model into dae and next with collada2glTF 0.8 to gltf file.
I used this code from tutorial to add my model to globe in Cesium:
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
var modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(
Cesium.Cartesian3.fromDegrees(-75.62898254394531, 40.02804946899414, 0.0));
var model = scene.primitives.add(Cesium.Model.fromGltf({
url : '../SampleData/models/CesiumGround/example.gltf',
modelMatrix : modelMatrix,
scale : 200.0
}));
But I got an error:
An error occurred while rendering. Rendering has stopped.
undefined
TypeError: Cannot read property 'transformToRoot' of undefined
TypeError: Cannot read property 'transformToRoot' of undefined
at rr (http://localhost:8080/Build/Cesium/Cesium.js:443:17117)
at _r.update (http://localhost:8080/Build/Cesium/Cesium.js:443:27972)
at a.update (http://localhost:8080/Build/Cesium/Cesium.js:457:15103)
at Tt (http://localhost:8080/Build/Cesium/Cesium.js:459:13328)
at xt (http://localhost:8080/Build/Cesium/Cesium.js:459:14030)
at Mt.render (http://localhost:8080/Build/Cesium/Cesium.js:459:20433)
at P.render (http://localhost:8080/Build/Cesium/Cesium.js:464:23489)
at t (http://localhost:8080/Build/Cesium/Cesium.js:464:10458)
this dae file work fine in ThreeJS and Blender
I didn't find topic for this error in google
Has somebody idea what is the problem?
Thank you very much.
retepik