@needle-tools/gltf-build-pipeline 2.13.0 → 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +520 -517
  2. package/README.md +38 -38
  3. package/dist/cache/cache.d.ts +55 -55
  4. package/dist/cache/cache.js +326 -326
  5. package/dist/cache/index.d.ts +1 -1
  6. package/dist/cache/index.js +1 -1
  7. package/dist/cli/index.d.ts +2 -2
  8. package/dist/cli/index.js +198 -198
  9. package/dist/config/index.d.ts +53 -53
  10. package/dist/config/index.js +152 -152
  11. package/dist/constants.d.ts +7 -7
  12. package/dist/constants.js +7 -7
  13. package/dist/extensions/NEEDLE_compression_texture/NEEDLE_compression_texture.d.ts +24 -24
  14. package/dist/extensions/NEEDLE_compression_texture/NEEDLE_compression_texture.js +54 -54
  15. package/dist/extensions/NEEDLE_compression_texture/index.d.ts +1 -1
  16. package/dist/extensions/NEEDLE_compression_texture/index.js +1 -1
  17. package/dist/extensions/NEEDLE_mesh_compression/NEEDLE_mesh_compression.d.ts +27 -27
  18. package/dist/extensions/NEEDLE_mesh_compression/NEEDLE_mesh_compression.js +88 -88
  19. package/dist/extensions/NEEDLE_mesh_compression/index.d.ts +1 -1
  20. package/dist/extensions/NEEDLE_mesh_compression/index.js +1 -1
  21. package/dist/extensions/NEEDLE_opaque/NEEDLE_opaque.d.ts +27 -27
  22. package/dist/extensions/NEEDLE_opaque/NEEDLE_opaque.js +980 -980
  23. package/dist/extensions/NEEDLE_opaque/index.d.ts +3 -3
  24. package/dist/extensions/NEEDLE_opaque/index.js +30 -30
  25. package/dist/extensions/NEEDLE_progressive/NEEDLE_progressive.d.ts +48 -48
  26. package/dist/extensions/NEEDLE_progressive/NEEDLE_progressive.js +69 -69
  27. package/dist/extensions/NEEDLE_progressive/index.d.ts +1 -1
  28. package/dist/extensions/NEEDLE_progressive/index.js +1 -1
  29. package/dist/extensions/NEEDLE_progressive_mesh_settings/index.d.ts +23 -23
  30. package/dist/extensions/NEEDLE_progressive_mesh_settings/index.js +41 -41
  31. package/dist/extensions/NEEDLE_progressive_texture_settings/index.d.ts +25 -25
  32. package/dist/extensions/NEEDLE_progressive_texture_settings/index.js +38 -38
  33. package/dist/extensions/index.d.ts +7 -7
  34. package/dist/extensions/index.js +17 -17
  35. package/dist/extensions/utils.d.ts +6 -6
  36. package/dist/extensions/utils.js +72 -72
  37. package/dist/functions/weld.3.d.ts +76 -76
  38. package/dist/functions/weld.3.js +414 -414
  39. package/dist/index.d.ts +8 -8
  40. package/dist/index.js +8 -8
  41. package/dist/scripts/index.d.ts +2 -2
  42. package/dist/scripts/index.js +2 -2
  43. package/dist/scripts/pack-gltf.d.ts +15 -15
  44. package/dist/scripts/pack-gltf.js +135 -133
  45. package/dist/scripts/stats.d.ts +2 -2
  46. package/dist/scripts/stats.js +19 -19
  47. package/dist/transforms/index.d.ts +9 -9
  48. package/dist/transforms/index.js +9 -9
  49. package/dist/transforms/needle_animation_transform.d.ts +2 -2
  50. package/dist/transforms/needle_animation_transform.js +5 -5
  51. package/dist/transforms/needle_asset.d.ts +3 -3
  52. package/dist/transforms/needle_asset.js +50 -50
  53. package/dist/transforms/needle_common.d.ts +17 -17
  54. package/dist/transforms/needle_common.js +1 -1
  55. package/dist/transforms/needle_mesh_transform.d.ts +15 -15
  56. package/dist/transforms/needle_mesh_transform.js +223 -223
  57. package/dist/transforms/needle_progressive.d.ts +45 -45
  58. package/dist/transforms/needle_progressive.js +1043 -1043
  59. package/dist/transforms/needle_texture_transform.d.ts +13 -13
  60. package/dist/transforms/needle_texture_transform.js +257 -257
  61. package/dist/transforms/needle_toktx.d.ts +26 -26
  62. package/dist/transforms/needle_toktx.js +243 -243
  63. package/dist/transforms/needle_webp.d.ts +15 -15
  64. package/dist/transforms/needle_webp.js +53 -53
  65. package/dist/transforms/toktx.d.ts +52 -52
  66. package/dist/transforms/toktx.js +221 -221
  67. package/dist/transforms/toktx_types.d.ts +78 -78
  68. package/dist/transforms/toktx_types.js +62 -62
  69. package/dist/transforms/util.d.ts +21 -21
  70. package/dist/transforms/util.js +90 -90
  71. package/dist/utils/compression_utils.d.ts +2 -2
  72. package/dist/utils/compression_utils.js +6 -6
  73. package/dist/utils/fileutils.d.ts +19 -19
  74. package/dist/utils/fileutils.js +177 -177
  75. package/dist/utils/guid.d.ts +1 -1
  76. package/dist/utils/guid.js +5 -5
  77. package/dist/utils/index.d.ts +10 -10
  78. package/dist/utils/index.js +10 -10
  79. package/dist/utils/merge.d.ts +12 -12
  80. package/dist/utils/merge.js +31 -31
  81. package/dist/utils/mesh.d.ts +13 -13
  82. package/dist/utils/mesh.js +124 -124
  83. package/dist/utils/nodeio.d.ts +6 -6
  84. package/dist/utils/nodeio.js +86 -86
  85. package/dist/utils/stats.d.ts +70 -70
  86. package/dist/utils/stats.js +258 -258
  87. package/dist/utils/texture.d.ts +5 -5
  88. package/dist/utils/texture.js +14 -14
  89. package/dist/utils/validate.d.ts +5 -5
  90. package/dist/utils/validate.js +17 -17
  91. package/dist/utils/version.d.ts +1 -1
  92. package/dist/utils/version.gen.d.ts +1 -1
  93. package/dist/utils/version.gen.js +1 -1
  94. package/dist/utils/version.js +4 -4
  95. package/package.json +79 -79
  96. package/scripts/clear-caches.mjs +3 -3
  97. package/scripts/defaults.mjs +11 -11
  98. package/scripts/fileutils.mjs +5 -5
  99. package/scripts/index.mjs +41 -41
  100. package/scripts/limit-caches.mjs +3 -3
  101. package/scripts/make-progressive.mjs +16 -16
  102. package/scripts/pack-gltf.mjs +106 -106
  103. package/tsconfig.json +19 -19
