In order to use Cesium Tiles in Cesium JS, it is first necessary to unzip them.
We have automated the process, if you have 7-zip installed you can just run this batch file from your geometry folder with the b3dm files in it.
You can also do it manually, I will be using 7-zip, but there are a lot of other ways to unzip files.
- Select all of your b3dm files in the geometry folder:
- Now right click --> 7zip --> extract to /*
- Select the original b3dm files and delete them (but do not delete all the new folders)
- Search for *.* and select all the files without extensions and right click them to copy them.
- then make a folder anywhere, and paste your files into it:
- Select everything in your geometry folder and delete it, then copy the files from your temporary folder back into the geometry folder.
- You can now delete the temporary folder
- open up a text editor and create the following batch file, and save it as rename.bat into the geometry folder (make sure it is the geometry folder, as this file will rename everything in whatever folder it is launched from with a b3dm extension
- double click rename.bat from the geometry folder
Comments
4 comments
Hello, i have some trouble with step 8, what is in rename.bat? If you can send file to cloud
please
thanks
Hi aeromax_dzz,
to make rename.bat. make a new file in a text editor with the just this line:
ren *.* *.b3dm
and save it as rename.bat and save it to the geometry folder
You upload to https://cesium.com/ion/stories/ and it work?
I prepare data on your all step but model don't visable
all b3dm unzip, and all files without extension add b3dm

In order to save us some time and trouble, it would be great to allow, in the LoD export dialog, either to compress or not those b3dm files. It took time to figure out that the files couldn't be served from my distant machine since they were compressed.
By the way, for those who have hands on a server but couldn't set it up to serve compressed files on-the-fly, they can still do as follows via ssh (dirty workaround, I'm not a linux specialist, so do that on backed up files, in case...) :
- batch rename the files to reflect their real zipped format :
for file in *.b3dm; do mv -- "$file" "${file%.b3dm}.b3dm.gz"; done
- then uncompress them
for file in *.b3dm.gz; do gunzip ${file%}; done