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
For our project we used it with [email protected], utilizing new 'app' directory, but we tested and realized that the same issue occurs on the earlier versions of Next.js and 'pages' directory. This issue doesn't occur on the development server, but only after production build and after running it on the next production server (next build && next start).
The issue occurs when the library fails to detect 'tileset.json' as a tileset, and tries to fetch and process it as a tile (fails to correctly detect type).
The quick solution was to hardcode here instead of : const tilesetJson = await load(url, Tiles3DLoader, { ...loadersGLOptions, });
the folowing: const tilesetJson = await load(url, Tiles3DLoader, { ...loadersGLOptions, '3d-tiles': { isTileset: true }, });
We tried to identify the root cause of such behaviour but so far failed. Is it important to leave 'isTileset' property in this place undefined, or maybe you could explicitly specify it in this line of code?
The text was updated successfully, but these errors were encountered:
Hi! First of all thank you for this library!
For our project we used it with [email protected], utilizing new 'app' directory, but we tested and realized that the same issue occurs on the earlier versions of Next.js and 'pages' directory. This issue doesn't occur on the development server, but only after production build and after running it on the next production server (
next build && next start
).The issue occurs when the library fails to detect 'tileset.json' as a tileset, and tries to fetch and process it as a tile (fails to correctly detect type).
The quick solution was to hardcode here instead of :
const tilesetJson = await load(url, Tiles3DLoader, { ...loadersGLOptions, });
the folowing:
const tilesetJson = await load(url, Tiles3DLoader, { ...loadersGLOptions, '3d-tiles': { isTileset: true }, });
three-loader-3dtiles/src/index.ts
Line 106 in aeb1ae1
We tried to identify the root cause of such behaviour but so far failed. Is it important to leave 'isTileset' property in this place undefined, or maybe you could explicitly specify it in this line of code?
The text was updated successfully, but these errors were encountered: