![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
3d-tiles-tools
Advanced tools
Node.js library and command-line tools for processing and converting 3D Tiles tilesets.
Clone this repo and install Node.js. From the root directory of this repo, run:
npm install
Gzips the input tileset.
node ./bin/3d-tiles-tools.js gzip ./specs/data/TilesetOfTilesets/ ./output/TilesetOfTilesets-gzipped/
node ./bin/3d-tiles-tools.js gzip -i ./specs/data/TilesetOfTilesets/ -o ./output/TilesetOfTilesets-gzipped/
Flag | Description | Required |
---|---|---|
-i , --input | Input directory of the tileset. | :white_check_mark: Yes |
-o , --output | Output directory of the processed tileset. | No |
-t , --tilesOnly | Only gzip tiles. | No, default false |
-f , --force | Overwrite output directory if it exists. | No, default false |
Ungzips the input tileset.
node ./bin/3d-tiles-tools.js ungzip ./specs/data/TilesetOfTilesets/ ./output/TilesetOfTilesets-ungzipped/
node ./bin/3d-tiles-tools.js ungzip -i ./specs/data/TilesetOfTilesets/ -o ./output/TilesetOfTilesets-ungzipped/
Flag | Description | Required |
---|---|---|
-i , --input | Input directory of the tileset. | :white_check_mark: Yes |
-o , --output | Output directory of the processed tileset. | No |
-f , --force | Overwrite output directory if it exists. | No, default false |
Creates a b3dm from a glb with an empty batch table. Since this tool does not process an entire tileset, it cannot be used with the Pipeline tool.
node ./bin/3d-tiles-tools.js glbToB3dm ./specs/data/CesiumTexturedBox/CesiumTexturedBox.glb ./output/CesiumTexturedBox.b3dm
node ./bin/3d-tiles-tools.js glbToB3dm -i ./specs/data/CesiumTexturedBox/CesiumTexturedBox.glb -o ./output/CesiumTexturedBox.b3dm
Flag | Description | Required |
---|---|---|
-i , --input | Input path of the .glb | :white_check_mark: Yes |
-o , --output | Output path of the resulting .b3dm | No |
-f , --force | Overwrite output file if it exists. | No, default false |
Creates a glb from a b3dm. Since this tool does not process an entire tileset, it cannot be used with the Pipeline tool.
node ./bin/3d-tiles-tools.js b3dmToGlb -i ./specs/data/batchedWithBatchTableBinary.b3dm -o ./output/extracted.glb
Flag | Description | Required |
---|---|---|
-i , --input | Input path of the .b3dm | :white_check_mark: Yes |
-o , --output | Output path of the resulting .glb | No |
-f , --force | Overwrite output file if it exists. | No, default false |
Creates a glb from a i3dm. Since this tool does not process an entire tileset, it cannot be used with the Pipeline tool.
node ./bin/3d-tiles-tools.js i3dmToGlb -i ./specs/data/instancedTile.i3dm -o ./output/extracted.glb
Flag | Description | Required |
---|---|---|
-i , --input | Input path of the .i3dm | :white_check_mark: Yes |
-o , --output | Output path of the resulting .glb | No |
-f , --force | Overwrite output file if it exists. | No, default false |
Optimize a b3dm using gltf-pipeline. Since this tool does not process an entire tileset, it cannot be used with the Pipeline tool.
node ./bin/3d-tiles-tools.js optimizeB3dm -i ./specs/data/batchedWithBatchTableBinary.b3dm -o ./output/optimized.b3dm
Quantize floating-point attributes and oct-encode normals
node ./bin/3d-tiles-tools.js optimizeB3dm -i ./specs/data/batchedWithBatchTableBinary.b3dm -o ./output/optimized.b3dm --options -q -n
Flag | Description | Required |
---|---|---|
-i , --input | Input path of the .b3dm | :white_check_mark: Yes |
-o , --output | Output path of the resulting .b3dm | No |
-f , --force | Overwrite output file if it exists. | No, default false |
--options | All arguments past this flag are consumed by gltf-pipeline. | No |
Generates a sqlite database for a tileset.
This tool cannot be used with the Pipeline tool.
Each tile is stored gzipped in the database. The specification for the tables in the database is not final, see 3d-tiles/#89.
node ./bin/3d-tiles-tools.js tileset2sqlite3 ./tileset/ ./output/tileset.3dtiles
node ./bin/3d-tiles-tools.js tileset2sqlite3 -i ./tileset/ -o ./output/tileset.3dtiles
Flag | Description | Required |
---|---|---|
-i , --input | Input directory of the tileset. | :white_check_mark: Yes |
-o , --output | Output path of the resulting .3dtiles | :white_check_mark: Yes |
-f , --force | Overwrite output file if it exists. | No, default false |
node ./bin/3d-tiles-tools.js pipeline ./specs/data/pipeline.json
node ./bin/3d-tiles-tools.js pipeline -i ./specs/data/pipeline.json
Flag | Description | Required |
---|---|---|
-i , --input | Input pipeline JSON file. | :white_check_mark: Yes |
-f , --force | Overwrite output directory if it exists. | No, default false |
Executes a pipeline JSON file containing an input directory, output directory, and list of stages to run. A stage can be a string specifying the stage name or an object specifying the stage name and any additional parameters. Stages are executed in the order listed.
This example pipeline.json
gzips the input tilest and saves it in the given output directory.
{
"input": "Tileset/",
"output": "TilesetGzipped/",
"stages": ["gzip"]
}
This pipeline uncompresses the input tileset and then compresses all the tiles. Files like tileset.json are left uncompressed.
{
"input": "Tileset/",
"output": "TilesetGzipped/",
"stages": [
"ungzip",
{
"name": "gzip",
"tilesOnly": true
}
]
}
###Pipeline Stages
####gzip
Gzips the input tileset.
Properties
Type | Description | Required | |
---|---|---|---|
tilesOnly | boolean | Only gzip tiles. | No, default: false |
####ungzip
Ungzips the input tileset.
Run the tests:
npm run test
To run JSHint on the entire codebase, run:
npm run jsHint
To run JSHint automatically when a file is saved, run the following and leave it open in a console window:
npm run jsHint-watch
Coverage uses istanbul. Run:
npm run coverage
For complete coverage details, open coverage/lcov-report/index.html
.
The tests and coverage covers the Node.js module; it does not cover the command-line interface.
To generate the documentation:
npm run jsDoc
The documentation will be placed in the doc
folder.
test
task, and click Debug 'test'
.it
to fit
.0.1.0 - 2016-12-16
FAQs
3D Tiles tools
The npm package 3d-tiles-tools receives a total of 284 weekly downloads. As such, 3d-tiles-tools popularity was classified as not popular.
We found that 3d-tiles-tools demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.