deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

[Bug]The loaded 3Dtile has no texture

Open yinminhe opened this issue 3 years ago • 4 comments

Description

The loaded 3Dtile has no texture image

"dependencies": { "deck.gl": "^8.8.8", "@loaders.gl/3d-tiles": "^3.3.0-alpha.1", "mapbox-gl": "^2.10.0-beta.1" }

let layer=new MapboxLayer({ id: layerConfig.id, type: Tile3DLayer, data: layerConfig.url, loader: Tiles3DLoader, loadOptions: {}, onTileError: (err) => { console.log(err) }, onTilesetLoad: (tileset) => { tileset.setProps({ maximumScreenSpaceError: 1 }) const { cartographicCenter, zoom} = tileset; layer.viewState = { center:cartographicCenter, zoom } map.jumpTo(layer.viewState) }, })

Flavors

  • [ ] React
  • [ ] Python/Jupyter notebook
  • [X] MapboxLayer
  • [ ] GoogleMapsOverlay
  • [ ] CartoLayer
  • [ ] DeckLayer/DeckRenderer for ArcGIS

Expected Behavior

No response

Steps to Reproduce

"dependencies": { "deck.gl": "^8.8.8", "@loaders.gl/3d-tiles": "^3.3.0-alpha.1", "mapbox-gl": "^2.10.0-beta.1" }

let layer=new MapboxLayer({ id: layerConfig.id, type: Tile3DLayer, data: layerConfig.url, loader: Tiles3DLoader, loadOptions: {}, onTileError: (err) => { console.log(err) }, onTilesetLoad: (tileset) => { tileset.setProps({ maximumScreenSpaceError: 1 }) const { cartographicCenter, zoom} = tileset; layer.viewState = { center:cartographicCenter, zoom } map.jumpTo(layer.viewState) }, })

Environment

{ "deck.gl": "^8.8.8", "@loaders.gl/3d-tiles": "^3.3.0-alpha.1", "mapbox-gl": "^2.10.0-beta.1" }

Logs

No response

yinminhe avatar Aug 15 '22 15:08 yinminhe

We cannot reproduce your issue from your description. Please create a codepen/code sandbox.

Pessimistress avatar Aug 15 '22 15:08 Pessimistress

@Pessimistress code sandbox: https://codesandbox.io/embed/thirsty-fermi-uedux3?fontsize=14&hidenavigation=1&theme=dark

image

yinminhe avatar Aug 16 '22 09:08 yinminhe

@belom88

Pessimistress avatar Aug 16 '22 16:08 Pessimistress

@belom88 @belom88 Looks like there's a file parsing problem

image image @belom88

yinminhe avatar Aug 22 '22 02:08 yinminhe