package/CHANGELOG.md CHANGED
@@ -1,518 +1,521 @@
1
- # Changelog
2
- All notable changes to this package will be documented in this file.
3
-
4
- The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
-
7
- ## [2.13.0] - 2025-10-20
8
- - Use xxhash-wasm for buffer hashing
9
-
10
- ## [2.12.0] - 2025-09-13
11
- - Update meshoptimizer to 0.25 and use `simplifyWithAttributes` by default
12
-
13
- ## [2.11.4] - 2025-08-18
14
- - Change: Default draco compression settings
15
-
16
- ## [2.11.3] - 2025-08-08
17
- - Fix: texture compression settings not being applied correctly
18
- - Change: CLI `transform` with `--progressive` does now ignore LOD files
19
- - Change: Increase local cache size to 5 GB
20
-
21
- ## [2.11.2] - 2025-08-07
22
- - Change: `product` usecase should not flatten/join objects
23
-
24
- ## [2.11.1] - 2025-08-06
25
- - Fix: issue where caching didn't store pre-calculated primitive densities. This caused incorrect LOD level calculation at runtime due to missing data when processing the same files a second time with caching enabled.
26
-
27
- ## [2.11.0] - 2025-08-01
28
- - add: store densities per primitive
29
- - fix: exception during cache key calculation
30
-
31
- ## [2.10.2] - 2025-07-17
32
- - fix: issue where draco compression fails with `[KHR_draco_mesh_compression] Accessor cannot be shared by compressed and uncompressed primitives`
33
-
34
- ## [2.10.1] - 2025-07-09
35
- - add: support for Needle MaterialX extensions
36
- - bump gltf-transform to 4.1.4
37
-
38
- ## [2.9.5] - 2025-05-23
39
- - change: `product` usecase uses `UASTC` compression for 'normalTexture'
40
- - update gltf-transform to 4.1.3
41
-
42
- ## [2.9.0] - 2025-05-22
43
- - add: initial texture compression mode support for `world` and `product`
44
-
45
- ## [2.8.1] - 2025-04-17
46
- - bump version
47
-
48
- ## [2.8.1-alpha.0] - 2025-03-26
49
- - Fix: Issue where cache key gets longer depending on the primitive count
50
- - Fix: Cache key not taking index buffer into account
51
- - Fix: Caching of mesh LODs did clone shared mesh attributes for every primitive instead of re-using previous clones
52
-
53
- ## [2.8.0-alpha.2] - 2025-03-04
54
- - change: use webp compression for textures smaller than 32x32
55
- - fix: webp compression for small textures (64x64)
56
-
57
- ## [2.8.0-alpha.0] - 2025-02-27
58
- - change: `product` usecase now uses webp compression for 'normalTexture' and 'metallicRoughnessTexture' textures
59
-
60
- ## [2.7.1] - 2025-02-14
61
- - fix: bug in caching path due to change in 2.7.0-alpha.2
62
-
63
- ## [2.7.0] - 2025-02-13
64
- - bump version
65
-
66
- ## [2.7.0-alpha.2] - 2025-02-13
67
- - fix: processing for some very large meshes where hashing the meshes failed (for caching the results)
68
-
69
- ## [2.7.0-alpha.1] - 2025-01-13
70
- - fix: handle LOD omitting and remove deleted files from progressive transform results list
71
-
72
- ## [2.7.0-alpha] - 2025-01-13
73
- - add: VRM mesh simplification support
74
- - fix: issue where the output directory was not created if it didn't exist yet
75
- - fix: try resolve deduplicated meshes
76
- - change: update gltf-transform to 4.1.1
77
- - change: modify mesh LOD settings for more vertices
78
-
79
- ## [2.6.0-alpha] - 2024-12-16
80
- - add: create placeholder textures for missing jpg, png, webp, gif, tif on disc
81
- - fix: compressing a gltf file to a different output directory does not falsely delete old external textures on disc in the input directory
82
-
83
- ## [2.5.0] - 2024-12-16
84
- - release
85
-
86
- ## [2.4.0] - 2024-09-11
87
- - release
88
-
89
- ## [2.4.0-beta.5] - 2024-09-06
90
- - fix: issue where mesh LODs would in some cases be compressed with "draco" while the root file would be compressed with "mesh-opt" if not explicitly specified in the root file. This would cause invalid rendering and randomly scaled LOD meshes. Now mesh LODs will always use the same mesh compression. [NE 5297](https://linear.app/needle/issue/NE-5297)
91
- - change: update gltf-transform dependency to 4.0.8
92
-
93
- ## [2.4.0-beta] - 2024-08-13
94
- - fix: issue where a mesh lod is removed during second processing of a directory that contains existing mesh lods
95
-
96
- ## [2.4.0-alpha.3] - 2024-08-11
97
- - fix: issue where files would not correctly be overriden in subdirectories when no output directory was specified
98
-
99
- ## [2.4.0-alpha.2] - 2024-06-29
100
- - fix: prevent joining/flattening of progressive assets
101
-
102
- ## [2.4.0-alpha.1] - 2024-06-26
103
- - add: heuristic for choosing mesh compression if not explictly configured
104
-
105
- ## [2.3.0-alpha.2] - 2024-06-26
106
- - change: usecase `product` does compress with UASTC again (for certain slots)
107
-
108
- ## [2.3.0-alpha.1] - 2024-06-23
109
- - change: bump gltf-transform to 4.0.2 to fix meshopt skinning regression [1439](https://github.com/donmccurdy/glTF-Transform/pull/1439)
110
-
111
- ## [2.3.0-alpha] - 2024-06-22
112
- - add: flatten and join for `product` usecase
113
-
114
- ## [2.2.1-alpha.8] - 2023-06-22
115
- - add: CLI <output> support
116
- - fix: register webp extension for valid glTF files. [issue 5122](https://linear.app/needle/issue/NE-5122)
117
- - fix: issue where VRM material would be pruned
118
- - change: VRM use meshopt compression where any blendshapes are found
119
-
120
- ## [2.2.1-alpha.7] - 2023-06-19
121
- - fix: WARN if image validation can not run
122
- - change: compress lightmap textures with webp
123
-
124
- ## [2.2.1-alpha.5] - 2023-06-18
125
- - add: `stats` now includes json and animation size info
126
- - change: VRM's are compressed with meshopt again
127
- - change: usecase `product` now uses webp compression
128
-
129
- ## [2.2.1-alpha.4] - 2023-06-17
130
- - add: `--verbose` option to transform command
131
- - add: `stats` command to create stats.needle.json
132
- - add: automatically detect mimetype mismatch and attempt to fix it
133
-
134
- ## [2.2.1-alpha] - 2023-06-15
135
- - fix: issue with progressive mesh cache key calculation when running multiple transform processes with different configurations
136
-
137
- ## [2.2.0-alpha.11] - 2023-06-14
138
- - fix: issue where progressive transform with un-indexed meshes would fail
139
-
140
- ## [2.2.0-alpha.10] - 2023-06-13
141
- - fix: progressive transform of converted GLB files where meshes don't have indicies
142
- - fix: skip progressive texture generation for textures for textures that already match the lowest LOD size
143
- - fix: if compression is set to None the LOD textures should respect that setting and also not be compressed
144
- - fix: fallback mesh density calculation for meshes that aren't indexed
145
- - fix: NEEDLE_mesh_compression extension falsely overriding primitive extensions
146
-
147
- ## [2.2.0-alpha.5] - 2023-06-06
148
- - add: CLI `--progressive` option to `transform` command (default is true)
149
- - add: CLI `--compress` option to `transform` command (default is true)
150
- - add: config `meshes: { lods: boolean }` option
151
- - remove: CLI "compress" command
152
- - change: enable texture LODs by default
153
- - fix: `--config` path can now point to a directory or a `needle.config.json` file as well
154
- - fix: mesh LOD regression caused by change in gltf-transform `weld` behaviour
155
- - fix: KTX SOFTWARE >= 4.3.0 is installed
156
-
157
- ## [2.1.0-alpha.6] - 2023-06-04
158
- - fix: errors when invoking npm scripts caused by the cli program
159
- - fix: remove cache directory error
160
- - fix: remove dedup for textures since this currently causes issues with gltf-progressive loading
161
-
162
- ## [2.1.0-alpha] - 2023-06-03
163
- - add: compression config support for high-level usecases that can be passed via commandline arguments or via config. Available options are currently `default`, `world` and `product`.
164
- - add: texture LODs can now be generated by passing in the path to a compression config. `--config <path/to/config.json>`
165
- - change: VRMs now use draco mesh compression by default
166
-
167
- ### Config Examples
168
- - `default` - use default compression. When not explictly configured textures will be compressed with ETC1S
169
- - `product` - when not explictly configured textures will use UASTC for `metallicRoughnessTexture` and `normalTexture`
170
- - `world` - generate texture LODs when enabled (and not explictly disabled by `textures: { lods: false }`)
171
- ```json
172
- {
173
- "usecase": "default" // optional
174
- "textures" : {
175
- "lods": true
176
- }
177
- }
178
- ```
179
- The config can also be part of a `needle.config.json`:
180
- ```json
181
- {
182
- ... regular needle.config
183
- "gltf": {
184
- "usecase": "default" // optional
185
- "textures": {
186
- "lods": true
187
- }
188
- }
189
- }
190
- ```
191
-
192
- ## [2.0.0-alpha] - 2023-06-01
193
- - update gltf-transform dependency to 4.x
194
- - change: ensure ETC1S and UASTC textures are power of 2
195
-
196
- - CLI: commands can be run with `needle-gltf <command>`
197
- - CLI: add `--cache` to allow disabling cache with `--cache False` (default true)
198
- - CLI: add `--stats` to produce `.needle.stats.json` (default false)
199
- - CLI: change `--output` to be the optional second argument
200
-
201
- ## [1.6.0-alpha.7] - 2023-05-30
202
- - fix: npx cli command return wrong error due to `packGLTF` not returning a booelan
203
- - fix: mjs script import paths
204
-
205
- ## [1.6.0-alpha.5] - 2023-05-28
206
- - fix: determine build pipeline version
207
- - change: throw error and exit process if packing or transform fails
208
-
209
- ## [1.6.0-alpha.2] - 2023-05-27
210
- - add: `gltf-build-pipeline` commandline support with `transform` and `compress` (pack-gltf) options.
211
-
212
- ## [1.5.0-alpha.12] - 2023-05-20
213
- - add: pack-gltf now also runs `resample` for animations
214
- - fix: nullreference error in accessing opaque debug options
215
-
216
- ## [1.5.0-alpha.10] - 2023-05-17
217
- - add: `generateLods` option to progressive texture settings
218
-
219
- ## [1.5.0-alpha.9] - 2023-05-16
220
- - add: start of VRM 1.0 support. Not implemented is the `VRMC_materials_mtoon` extension
221
-
222
- ## [1.5.0-alpha.8] - 2023-05-16
223
- - fix: issue where updating ktx compressed texture extension also flattened the path
224
-
225
- ## [1.5.0-alpha.7] - 2023-05-16
226
- - fix: external resources that are KTX2 compressed are now saved with a `.ktx2` extension
227
- - change: toktx now uses compression "auto" mode to select uastc or etc1s
228
- - change: toktx now checks the slots and increases quality for `metallicRoughnessTexture` and `normalTexture` but keeps using ETC1S for smaller file size
229
-
230
- ## [1.5.0-alpha.6] - 2023-05-15
231
- - fix: If not further specified then automatically use UASTC for textures that are in either `normalTexture` or `metallicRoughnessTexture` slots
232
-
233
- ## [1.5.0-alpha.5] - 2023-05-04
234
- - fix: NEEDLE_opaque should handle if VRM texture index is negative
235
- - change: exit with code 1 if any file packing fails
236
-
237
- ## [1.5.0-alpha.4] - 2023-05-03
238
- - fix: issue in NEEDLE_opaque resolving of VRM textures, also resolve `meta.texture`
239
- - fix: VRMs now compress meshes with mesh-opt if nothing is specified
240
- - change: include version in cache directory
241
-
242
- ## [1.5.0-alpha.3] - 2023-05-03
243
- - add: VRM progressive textures support
244
- - fix: VRM format should be saved as GLB. See https://github.com/donmccurdy/glTF-Transform/issues/1390
245
- - fix: VRM texture index handling
246
-
247
- ## [1.5.0-alpha] - 2023-05-01
248
- - add: NEEDLE_opaque `node: <index>` retargeting
249
- - add: passthrough VRM extension
250
-
251
- ## [1.4.11] - 2023-04-29
252
- - add: NEEDLE_progressive mesh now run sparse transform
253
- - change: cli params for debug and caching are now `--debug` and `--no-caching`
254
-
255
- ## [1.4.10] - 2023-04-23
256
- - add: NEEDLE_progressive can now load and process already draco compressed meshes
257
-
258
- ## [1.4.9] - 2023-04-23
259
- - add: NEEDLE_progressive now have `hash` field for LODs which is generated using the content of the LOD and it's settings that produced it.
260
- - fix: NEEDLE_progressive catches error when copying mesh with extensions where the copy operation fails
261
-
262
- ## [1.4.8] - 2023-04-22
263
- - fix: update sharp package to `^0.32.6`
264
- - change: NEEDLE_progressive meshes max LOD error increased
265
-
266
- ## [1.4.7] - 2023-04-16
267
- - add: `asset.extras.needle` now contains information about used build pipeline
268
-
269
- ## [1.4.6] - 2023-04-10
270
- - fix: NEEDLE_progressive meshes do not revert primitive data for skinned meshes anymore. See NE-4596
271
-
272
- ## [1.4.5] - 2023-04-05
273
- - fix: generating mesh and texture LOD for glbs without `NEEDLE_` extension
274
- - fix: guid generation for progressive meshes when no `NEEDLE_` extension is present
275
-
276
- ## [1.4.4] - 2023-04-03
277
- - change: clamp simplification error for LOD meshes to 5%
278
-
279
- ## [1.4.3] - 2023-04-02
280
- - release
281
- - fix: generate cache key for meshes
282
-
283
- ## [1.4.1-beta.15] - 2023-04-02
284
- - fix: issue where discarding all LODs might result in broken mesh due to simplify having modified the original mesh
285
- - fix: don't produce LODs if GLB/glTF was produced with old generator
286
-
287
- ## [1.4.1-beta.13] - 2023-03-26
288
- - change: passthrough `NEEDLE_editor` & `NEEDLE_gltf_dependencies` extensions
289
-
290
- ## [1.4.1-beta.12] - 2023-03-23
291
- - add: NEEDLE_progressive LODs can now contain more info per texture or mesh. Meshes contain vertex- and index counts
292
- - change: the cache can now store and retrieve meta information
293
-
294
- ## [1.4.1-beta.11] - 2023-03-20
295
- - add: NEEDLE_progressive LOD meshes morph targets data
296
- - fix: NEEDLE_progressive should check if simplifcation did result in improved meshes (> 32 verts removed && > 5 % improvement) and otherwise discard LODs (and the whole extension if no improvement was made)
297
- - change: Unity NEEDLE_progressive logs
298
-
299
- ## [1.4.1-beta.10] - 2023-03-19
300
- - change: NEEDLE_progressive calculates density per mesh level
301
- - change: NEEDLE_progressive `uri` field is removed and added `lod` array of objects
302
-
303
- ## [1.4.1-beta.8] - 2023-03-18
304
- - change: if an asset doesnt have a guid we use a uuid package now
305
- - change: ignore mesh LODs with vertex count < 4
306
- - change: allow generating mesh LODs without extension (if the mesh has > 32 vertices)
307
- - change: omit generated LODs if the change is too small (e.g. the vertex count didnt change enough)
308
-
309
- ## [1.4.1-beta.6] - 2023-03-15
310
- - add: caching support for mesh LODs
311
-
312
- ## [1.4.1-beta.5] - 2023-03-15
313
- - add: auto LODs now calculate mesh density
314
- - change: generate 6 LOD level
315
- - change: use ratio 0.5 of the previous LOD level
316
- - change: bump gltf-transform to 3.10.1 to fix simplifier
317
- - change: add sparse transform to progressive transform
318
-
319
- ## [1.4.1-beta.3] - 2023-03-14
320
- - fix: wait for mesh simplifier to be ready
321
-
322
- ## [1.4.1-beta.2] - 2023-03-13
323
- - change: update gltf-transform to `^3.10.0`
324
- - change: progressive mesh transform does now set ratio for LODs (see [simplifier issue 661 on github](https://github.com/zeux/meshoptimizer/issues/661))
325
- - fix: issue where progressive meshes were not generated if a mesh was multiple times in the glTF
326
- - change: simplify to use ratio, fix issue where not all meshes were processed
327
- - change: auto LOD max error set to 0.1
328
-
329
- ## [1.4.0-beta] - 2023-03-12
330
- - add: progressive mesh transform to automatically generate mesh LOD levels (currently we only generate one low poly version)
331
-
332
- ## [1.3.1] - 2023-10-20
333
- - fix: meshopt with khr_animation_2 extension was not correctly processed: animated node and target were not passed to gltf-transform which caused a wrong processing of meshopt. We now pass this information to the gltf-transform AnimationChannel object
334
- - change: bump gltf-transform to 3.7.3
335
-
336
- ## [1.2.4] - 2023-09-30
337
- - fix: bug in progressive texture transform where extension wasnt added correctly (NE-3627)
338
-
339
- ## [1.2.3] - 2023-09-29
340
- - fix: bug in progressive texture transform where texture wasnt found
341
-
342
- ## [1.2.2] - 2023-08-14
343
- - remove: legacy squoosh dependency
344
-
345
- ## [1.2.1] - 2023-07-25
346
- - change: set reference to materials used by json pointers
347
-
348
- ## [1.2.0] - 2023-07-21
349
- - add: resolving of material json pointers
350
-
351
- ## [1.1.6] - 2023-07-10
352
- - change: bump gltf-transform dependency to latest 3.4.6
353
-
354
- ## [1.1.5] - 2023-06-26
355
- - change: bump gltf-transform dependency to latest 3.4.3
356
-
357
- ## [1.1.4] - 2023-06-09
358
- - fix: progressive texture transform didnt pass mesh compression setting through
359
-
360
- ## [1.1.3] - 2023-05-24
361
- - minor change adding info about reduced size after processing gltf files
362
-
363
- ## [1.1.2] - 2023-05-24
364
- - fix: wasm out of memory error caused by starting to many compression processes at once
365
-
366
- ## [1.1.1] - 2023-05-18
367
- - fix: fix progressive texture processing for empty slots array, assume texture slot "baseColorTexture" (for custom shader support)
368
-
369
- ## [1.1.0] - 2023-05-06
370
- - add: support for per glb mesh compression selection (none, draco or meshopt)
371
-
372
- ## [1.0.6] - 2023-05-06
373
- - fix: dont add textures to cache when toktx is not installed
374
-
375
- ## [1.0.5] - 2023-05-06
376
- - fix: catch exception in cases where toktx is not installed (e.g. in CI environment) and log warning instead
377
-
378
- ## [1.0.4] - 2023-04-24
379
- - fix: error caused by missing simplifier
380
-
381
- ## [1.0.3] - 2023-04-24
382
- - fix: webp quality setting not being rounded resulting in compression to fail
383
-
384
- ## [1.0.2] - 2023-04-19
385
- - change: progressive should not log error out when running for already compressed gltf
386
- - change: ignore EXT_texture_exr extension re-assignment
387
-
388
- ## [1.0.1] - 2023-04-17
389
- - fix: register meshopt decoder
390
- - fix: catch exception in document read
391
- - change: log gpu memory estimation for textures
392
-
393
- ## [1.0.0] - 2023-04-04
394
- - change: file utils use needle.config.json to find files if no directory was specified
395
- - change: add generator info
396
- - change: try catch toktx exception
397
- - change: improve relative path handling
398
- - change: use env variable set by npm to resolve relative paths
399
- - add: option to disallow toktx using `no-toktx` commandline parameter
400
- - update to gltf-transform 3.1.4
401
-
402
- ## [0.11.2-pre] - 2023-01-30
403
- - fix: clean up logic for finding toktx to only use one approach
404
-
405
- ## [0.11.1-pre] - 2023-01-27
406
- - fix: getting correct gltf transform texture for texture definition
407
- - fix: opaque extension now also uses getTexture util method
408
-
409
- ## [0.11.0-pre] - 2023-01-25
410
- - add: script `transform` does run progressive and gltf-pack
411
- - change: script `transform:progressive` can now process all files in passed in directory
412
-
413
- ## [0.10.10-pre] - 2023-01-25
414
- - add: `NEEDLE_TOKTX` environment variable
415
- - fix: env variable handling
416
-
417
- ## [0.10.9-pre] - 2023-01-20
418
- - fix: set mime-type to KTX2 when using cached texture data that was processed with default toktx settings
419
-
420
- ## [0.10.8-pre] - 2023-01-18
421
- - fix: pack-gltf should run toktx with default settings when no compression extension was found in texture
422
-
423
- ## [0.10.7-pre] - 2023-01-18
424
- - fix: pack-gltf when invoked with single glb path
425
-
426
- ## [0.10.6-pre.1] - 2023-01-13
427
- - fix: support for glbs using old texture pointer format ``textures/`` (new format is ``/textures/``)
428
-
429
- ## [0.10.5-pre] - 2023-01-12
430
- - fix: pack-gltf running in sequence again to avoid wasm memory error with many glbs
431
-
432
- ## [0.10.4-pre] - 2023-01-11
433
- - change: simplify mesh logs `lockBorder` setting
434
- - change: pack-gltf now searches glb files in subdirectories
435
-
436
- ## [0.10.3-pre] - 2023-01-09
437
- - fix: issue with pack-gltf running out of memory when invoked for directory with many glbs
438
- - change: await squoosh pool close
439
- - change: disable extension read-write logs by default
440
-
441
- ## [0.10.2-pre] - 2023-01-07
442
- - add: mesh simplification now welds vertices with tiny threshold to be able to simplify disjointed meshes
443
- - change: progressive loading handling of unknown slot, dont throw for unknown texture slot but instead log warning and proceed without making the texture progressively loaded
444
- - change: update gltf-transform dependency to 2.5.1
445
-
446
- ## [0.10.1-pre] - 2023-01-04
447
- - fix: error in progressive texture resize where `maxSize` could be 0
448
-
449
- ## [0.10.0-pre] - 2023-01-04
450
- - add: caching for texture transforms
451
- - change: use one needle_transform function to handle compressions of textures in one loop instead of mulitple toktx and squoosh transform methods
452
-
453
- ## [0.9.1-pre] - 2023-01-03
454
- - add: opaque extension support for primitive extensions to support mesh compression settings passed through when using progressive transformations
455
-
456
- ## [0.9.0-pre] - 2023-01-03
457
- - add: ``NEEDLE_mesh_compression`` support for running gltf-transform simplify per primitive
458
-
459
- ## [0.8.1-pre.1] - 2022-12-14
460
- - add: quality option to ``NEEDLE_compression_texture`` for webp compression
461
- - fix: progressive glb should always use name from guid and index
462
-
463
- ## [0.8.0-pre] - 2022-12-13
464
- - add: webp compression mode
465
- - change: progressive texture glbs use guid as filename
466
- - change: pack-gltf can now take directory as argument
467
-
468
- ## [0.7.1-pre] - 2022-12-08
469
- - fix: processing gltf multiple times did cause texture json pointers being resolved wrongly including loosing previously set extensions
470
-
471
- ## [0.7.0-pre] - 2022-12-05
472
- - add: make-progressive tool to transform an existing glbs and resize images with high res images being loaded from external glbs
473
-
474
- ## [0.6.4-pre] - 2022-12-03
475
- - add: compression mode ``none`` to skip toktx compression
476
- - fix: issue with texture pointer not finding previously assigned sampler when writing
477
- - fix: if commandline parsing fails take path containing ``KTX-Software`` as additional toktx search path
478
-
479
- ## [0.6.3-pre] - 2022-10-27
480
- - fix: options.file nullreference error
481
-
482
- ## [0.6.2-pre] - 2022-10-20
483
- - change: toktx temp folder adjusted, use uuid for shorter names, generate uuid once per file [PR](https://github.com/donmccurdy/glTF-Transform/pull/708)
484
-
485
- ## [0.6.1-pre] - 2022-10-20
486
- - fix: NEEDLE_compression_settings havent been passed to toktx anymore
487
-
488
- ## [0.6.0-pre] - 2022-10-19
489
- - add: generate toktx textures in ``glTF-transform`` subdirectory, input and output textures having the same random name and are prefixed with the texture index
490
-
491
- ## [0.5.1-pre] - 2022-10-12
492
- - fix texture extensions surviving multiple compressions (e.g. compression same glb multiple times)
493
- - fix cli args when invoked via npm run
494
-
495
- ## [0.5.0-pre] - 2022-10-11
496
- - add draco support again
497
-
498
- ## [0.4.1-pre] - 2022-10-11
499
- - fix texture extension pass-through
500
-
501
- ## [0.4.0-pre] - 2022-10-11
502
- - update toktx to gltf-Transform v2.4.4
503
-
504
- ## [0.3.0-pre] - 2022-10-06
505
- - add: handle NEEDLE_compression_texture extension and API to toktx to control cli arguments per texture
506
-
507
- ## [0.2.2-pre] - 2022-10-03
508
- - add: allow setting ``--toktxPath`` from commandline on windows
509
-
510
- ## [0.2.1-pre] - 2022-10-03
511
- - fix bug where EXT_texture_exr extension would be inserted in all textures
512
-
513
- ## [0.2.0-pre] - 2022-10-02
514
- - handle KHR_animation_pointer
515
- - handle texture json pointers
516
-
517
- ## [0.1.3-pre] - 2022-09-26
1
+ # Changelog
2
+ All notable changes to this package will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [2.13.1] - 2026-01-30
8
+ - Fix: issue where animation resampling caused invalid animation data for certain animations with very small keyframe differences (NE-6872)
9
+
10
+ ## [2.13.0] - 2025-10-20
11
+ - Use xxhash-wasm for buffer hashing
12
+
13
+ ## [2.12.0] - 2025-09-13
14
+ - Update meshoptimizer to 0.25 and use `simplifyWithAttributes` by default
15
+
16
+ ## [2.11.4] - 2025-08-18
17
+ - Change: Default draco compression settings
18
+
19
+ ## [2.11.3] - 2025-08-08
20
+ - Fix: texture compression settings not being applied correctly
21
+ - Change: CLI `transform` with `--progressive` does now ignore LOD files
22
+ - Change: Increase local cache size to 5 GB
23
+
24
+ ## [2.11.2] - 2025-08-07
25
+ - Change: `product` usecase should not flatten/join objects
26
+
27
+ ## [2.11.1] - 2025-08-06
28
+ - Fix: issue where caching didn't store pre-calculated primitive densities. This caused incorrect LOD level calculation at runtime due to missing data when processing the same files a second time with caching enabled.
29
+
30
+ ## [2.11.0] - 2025-08-01
31
+ - add: store densities per primitive
32
+ - fix: exception during cache key calculation
33
+
34
+ ## [2.10.2] - 2025-07-17
35
+ - fix: issue where draco compression fails with `[KHR_draco_mesh_compression] Accessor cannot be shared by compressed and uncompressed primitives`
36
+
37
+ ## [2.10.1] - 2025-07-09
38
+ - add: support for Needle MaterialX extensions
39
+ - bump gltf-transform to 4.1.4
40
+
41
+ ## [2.9.5] - 2025-05-23
42
+ - change: `product` usecase uses `UASTC` compression for 'normalTexture'
43
+ - update gltf-transform to 4.1.3
44
+
45
+ ## [2.9.0] - 2025-05-22
46
+ - add: initial texture compression mode support for `world` and `product`
47
+
48
+ ## [2.8.1] - 2025-04-17
49
+ - bump version
50
+
51
+ ## [2.8.1-alpha.0] - 2025-03-26
52
+ - Fix: Issue where cache key gets longer depending on the primitive count
53
+ - Fix: Cache key not taking index buffer into account
54
+ - Fix: Caching of mesh LODs did clone shared mesh attributes for every primitive instead of re-using previous clones
55
+
56
+ ## [2.8.0-alpha.2] - 2025-03-04
57
+ - change: use webp compression for textures smaller than 32x32
58
+ - fix: webp compression for small textures (64x64)
59
+
60
+ ## [2.8.0-alpha.0] - 2025-02-27
61
+ - change: `product` usecase now uses webp compression for 'normalTexture' and 'metallicRoughnessTexture' textures
62
+
63
+ ## [2.7.1] - 2025-02-14
64
+ - fix: bug in caching path due to change in 2.7.0-alpha.2
65
+
66
+ ## [2.7.0] - 2025-02-13
67
+ - bump version
68
+
69
+ ## [2.7.0-alpha.2] - 2025-02-13
70
+ - fix: processing for some very large meshes where hashing the meshes failed (for caching the results)
71
+
72
+ ## [2.7.0-alpha.1] - 2025-01-13
73
+ - fix: handle LOD omitting and remove deleted files from progressive transform results list
74
+
75
+ ## [2.7.0-alpha] - 2025-01-13
76
+ - add: VRM mesh simplification support
77
+ - fix: issue where the output directory was not created if it didn't exist yet
78
+ - fix: try resolve deduplicated meshes
79
+ - change: update gltf-transform to 4.1.1
80
+ - change: modify mesh LOD settings for more vertices
81
+
82
+ ## [2.6.0-alpha] - 2024-12-16
83
+ - add: create placeholder textures for missing jpg, png, webp, gif, tif on disc
84
+ - fix: compressing a gltf file to a different output directory does not falsely delete old external textures on disc in the input directory
85
+
86
+ ## [2.5.0] - 2024-12-16
87
+ - release
88
+
89
+ ## [2.4.0] - 2024-09-11
90
+ - release
91
+
92
+ ## [2.4.0-beta.5] - 2024-09-06
93
+ - fix: issue where mesh LODs would in some cases be compressed with "draco" while the root file would be compressed with "mesh-opt" if not explicitly specified in the root file. This would cause invalid rendering and randomly scaled LOD meshes. Now mesh LODs will always use the same mesh compression. [NE 5297](https://linear.app/needle/issue/NE-5297)
94
+ - change: update gltf-transform dependency to 4.0.8
95
+
96
+ ## [2.4.0-beta] - 2024-08-13
97
+ - fix: issue where a mesh lod is removed during second processing of a directory that contains existing mesh lods
98
+
99
+ ## [2.4.0-alpha.3] - 2024-08-11
100
+ - fix: issue where files would not correctly be overriden in subdirectories when no output directory was specified
101
+
102
+ ## [2.4.0-alpha.2] - 2024-06-29
103
+ - fix: prevent joining/flattening of progressive assets
104
+
105
+ ## [2.4.0-alpha.1] - 2024-06-26
106
+ - add: heuristic for choosing mesh compression if not explictly configured
107
+
108
+ ## [2.3.0-alpha.2] - 2024-06-26
109
+ - change: usecase `product` does compress with UASTC again (for certain slots)
110
+
111
+ ## [2.3.0-alpha.1] - 2024-06-23
112
+ - change: bump gltf-transform to 4.0.2 to fix meshopt skinning regression [1439](https://github.com/donmccurdy/glTF-Transform/pull/1439)
113
+
114
+ ## [2.3.0-alpha] - 2024-06-22
115
+ - add: flatten and join for `product` usecase
116
+
117
+ ## [2.2.1-alpha.8] - 2023-06-22
118
+ - add: CLI <output> support
119
+ - fix: register webp extension for valid glTF files. [issue 5122](https://linear.app/needle/issue/NE-5122)
120
+ - fix: issue where VRM material would be pruned
121
+ - change: VRM use meshopt compression where any blendshapes are found
122
+
123
+ ## [2.2.1-alpha.7] - 2023-06-19
124
+ - fix: WARN if image validation can not run
125
+ - change: compress lightmap textures with webp
126
+
127
+ ## [2.2.1-alpha.5] - 2023-06-18
128
+ - add: `stats` now includes json and animation size info
129
+ - change: VRM's are compressed with meshopt again
130
+ - change: usecase `product` now uses webp compression
131
+
132
+ ## [2.2.1-alpha.4] - 2023-06-17
133
+ - add: `--verbose` option to transform command
134
+ - add: `stats` command to create stats.needle.json
135
+ - add: automatically detect mimetype mismatch and attempt to fix it
136
+
137
+ ## [2.2.1-alpha] - 2023-06-15
138
+ - fix: issue with progressive mesh cache key calculation when running multiple transform processes with different configurations
139
+
140
+ ## [2.2.0-alpha.11] - 2023-06-14
141
+ - fix: issue where progressive transform with un-indexed meshes would fail
142
+
143
+ ## [2.2.0-alpha.10] - 2023-06-13
144
+ - fix: progressive transform of converted GLB files where meshes don't have indicies
145
+ - fix: skip progressive texture generation for textures for textures that already match the lowest LOD size
146
+ - fix: if compression is set to None the LOD textures should respect that setting and also not be compressed
147
+ - fix: fallback mesh density calculation for meshes that aren't indexed
148
+ - fix: NEEDLE_mesh_compression extension falsely overriding primitive extensions
149
+
150
+ ## [2.2.0-alpha.5] - 2023-06-06
151
+ - add: CLI `--progressive` option to `transform` command (default is true)
152
+ - add: CLI `--compress` option to `transform` command (default is true)
153
+ - add: config `meshes: { lods: boolean }` option
154
+ - remove: CLI "compress" command
155
+ - change: enable texture LODs by default
156
+ - fix: `--config` path can now point to a directory or a `needle.config.json` file as well
157
+ - fix: mesh LOD regression caused by change in gltf-transform `weld` behaviour
158
+ - fix: KTX SOFTWARE >= 4.3.0 is installed
159
+
160
+ ## [2.1.0-alpha.6] - 2023-06-04
161
+ - fix: errors when invoking npm scripts caused by the cli program
162
+ - fix: remove cache directory error
163
+ - fix: remove dedup for textures since this currently causes issues with gltf-progressive loading
164
+
165
+ ## [2.1.0-alpha] - 2023-06-03
166
+ - add: compression config support for high-level usecases that can be passed via commandline arguments or via config. Available options are currently `default`, `world` and `product`.
167
+ - add: texture LODs can now be generated by passing in the path to a compression config. `--config <path/to/config.json>`
168
+ - change: VRMs now use draco mesh compression by default
169
+
170
+ ### Config Examples
171
+ - `default` - use default compression. When not explictly configured textures will be compressed with ETC1S
172
+ - `product` - when not explictly configured textures will use UASTC for `metallicRoughnessTexture` and `normalTexture`
173
+ - `world` - generate texture LODs when enabled (and not explictly disabled by `textures: { lods: false }`)
174
+ ```json
175
+ {
176
+ "usecase": "default" // optional
177
+ "textures" : {
178
+ "lods": true
179
+ }
180
+ }
181
+ ```
182
+ The config can also be part of a `needle.config.json`:
183
+ ```json
184
+ {
185
+ ... regular needle.config
186
+ "gltf": {
187
+ "usecase": "default" // optional
188
+ "textures": {
189
+ "lods": true
190
+ }
191
+ }
192
+ }
193
+ ```
194
+
195
+ ## [2.0.0-alpha] - 2023-06-01
196
+ - update gltf-transform dependency to 4.x
197
+ - change: ensure ETC1S and UASTC textures are power of 2
198
+
199
+ - CLI: commands can be run with `needle-gltf <command>`
200
+ - CLI: add `--cache` to allow disabling cache with `--cache False` (default true)
201
+ - CLI: add `--stats` to produce `.needle.stats.json` (default false)
202
+ - CLI: change `--output` to be the optional second argument
203
+
204
+ ## [1.6.0-alpha.7] - 2023-05-30
205
+ - fix: npx cli command return wrong error due to `packGLTF` not returning a booelan
206
+ - fix: mjs script import paths
207
+
208
+ ## [1.6.0-alpha.5] - 2023-05-28
209
+ - fix: determine build pipeline version
210
+ - change: throw error and exit process if packing or transform fails
211
+
212
+ ## [1.6.0-alpha.2] - 2023-05-27
213
+ - add: `gltf-build-pipeline` commandline support with `transform` and `compress` (pack-gltf) options.
214
+
215
+ ## [1.5.0-alpha.12] - 2023-05-20
216
+ - add: pack-gltf now also runs `resample` for animations
217
+ - fix: nullreference error in accessing opaque debug options
218
+
219
+ ## [1.5.0-alpha.10] - 2023-05-17
220
+ - add: `generateLods` option to progressive texture settings
221
+
222
+ ## [1.5.0-alpha.9] - 2023-05-16
223
+ - add: start of VRM 1.0 support. Not implemented is the `VRMC_materials_mtoon` extension
224
+
225
+ ## [1.5.0-alpha.8] - 2023-05-16
226
+ - fix: issue where updating ktx compressed texture extension also flattened the path
227
+
228
+ ## [1.5.0-alpha.7] - 2023-05-16
229
+ - fix: external resources that are KTX2 compressed are now saved with a `.ktx2` extension
230
+ - change: toktx now uses compression "auto" mode to select uastc or etc1s
231
+ - change: toktx now checks the slots and increases quality for `metallicRoughnessTexture` and `normalTexture` but keeps using ETC1S for smaller file size
232
+
233
+ ## [1.5.0-alpha.6] - 2023-05-15
234
+ - fix: If not further specified then automatically use UASTC for textures that are in either `normalTexture` or `metallicRoughnessTexture` slots
235
+
236
+ ## [1.5.0-alpha.5] - 2023-05-04
237
+ - fix: NEEDLE_opaque should handle if VRM texture index is negative
238
+ - change: exit with code 1 if any file packing fails
239
+
240
+ ## [1.5.0-alpha.4] - 2023-05-03
241
+ - fix: issue in NEEDLE_opaque resolving of VRM textures, also resolve `meta.texture`
242
+ - fix: VRMs now compress meshes with mesh-opt if nothing is specified
243
+ - change: include version in cache directory
244
+
245
+ ## [1.5.0-alpha.3] - 2023-05-03
246
+ - add: VRM progressive textures support
247
+ - fix: VRM format should be saved as GLB. See https://github.com/donmccurdy/glTF-Transform/issues/1390
248
+ - fix: VRM texture index handling
249
+
250
+ ## [1.5.0-alpha] - 2023-05-01
251
+ - add: NEEDLE_opaque `node: <index>` retargeting
252
+ - add: passthrough VRM extension
253
+
254
+ ## [1.4.11] - 2023-04-29
255
+ - add: NEEDLE_progressive mesh now run sparse transform
256
+ - change: cli params for debug and caching are now `--debug` and `--no-caching`
257
+
258
+ ## [1.4.10] - 2023-04-23
259
+ - add: NEEDLE_progressive can now load and process already draco compressed meshes
260
+
261
+ ## [1.4.9] - 2023-04-23
262
+ - add: NEEDLE_progressive now have `hash` field for LODs which is generated using the content of the LOD and it's settings that produced it.
263
+ - fix: NEEDLE_progressive catches error when copying mesh with extensions where the copy operation fails
264
+
265
+ ## [1.4.8] - 2023-04-22
266
+ - fix: update sharp package to `^0.32.6`
267
+ - change: NEEDLE_progressive meshes max LOD error increased
268
+
269
+ ## [1.4.7] - 2023-04-16
270
+ - add: `asset.extras.needle` now contains information about used build pipeline
271
+
272
+ ## [1.4.6] - 2023-04-10
273
+ - fix: NEEDLE_progressive meshes do not revert primitive data for skinned meshes anymore. See NE-4596
274
+
275
+ ## [1.4.5] - 2023-04-05
276
+ - fix: generating mesh and texture LOD for glbs without `NEEDLE_` extension
277
+ - fix: guid generation for progressive meshes when no `NEEDLE_` extension is present
278
+
279
+ ## [1.4.4] - 2023-04-03
280
+ - change: clamp simplification error for LOD meshes to 5%
281
+
282
+ ## [1.4.3] - 2023-04-02
283
+ - release
284
+ - fix: generate cache key for meshes
285
+
286
+ ## [1.4.1-beta.15] - 2023-04-02
287
+ - fix: issue where discarding all LODs might result in broken mesh due to simplify having modified the original mesh
288
+ - fix: don't produce LODs if GLB/glTF was produced with old generator
289
+
290
+ ## [1.4.1-beta.13] - 2023-03-26
291
+ - change: passthrough `NEEDLE_editor` & `NEEDLE_gltf_dependencies` extensions
292
+
293
+ ## [1.4.1-beta.12] - 2023-03-23
294
+ - add: NEEDLE_progressive LODs can now contain more info per texture or mesh. Meshes contain vertex- and index counts
295
+ - change: the cache can now store and retrieve meta information
296
+
297
+ ## [1.4.1-beta.11] - 2023-03-20
298
+ - add: NEEDLE_progressive LOD meshes morph targets data
299
+ - fix: NEEDLE_progressive should check if simplifcation did result in improved meshes (> 32 verts removed && > 5 % improvement) and otherwise discard LODs (and the whole extension if no improvement was made)
300
+ - change: Unity NEEDLE_progressive logs
301
+
302
+ ## [1.4.1-beta.10] - 2023-03-19
303
+ - change: NEEDLE_progressive calculates density per mesh level
304
+ - change: NEEDLE_progressive `uri` field is removed and added `lod` array of objects
305
+
306
+ ## [1.4.1-beta.8] - 2023-03-18
307
+ - change: if an asset doesnt have a guid we use a uuid package now
308
+ - change: ignore mesh LODs with vertex count < 4
309
+ - change: allow generating mesh LODs without extension (if the mesh has > 32 vertices)
310
+ - change: omit generated LODs if the change is too small (e.g. the vertex count didnt change enough)
311
+
312
+ ## [1.4.1-beta.6] - 2023-03-15
313
+ - add: caching support for mesh LODs
314
+
315
+ ## [1.4.1-beta.5] - 2023-03-15
316
+ - add: auto LODs now calculate mesh density
317
+ - change: generate 6 LOD level
318
+ - change: use ratio 0.5 of the previous LOD level
319
+ - change: bump gltf-transform to 3.10.1 to fix simplifier
320
+ - change: add sparse transform to progressive transform
321
+
322
+ ## [1.4.1-beta.3] - 2023-03-14
323
+ - fix: wait for mesh simplifier to be ready
324
+
325
+ ## [1.4.1-beta.2] - 2023-03-13
326
+ - change: update gltf-transform to `^3.10.0`
327
+ - change: progressive mesh transform does now set ratio for LODs (see [simplifier issue 661 on github](https://github.com/zeux/meshoptimizer/issues/661))
328
+ - fix: issue where progressive meshes were not generated if a mesh was multiple times in the glTF
329
+ - change: simplify to use ratio, fix issue where not all meshes were processed
330
+ - change: auto LOD max error set to 0.1
331
+
332
+ ## [1.4.0-beta] - 2023-03-12
333
+ - add: progressive mesh transform to automatically generate mesh LOD levels (currently we only generate one low poly version)
334
+
335
+ ## [1.3.1] - 2023-10-20
336
+ - fix: meshopt with khr_animation_2 extension was not correctly processed: animated node and target were not passed to gltf-transform which caused a wrong processing of meshopt. We now pass this information to the gltf-transform AnimationChannel object
337
+ - change: bump gltf-transform to 3.7.3
338
+
339
+ ## [1.2.4] - 2023-09-30
340
+ - fix: bug in progressive texture transform where extension wasnt added correctly (NE-3627)
341
+
342
+ ## [1.2.3] - 2023-09-29
343
+ - fix: bug in progressive texture transform where texture wasnt found
344
+
345
+ ## [1.2.2] - 2023-08-14
346
+ - remove: legacy squoosh dependency
347
+
348
+ ## [1.2.1] - 2023-07-25
349
+ - change: set reference to materials used by json pointers
350
+
351
+ ## [1.2.0] - 2023-07-21
352
+ - add: resolving of material json pointers
353
+
354
+ ## [1.1.6] - 2023-07-10
355
+ - change: bump gltf-transform dependency to latest 3.4.6
356
+
357
+ ## [1.1.5] - 2023-06-26
358
+ - change: bump gltf-transform dependency to latest 3.4.3
359
+
360
+ ## [1.1.4] - 2023-06-09
361
+ - fix: progressive texture transform didnt pass mesh compression setting through
362
+
363
+ ## [1.1.3] - 2023-05-24
364
+ - minor change adding info about reduced size after processing gltf files
365
+
366
+ ## [1.1.2] - 2023-05-24
367
+ - fix: wasm out of memory error caused by starting to many compression processes at once
368
+
369
+ ## [1.1.1] - 2023-05-18
370
+ - fix: fix progressive texture processing for empty slots array, assume texture slot "baseColorTexture" (for custom shader support)
371
+
372
+ ## [1.1.0] - 2023-05-06
373
+ - add: support for per glb mesh compression selection (none, draco or meshopt)
374
+
375
+ ## [1.0.6] - 2023-05-06
376
+ - fix: dont add textures to cache when toktx is not installed
377
+
378
+ ## [1.0.5] - 2023-05-06
379
+ - fix: catch exception in cases where toktx is not installed (e.g. in CI environment) and log warning instead
380
+
381
+ ## [1.0.4] - 2023-04-24
382
+ - fix: error caused by missing simplifier
383
+
384
+ ## [1.0.3] - 2023-04-24
385
+ - fix: webp quality setting not being rounded resulting in compression to fail
386
+
387
+ ## [1.0.2] - 2023-04-19
388
+ - change: progressive should not log error out when running for already compressed gltf
389
+ - change: ignore EXT_texture_exr extension re-assignment
390
+
391
+ ## [1.0.1] - 2023-04-17
392
+ - fix: register meshopt decoder
393
+ - fix: catch exception in document read
394
+ - change: log gpu memory estimation for textures
395
+
396
+ ## [1.0.0] - 2023-04-04
397
+ - change: file utils use needle.config.json to find files if no directory was specified
398
+ - change: add generator info
399
+ - change: try catch toktx exception
400
+ - change: improve relative path handling
401
+ - change: use env variable set by npm to resolve relative paths
402
+ - add: option to disallow toktx using `no-toktx` commandline parameter
403
+ - update to gltf-transform 3.1.4
404
+
405
+ ## [0.11.2-pre] - 2023-01-30
406
+ - fix: clean up logic for finding toktx to only use one approach
407
+
408
+ ## [0.11.1-pre] - 2023-01-27
409
+ - fix: getting correct gltf transform texture for texture definition
410
+ - fix: opaque extension now also uses getTexture util method
411
+
412
+ ## [0.11.0-pre] - 2023-01-25
413
+ - add: script `transform` does run progressive and gltf-pack
414
+ - change: script `transform:progressive` can now process all files in passed in directory
415
+
416
+ ## [0.10.10-pre] - 2023-01-25
417
+ - add: `NEEDLE_TOKTX` environment variable
418
+ - fix: env variable handling
419
+
420
+ ## [0.10.9-pre] - 2023-01-20
421
+ - fix: set mime-type to KTX2 when using cached texture data that was processed with default toktx settings
422
+
423
+ ## [0.10.8-pre] - 2023-01-18
424
+ - fix: pack-gltf should run toktx with default settings when no compression extension was found in texture
425
+
426
+ ## [0.10.7-pre] - 2023-01-18
427
+ - fix: pack-gltf when invoked with single glb path
428
+
429
+ ## [0.10.6-pre.1] - 2023-01-13
430
+ - fix: support for glbs using old texture pointer format ``textures/`` (new format is ``/textures/``)
431
+
432
+ ## [0.10.5-pre] - 2023-01-12
433
+ - fix: pack-gltf running in sequence again to avoid wasm memory error with many glbs
434
+
435
+ ## [0.10.4-pre] - 2023-01-11
436
+ - change: simplify mesh logs `lockBorder` setting
437
+ - change: pack-gltf now searches glb files in subdirectories
438
+
439
+ ## [0.10.3-pre] - 2023-01-09
440
+ - fix: issue with pack-gltf running out of memory when invoked for directory with many glbs
441
+ - change: await squoosh pool close
442
+ - change: disable extension read-write logs by default
443
+
444
+ ## [0.10.2-pre] - 2023-01-07
445
+ - add: mesh simplification now welds vertices with tiny threshold to be able to simplify disjointed meshes
446
+ - change: progressive loading handling of unknown slot, dont throw for unknown texture slot but instead log warning and proceed without making the texture progressively loaded
447
+ - change: update gltf-transform dependency to 2.5.1
448
+
449
+ ## [0.10.1-pre] - 2023-01-04
450
+ - fix: error in progressive texture resize where `maxSize` could be 0
451
+
452
+ ## [0.10.0-pre] - 2023-01-04
453
+ - add: caching for texture transforms
454
+ - change: use one needle_transform function to handle compressions of textures in one loop instead of mulitple toktx and squoosh transform methods
455
+
456
+ ## [0.9.1-pre] - 2023-01-03
457
+ - add: opaque extension support for primitive extensions to support mesh compression settings passed through when using progressive transformations
458
+
459
+ ## [0.9.0-pre] - 2023-01-03
460
+ - add: ``NEEDLE_mesh_compression`` support for running gltf-transform simplify per primitive
461
+
462
+ ## [0.8.1-pre.1] - 2022-12-14
463
+ - add: quality option to ``NEEDLE_compression_texture`` for webp compression
464
+ - fix: progressive glb should always use name from guid and index
465
+
466
+ ## [0.8.0-pre] - 2022-12-13
467
+ - add: webp compression mode
468
+ - change: progressive texture glbs use guid as filename
469
+ - change: pack-gltf can now take directory as argument
470
+
471
+ ## [0.7.1-pre] - 2022-12-08
472
+ - fix: processing gltf multiple times did cause texture json pointers being resolved wrongly including loosing previously set extensions
473
+
474
+ ## [0.7.0-pre] - 2022-12-05
475
+ - add: make-progressive tool to transform an existing glbs and resize images with high res images being loaded from external glbs
476
+
477
+ ## [0.6.4-pre] - 2022-12-03
478
+ - add: compression mode ``none`` to skip toktx compression
479
+ - fix: issue with texture pointer not finding previously assigned sampler when writing
480
+ - fix: if commandline parsing fails take path containing ``KTX-Software`` as additional toktx search path
481
+
482
+ ## [0.6.3-pre] - 2022-10-27
483
+ - fix: options.file nullreference error
484
+
485
+ ## [0.6.2-pre] - 2022-10-20
486
+ - change: toktx temp folder adjusted, use uuid for shorter names, generate uuid once per file [PR](https://github.com/donmccurdy/glTF-Transform/pull/708)
487
+
488
+ ## [0.6.1-pre] - 2022-10-20
489
+ - fix: NEEDLE_compression_settings havent been passed to toktx anymore
490
+
491
+ ## [0.6.0-pre] - 2022-10-19
492
+ - add: generate toktx textures in ``glTF-transform`` subdirectory, input and output textures having the same random name and are prefixed with the texture index
493
+
494
+ ## [0.5.1-pre] - 2022-10-12
495
+ - fix texture extensions surviving multiple compressions (e.g. compression same glb multiple times)
496
+ - fix cli args when invoked via npm run
497
+
498
+ ## [0.5.0-pre] - 2022-10-11
499
+ - add draco support again
500
+
501
+ ## [0.4.1-pre] - 2022-10-11
502
+ - fix texture extension pass-through
503
+
504
+ ## [0.4.0-pre] - 2022-10-11
505
+ - update toktx to gltf-Transform v2.4.4
506
+
507
+ ## [0.3.0-pre] - 2022-10-06
508
+ - add: handle NEEDLE_compression_texture extension and API to toktx to control cli arguments per texture
509
+
510
+ ## [0.2.2-pre] - 2022-10-03
511
+ - add: allow setting ``--toktxPath`` from commandline on windows
512
+
513
+ ## [0.2.1-pre] - 2022-10-03
514
+ - fix bug where EXT_texture_exr extension would be inserted in all textures
515
+
516
+ ## [0.2.0-pre] - 2022-10-02
517
+ - handle KHR_animation_pointer
518
+ - handle texture json pointers
519
+
520
+ ## [0.1.3-pre] - 2022-09-26
518
521
  - initial release