
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
gltf-pipeline
Advanced tools
Content pipeline tools for optimizing glTF assets by Richard Lee and the Cesium team.
This project is under active development, see the roadmap.
gltf-pipeline can be used as a command-line tool or Node.js module.
Clone this repo and install Node.js. From the root directory of this repo, run:
npm install
Command-Line Example:
node ./bin/gltf-pipeline.js -i ./specs/data/boxTexturedUnoptimized/CesiumTexturedBoxTest.gltf -o output.gltf
Flag | Description | Required |
---|---|---|
--help , -h | Display help | No |
--input , -i | input=PATH, Read unoptimized glTF from the specified file. | :white_check_mark: Yes |
--output , -o | output=PATH, Write optimized glTF to the specified file. | No |
--binary , -b | Write binary glTF file using KHR_binary_glTF extension. | No, default false |
--separate , -s | Write separate geometry/animation data files, shader files, and textures instead of embedding them in the glTF asset. | No, default false |
--separateTexture , -t | Write out separate textures, but embeds geometry/animation data files and shader files in the glTF asset. | No, default false |
--quantize , -q | Quantize the attributes of this glTF asset using the WEB3D_quantized_attributes extension. | No, default false |
--encodeNormals , -n | Oct-encode the normals of this glTF asset. | No, default false |
--compressTextureCoordinates , -c | Compress the testure coordinates of this glTF asset. | No, default false |
--removeNormals , -r | Strips off existing normals, allowing them to be regenerated. | No, default false |
--faceNormals , -f | If normals are missing, they should be generated using the face normal. | No, default false |
--cesium , -c | Optimize the glTF for Cesium by using the sun as a default light source. | No, default false |
--kmc.enable | Materials should be expressed using the KHR_materials_common extension. If other kmc flags are enabled, this is implicitly true. | No, default false |
--kmc.doubleSided | Declares whether backface culling should be disabled. | No, default false |
--kmc.technique | The lighting model to use. | No, default PHONG |
--ao.enable | Bake ambient occlusion (to vertex data by default). If other ao flags are enabled, this is implicitly true. Advanced settings in lib/bakeAmbientOcclusion.js | No, default false |
--ao.toTexture | Bake AO to existing diffuse textures instead of to vertices. Does not modify shaders. | No, default false |
--ao.groundPlane | Simulate a groundplane at the lowest point of the model when baking AO. | No, default false |
--ao.ambientShadowContribution | Amount of AO to show when blending between shader computed lighting and AO. 1.0 is full AO, 0.5 is a 50/50 blend. | No, default 0.5 |
--ao.quality | Quality to use when baking AO. Valid settings are high, medium, and low. | No, default low |
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, which is tiny.
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
.Pull requests are appreciated! Please use the same Contributor License Agreement (CLA) and Coding Guide used for Cesium.
0.1.0-alpha9 - 2017-01-03
FAQs
Content pipeline tools for optimizing glTF assets.
The npm package gltf-pipeline receives a total of 3,988 weekly downloads. As such, gltf-pipeline popularity was classified as popular.
We found that gltf-pipeline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.