-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compress textures stage #204
Changes from 7 commits
8b215bd
82b35ed
dca8fd4
9506993
c8b6eca
6e0044f
90f52f1
21d43bd
49c2896
5ae8ba4
d839f2b
dbc3378
8d1db3b
bda15a7
10a6827
4ae95b1
3b201ac
ab00ca5
c407c71
da6bf07
b8fcbc6
0e59dca
eb0b3d5
05fdbb9
68a99a4
d7e4e97
07669b9
41aed06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,13 +35,13 @@ node ./bin/gltf-pipeline.js -i ./specs/data/boxTexturedUnoptimized/CesiumTexture | |
|`--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`| | ||
|`--separateImage`, `-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`| | ||
|`--cesium`|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`| | ||
|
@@ -50,6 +50,12 @@ node ./bin/gltf-pipeline.js -i ./specs/data/boxTexturedUnoptimized/CesiumTexture | |
|`--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`| | ||
|`--texcomp.enable`|Compress textures.|No, default `false`| | ||
|`--texcomp.format`|The compressed texture format.|No, unless `texcomp.enable` is defined.| | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What are the valid values? |
||
|`--texcomp.quality`|The compressed texture quality from 0 to 10.|No, default `5`| | ||
|`--texcomp.bitrate`|The bitrate when using the pvrtc or astc formats|No, default `2.0`| | ||
|`--texcomp.blockSize`|The block size for astc compression. Smaller block sizes result in higher bitrates. This value is ignored if options.bitrate is also set.|No, default `8x8`| | ||
|`--texcomp.alphaBit`|Store a single bit for alpha. Only supported for etc2.|No, default `false`| | ||
|
||
## Build Instructions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Include a section on where the binaries for the texture compressions came from and how to build any that you built yourself (links to build instructions elsewhere is OK). |
||
|
||
|
@@ -94,6 +100,10 @@ The documentation will be placed in the `doc` folder. | |
|
||
Pull requests are appreciated! Please use the same [Contributor License Agreement (CLA)](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/CONTRIBUTING.md) and [Coding Guide](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Documentation/Contributors/CodingGuide/README.md) used for [Cesium](http://cesiumjs.org/). | ||
|
||
## Attribution | ||
|
||
This product includes components of the PowerVR Tools Software from Imagination Technologies Limited. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Include a link to the directory or LICENSE.md file. |
||
|
||
--- | ||
|
||
<p align="center"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, why did you remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -c flag belongs to
compressTextureCoordinates
, I don't think this one ever had a short flag.