NASA-AMMOS / 3DTilesRendererJS

Renderer for 3D Tiles in Javascript using three.js
https://nasa-ammos.github.io/3DTilesRendererJS/example/bundle/mars.html
Apache License 2.0
1.64k stars 291 forks source link

Some b3dms which use other encoding methods cann't load #229

Closed 2226174644 closed 2 years ago

2226174644 commented 2 years ago

When I used B3DMLoader to load my b3dms, it didn't work and log: image from image I think the reason is from encoding methods ,because I compared my b3dms with other example b3dms in txt ,they are different. image (left is mine ,right is a example).

And I have tested , my 3DTiles which contains the b3dms can run in Cesium. I need your help .

gkjohnson commented 2 years ago

Hello! I have not had to deal with this before but are you sure the content is loading correctly in the network tab? What are the magic bytes and other values being read as? Can you supply a b3dm for testing to reproduce the issue.

Unfortunately my time is limited so I would appreciate some help digging into the issue further. You can use the b3dmExample page to simplify the debugging process.

2226174644 commented 2 years ago

Sorry,It's my fault. I used wrong url to cause this error. Now, it doesn't log 'console.assert',when I use the correct url. But it still cann't be loaded ,because its source image could not be decoded. image And in network tab, it's likely ok. image

This is my code. image Here is my data. Data.zip

gkjohnson commented 2 years ago

Is you're server not configured to return 404 error codes? If the URL was wrong the network tab and console should be showing errors. The images that cannot be decoded should also be showing error codes, as well.

There does seem to be small bug in the B3DM (and other) loader implementation, though. Specifically it's not setting the working path correctly because it's not splitting the file path on slashes correctly, which I don't think should be a difficult fix.

gkjohnson commented 2 years ago

Just merged with #230. I'll publish later today or tomorrow!

gkjohnson commented 2 years ago

Published in v0.3.5