Thanks @ahillier!
I grabbed the glb
that was generated by ion. The model seems to be loading fine using the following code:
const position = Cesium.Cartesian3.fromDegrees(
-123.0744619,
44.0503706,
0.0
);
const heading = Cesium.Math.toRadians(135);
const pitch = 0;
const roll = 0;
const hpr = new Cesium.HeadingPitchRoll(heading, pitch, roll);
const orientation = Cesium.Transforms.headingPitchRollQuaternion(
position,
hpr
);
const entity = viewer.entities.add({
name: "model.glb",
position: position,
orientation: orientation,
model: {
uri: "//localhost:8080/model.glb",
minimumPixelSize: 20,
},
});
What is the value of towerModel
in your code?