Unable to load dracoed-b3dm, works fine in Threejs gltf-viewer

108 views
Skip to first unread message

port...@gmail.com

unread,
Jul 27, 2019, 11:24:12 PM7/27/19
to cesium-dev


1. A concise explanation of the problem you're experiencing.

Unable to load b3dm, display fine in Threejs gltf-viewer

2019_07_28_11_20_46_glTF_Viewer.png

The 2 errors are about "KHR_techniques_webgl" not supported by threejs gltf-viewer


Non-dracoed B3dm loads fine in Cesiumjs

2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.

if hasVertexColors is commented in Cesiumjs code, then Cesiumjs can dispay it, without color 

2019_07_28_11_18_29_cesium_C_Users_Don_code_cesium_..._Build_CesiumUnminified_Cesium.js_cesium.png

2019_07_28_11_18_42_cesium_C_Users_Don_code_cesium_..._Build_CesiumUnminified_Cesium.js_cesium.png



2019_07_28_11_22_48_cesium.png



3. Context. Why do you need to do this? We might know a better way to accomplish your goal.



4. The Cesium version you're using, your operating system and browser.
Cesium v1.58

0draco.gltf
0draco.b3dm

ZhouHai

unread,
Jul 28, 2019, 8:47:40 AM7/28/19
to cesium-dev

What errors did you get and could you provide the tileset.json file for b3dms?
I briefly looked at the contents of the b3dm file. The length of batchlength at the beginning of the file is 0, but batch is declared in primitive later, but I'm not sure that's the root of the problem. It's just a guess.
WeChat084b128ff8310ff7c74ca603aa59d90f.png
WeChatcc263e4fd03cc104afc334d6ce660290.png
Message has been deleted
Message has been deleted

port...@gmail.com

unread,
Jul 28, 2019, 11:50:19 AM7/28/19
to cesium-dev
The error is
[.WebGL-000001B6624D6A90]GL ERROR :GL_INVALID_OPERATION : glDrawElements: attached to enabled attrib 1 : no buffer

*added tileset.json
2019_07_28_23_47_39_cesium.png
tileset.json

port...@gmail.com

unread,
Jul 28, 2019, 12:20:26 PM7/28/19
to cesium-dev
Using 3d-tiles-tools.js (v0.1.3) glbToB3dm
to create b3dm, and 3d-tiles-tools stripped the batches and set to 0.
Is there an option to keep the batches?


On Sunday, July 28, 2019 at 8:47:40 PM UTC+8, ZhouHai wrote:

port...@gmail.com

unread,
Aug 4, 2019, 11:37:22 PM8/4/19
to cesium-dev
Issue was COLOR_0 was quantized,
once converted to float, it loads fine.

Thanks :-)
Reply all
Reply to author
Forward
0 new messages