@needle-tools/gltf-build-pipeline 2.11.3-next.0c3c418 → 2.11.3-next.2bc6b5b
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.
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
7
|
## [2.11.3] - 2025-08-08
|
|
8
|
+
- Fix: texture compression settings not being applied correctly
|
|
8
9
|
- Change: CLI `transform` with `--progressive` does now ignore LOD files
|
|
10
|
+
- Change: Increase local cache size to 5 GB
|
|
9
11
|
|
|
10
12
|
## [2.11.2] - 2025-08-07
|
|
11
13
|
- Change: `product` usecase should not flatten/join objects
|
|
@@ -68,6 +68,7 @@ export const needle_mesh_transform = function (context) {
|
|
|
68
68
|
};
|
|
69
69
|
async function applyMeshCompression(document, transform_context, context) {
|
|
70
70
|
const isLOD = isMeshLOD(context.file);
|
|
71
|
+
const isProduct = context.config?.usecase === "product";
|
|
71
72
|
const compressionModel = determineMeshCompression(document, context.file); // document.getRoot().getExtension(NEEDLE_mesh_compression.EXTENSION_NAME) as NEEDLE_mesh_compression_property;
|
|
72
73
|
if (compressionModel) {
|
|
73
74
|
// const rootModel = rootExtension.model as NEEDLE_mesh_compression_model_root;
|
|
@@ -79,7 +80,7 @@ async function applyMeshCompression(document, transform_context, context) {
|
|
|
79
80
|
document.getLogger().info(`[${NAME}]: ${compressionModel.compression.toUpperCase()} → will apply ${compressionModel.compression} mesh compression`);
|
|
80
81
|
if (compressionModel.compression === "draco") {
|
|
81
82
|
const transform = draco({
|
|
82
|
-
quantizationVolume: isLOD ? "scene" : undefined
|
|
83
|
+
quantizationVolume: isLOD || isProduct ? "scene" : undefined
|
|
83
84
|
});
|
|
84
85
|
return transform(document, transform_context);
|
|
85
86
|
}
|
|
@@ -92,7 +93,7 @@ async function applyMeshCompression(document, transform_context, context) {
|
|
|
92
93
|
// by default we still want to run draco if the root doesnt have a compression model configured
|
|
93
94
|
document.getLogger().info(`[${NAME}]: → will apply draco mesh compression (default)`);
|
|
94
95
|
const transform = draco({
|
|
95
|
-
quantizationVolume: isLOD ? "scene" : undefined
|
|
96
|
+
quantizationVolume: isLOD || isProduct ? "scene" : undefined
|
|
96
97
|
});
|
|
97
98
|
return transform(document, transform_context);
|
|
98
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.11.3-next.
|
|
1
|
+
export declare const version = "2.11.3-next.2bc6b5b";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.11.3-next.
|
|
1
|
+
export const version = "2.11.3-next.2bc6b5b";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@needle-tools/gltf-build-pipeline",
|
|
3
|
-
"version": "2.11.3-next.
|
|
3
|
+
"version": "2.11.3-next.2bc6b5b",
|
|
4
4
|
"description": "Pipeline and tools for optimizing gltf files using gltf-transform and compression settings within glTF extensions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|