Google 3D Photogrammetry on Cesium ION?

Hi, Google’s 3D Photogrammetry really has a powerful impact. Although there is a cap on the amount of tiles used per day, I would love to see Cesium Stories support it.

As a way to deal with exceeding the limit, I have tried to display the default globe instead.
https://hiroshima.archiving.jp/

Perhaps Google should start charging when the limit is exceeded. But for now, how about temporarily allowing Google’s Photogrammetry to be displayed with Stories?

let tileset;

function loadPhotogrammetry() {
    // Default globe to black
    const globe = viewer.scene.globe;
    globe.baseColor = Cesium.Color.fromCssColorString('#000000');
    // Load 3D Tiles
    async function geGlobe() {
        try {
            tileset = await Cesium.createGooglePhotorealistic3DTileset();
            viewer.scene.primitives.add(tileset);
            // 3D Tiles Style
            tileset.style = new Cesium.Cesium3DTileStyle({
                color: "rgba(160, 160, 160, 1)",
            });
            // LOD
            tileset.dynamicScreenSpaceError = true;
            tileset.dynamicScreenSpaceErrorFactor = 24;
        } catch (error) {
            console.log(`Failed to load tileset: ${error}`);
            viewer.scene.globe.show = true;
        }
    }
    geGlobe();
}

// Toggle 3D Tiles
let showBuildings = 1;

function buildingsToggle() {
    if (viewer.scene.primitives._primitives[2] !== undefined) {
        if (showBuildings == 0) {
            viewer.scene.primitives._primitives[2].show = true;
            showBuildings = 1;
            if (tileset !== undefined) {
                viewer.scene.globe.show = false;
            }
            viewer.scene.requestRender();
        } else {
            viewer.scene.primitives._primitives[2].show = false;
            showBuildings = 0;
            if (tileset !== undefined) {
                viewer.scene.globe.show = true;
            }
            viewer.scene.requestRender();
        }
    }
}

@HidenoriWatanave

We are actively investigating ways to incorporate Google Photorealistic 3D Tiles into Cesium ion, and Cesium Stories in-particular.

We’ll follow up with additional information soon.