NASA-AMMOS / Unity3DTiles

A 3D Tiles implementation in Unity
Other
226 stars 64 forks source link

b3dm #1

Open dingqimin opened 5 years ago

dingqimin commented 5 years ago

you project can not load my 3dTiles. Is it tileset problem or b3dm problem?can you help me ?

amenzies commented 5 years ago

Hi @dingqimin

Glad to hear you are interested in using Unity3DTiles! The most likely problem is that this repository currently uses a slightly outdated version of the 3D Tiles tileset specification. We hope to have it updated to the latest spec soon. The b3dm reader is also pretty simple so I wouldn't rule out issues with it either.

A quick test might be to create a blank scene with just a B3DMComponent pointing at a single b3dm file. That would allow you to test the b3dm loader independently of the rest of the tileset code.

In the mean time, if you have a sample tileset and/or b3dm file you would like me to test with I'd be happy to see if I can identify/correct the issue.

amenzies commented 5 years ago

I am working on a branch to update the tileset schema. Please pull this branch and see if it resolves your issue: https://github.com/NASA-AMMOS/Unity3DTiles/tree/feature/3d-tiles-schema-update

amenzies commented 5 years ago

This update has been merged into master

uphyhuang99 commented 5 years ago

Hello, your project failed to load my B3DM file.Can you help me? I have my test file in the attachment. Tile+040+104.zip

amenzies commented 5 years ago

Sorry for the slow reply. The b3dm loader we have implemented currently is very simple and has only been tested against b3dm files containing a single glb file with no additional information in the header. I bet your b3dm file probably exercises more of the specification than what we currently have implemented. I'm a bit over subscribed at the moment so I'm not sure when I will have a chance to look at this. In case anyone else out there wants to have a look, a good place to start would be to create a new scene and add a game object with just a B3DMComponent on it. Point it at the sample b3dm above and then step through https://github.com/NASA-AMMOS/Unity3DTiles/blob/master/Assets/Unity3DTiles/B3DMLoader.cs with a debugger to see where things go south.

My guess is that we aren't handling a non-empty features table or some optional attributes correct as per the spec https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/specification/TileFormats/Batched3DModel/README.md

zhuxian1guo commented 3 years ago

a good place to start would be to create a new scene and add a game object with just a B3DMComponent on it. the B3dm model isShow, But the cesiumlab model have problem Is The json Tree and format of json have different the data is this
Test.zip