Version: 1.119
When I use Cesium.Primitive to create a rectangular geometry and turn on Cesium.Terrain.fromWorldTerrain, the position of the rectangular geometry will be inaccurate and when I press the left button to pan the camera, I can see that the geometry has moved (translated).
When I do not turn on Cesium.Terrain.fromWorldTerrain, this problem does not occur, or when I replace Cesium.Primitive with Cesium.GroundPrimitive, this problem will not occur. Is this phenomenon correct? If this phenomenon is correct, how can I draw a Cesium.Primitive with accurate position and no displacement when Cesium.Terrain.fromWorldTerrain is turned on? My needs prevent me from using Cesium.GroundPrimitive.
The demo is attached below. You can reproduce the above phenomenon by placing it in the Apps directory.
HelloWorldTest.zip (1.5 KB)
Reproduction steps
- Use Cesium.Primitive to create a rectangular geometry, and enable Cesium.Terrain.fromWorldTerrain
- Press and hold the left button to pan the camera
- Use Cesium.Primitive to create a rectangular geometry, and do not enable Cesium.Terrain.fromWorldTerrain
- Press and hold the left button to pan the camera
- Use Cesium.GroundPrimitive to create a rectangular geometry, and enable Cesium.Terrain.fromWorldTerrain
- Press and hold the left button to pan the camera
- Compare the three situations
Browser:
CesiumJS Version:1.119
Operating System:windows 10