visgl / deck.gl

WebGL2 powered visualization framework
https://deck.gl
MIT License
12.29k stars 2.09k forks source link

can tile3dlayer render 3dtiles not on cesium ion? #4457

Closed yuxiangyu closed 4 years ago

yuxiangyu commented 4 years ago

we use the tile3dlayer to render 3dtiles on my own web server, but it seems not work.

xintongxia commented 4 years ago

@yuxiangyu

In that case, use Tiles3DLoader, and the default loader for deck.gl Tile3DLayer is Tiles3DLoader.

yuxiangyu commented 4 years ago

Yes, I have used Tiles3DLoader,and the code is just like this: const layer = new Tile3DLayer({ id: 'tile-3d-layer', data:'http://localhost:8080/testdata/NewYork/tileset.json', loader: Tiles3DLoader, loadOptions: { // headers:header, loadGLTF:true, } }) and it report an error in chrome: image but in cesium it can be rendered correctly whithout any report

yuxiangyu commented 4 years ago

Sorry , the error is :Failed to load resource: the server responded with a status of 404 () webpack-internal:///./node_modules/@loaders.gl/tiles/dist/esm/tileset/tileset-3d.js:506 A 3D tile failed to load: undefined fetch failed 404 <!doctype html> Can you give some suggest? And another thing is how about the header? sometimes it can appera the crossorigin error

yuxiangyu commented 4 years ago

Failed to load resource: the server responded with a status of 404 () :8080/testdata/NewYork/undefined?v=1.0:1 webpack-internal:///./node_modules/@loaders.gl/tiles/dist/esm/tileset/tileset-3d.js:506 A 3D tile failed to load: undefined fetch failed 404 <!doctype html>HTTP Status 404 – Not Found