Closed Ya2gLu closed 2 years ago
The part of the Json you shared looks fine. Can you check that further down that you don't have an empty "content" object? If so, it might be that the parser fails in that case.
I can check in the 3dtiles spec if this is actually allowed but I propose the lib should support empty "content" regardless.
I checked my JSON file and found that there is no empty "content" object.
It seems that it doesn't seem this problem ...
Ok, if you can share the tileset I will fix
if you can only share the tileset.json file, that can be enough
This is my JSON file link: tileset.json
In addition, there is a directory structure of my file
There is a TileSet.json file in each directory.
Ok, the issue is fixed. the code didn't support an empty root tile without a "content" object.
Try it out and don't forget to play around with "setGeometricErrorMultiplier" if the performance is bad.
Not sure what the tiling scheme is in the other jsons. For example in the folder BlockABAA, do you have several levels of detail?
If you want, I have code to re-tile the entire dataset from OBJ to optimal tiles. However I don't give this code out but I can process your dataset for you.
yes, i see
I need to convert the OSGB format to B3DM. But the directory structure and you don't seem different...
Do you have any way?🙏🙏
I think "osgconv" can convert your osgb files to obj. Download the openSceneGraph binaries here (http://www.openscenegraph.org/index.php/download-section/stable-releases) and run for every file : osgconv model.osg model.obj
If your dataset is small (less than 100mb) just load the highest level of detail OBJs in threejs directly. Else, you can send them to me and I can convert them to optimal 3dtiles.
How about the 3dtiles you have now, did the fix work?
closing issue if no more comments
I am replaced with my own path in the index.js file:
The result is an error in the loader.js file:
This is the TileSet.json format I have:
Is it a problem with the structure?