How to unzip b3dm files for use in Cesium JS

Follow

Comments

4 comments

  • Please sign in to leave a comment.

  • Avatar
    aeromax_dzz

    Hello, i have some trouble with step 8, what is in rename.bat? If you can send file to cloud

    please

    thanks

    0
    Comment actions Permalink
  • Avatar
    Wallace Wainhouse CR

    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

    0
    Comment actions Permalink
  • Avatar
    aeromax_dzz

    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

    0
    Comment actions Permalink
  • Avatar
    albanbrice1976

    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

     

    0
    Comment actions Permalink