When using the Google Earth 3D tileset from ION it seems to hover over the base globe.
When i click on a label-point and fly to the location i basically end up under the 3d tileset, above the normal globe. Also the flat map view is distorted.
And the points and labels are partly hiding under the surface. Anything to make entities and labels staying above the map surface? I set the height for the points, but the labels seem not to move doesnt matter what i do.
// Initialize Cesium viewer with specified configuration options
viewer = new Viewer('cesiumContainer', {
animation: false,
baseLayerPicker: true,
fullscreenButton: false,
vrButton: false,
geocoder: true,
homeButton: true,
infoBox: true,
sceneModePicker: true,
selectionIndicator: false,
timeline: false,
navigationHelpButton: false,
shouldAnimate: true
});
// Load Cesium 3D Tileset from Cesium Ion using the specified asset ID (2275207=Google Earth)
try {
const tileset = await Cesium3DTileset.fromIonAssetId(2275207);
viewer.scene.primitives.add(tileset);
} catch (error) {
console.log(error);
}
I just added “disableDepthTestDistance: Number.POSITIVE_INFINITY,” to all entities, now they are ON the 3D tileset.
BUT THE MAIN PROBLEM STILL PERSISTS!!!
THE 3D TILES NEED TO BE CONNECTED WITH THE GROUND! SHARING THE SAME COORDINATES!
If not:
coordinates are not exactly placed, because they are placed on the basemap UNDER the 3Dtileset, and are moving with camera movement when viewing from ON the 3D tileset.
doubleclick on a point warps you under the earth, between 3D tiles and 2D basemap (workaround point height, but ends up on different heights on the 3D map of course)
upcoming problem with moving entities (startpoints, waypoints, routes, etc.)
Would you be able to share a minimal Sandcastle example showing the issue you’re running into, I’m not sure I totally understand what’s happening. If it’s a bug that’ll also help us track it down and confirm it’s actually fixed easier.
Hi. @jjspace Thanks for replying. I was able to replicate the error within a sandcastle:
Most simple configuration:
Container
Tileset
Entitiy
Interaction with Entity (Zoom)
const viewer = new Cesium.Viewer("cesiumContainer", {
animation: false,
baseLayerPicker: true,
fullscreenButton: false,
vrButton: false,
geocoder: true,
homeButton: true,
infoBox: true,
sceneModePicker: true,
selectionIndicator: false,
timeline: false,
navigationHelpButton: false,
shouldAnimate: true
});
// Load Cesium 3D Tileset from Cesium Ion using the specified asset ID (2275207=Google Photorealistic Earth)
try {
const tileset = await Cesium.Cesium3DTileset.fromIonAssetId(2275207);
viewer.scene.primitives.add(tileset);
} catch (error) {
console.log(error);
}
// Create a point entity
var point = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
point : {
pixelSize : 10,
color : Cesium.Color.RED,
outlineColor : Cesium.Color.WHITE,
outlineWidth : 2
}
});
// Zoom to the point entity
viewer.zoomTo(point);
What does it do?
Whether you automatically zoom in on the red dot entity during initialization or manually zoom out and double-click the red dot entity, you will always end up underneath the added 3D tileset. Looking up, you’ll see the ground floor of the tileset hovering above you. If you move above the 3D tileset ground floor, you can’t go back under it until you manually double-click the red dot entity again, which brings you under the 3d tileset.