You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If tileset.json contains .b3dm uri (working well with Cesium ION)
"root": {
...
"content": {
"uri": "abc.b3dm"
},
I always got this error (enabled debug in newDeck())
deck.js:82 deck: matching of ScenegraphLayer({id: 'tile-3d-layer-scenegraph-https://assets.ion.cesium.com/ap-northeast-1/2714376/dragon_low.b3dm'}): Invalid prop getPosition: 0,0,0 Error: Invalid prop getPosition: 0,0,0
at validateProps (props.js:8:19)
at _ScenegraphLayer.validateProps (layer.js:948:9)
at LayerManager._updateSublayersRecursively (layer-manager.js:251:30)
at LayerManager._updateSublayersRecursively (layer-manager.js:269:22)
at LayerManager._updateLayers (layer-manager.js:221:14)
at LayerManager.setLayers (layer-manager.js:161:14)
at LayerManager.updateLayers (layer-manager.js:172:18)
at _Deck._onRenderFrame (deck.js:719:27)
at AnimationLoop._renderFrame (animation-loop.js:256:20)
at AnimationLoop.redraw (animation-loop.js:154:14)
And this is full of my code
import {Tiles3DLoader} from "@loaders.gl/3d-tiles";
import {Tile3DLayer} from "@deck.gl/geo-layers";
import {Deck} from "@deck.gl/core";
const layer = new Tile3DLayer({
id: 'tile-3d-layer',
data: '/resources/model_02/tileset.json', // Ensure this is a valid URL to a tileset JSON file
loader: Tiles3DLoader,
onTileError: (err) => {
console.error('Tile error:', err);
},
onTilesetLoad: (tileset) => {
console.log('Tileset loaded:', tileset);
// Optionally update the view state or perform other actions
deckInstance.setProps({
initialViewState: {
longitude: tileset.cartographicCenter?.[0] || 0,
latitude: tileset.cartographicCenter?.[1] || 0,
zoom: tileset.zoom || 2.5,
},
});
},
pickable: true,
pointSize: 2,
getPointColor: [115, 112, 202],
});
const deckInstance = new Deck({
initialViewState: {
longitude: 10,
latitude: 50,
zoom: 2,
},
layers: [layer],
controller: true,
debug: true, // Enable debugging for more insights
});
Description
Hi,
If tileset.json contains .b3dm uri (working well with Cesium ION)
I always got this error (enabled debug in newDeck())
And this is full of my code
Flavors
Expected Behavior
No response
Steps to Reproduce
I using this tileset.json and .b3dm files
https://github.com/CesiumGS/3d-tiles-samples/tree/main/1.0/TilesetWithDiscreteLOD
Environment
Logs
The text was updated successfully, but these errors were encountered: