Hi there.
I am a student studying how to upload a 3d model to a cesium viewer.
The process of uploading the test gltf file to the cesium viewer is now complete!
However, there is a problem in the rotation.
Despite applying the orientation code, the rotation is not applied and the 3d model is not visible.
I want you to let me know what’s wrong with the code.
Thanks
omar
2
Welcome to the Cesium community Wonwoo!
One problem I can see is that Cartesian3.add returns a new result, it doesn’t mutate the input, so you’ll need to change
Cesium.Cartesian3.add(position, offset, position);
``
Into
position = Cesium.Cartesian3.add(position, offset, position);
``
If it’s still not working, try to put together a quick Sandcastle, it’ll make it easier to look into.
I’m really curious, are you working on a sports-related application?