@needle-tools/gltf-progressive 3.5.0-rc → 3.6.0-alpha.2
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 +14 -1
- package/LICENSE +21 -0
- package/gltf-progressive.js +896 -636
- package/gltf-progressive.min.js +9 -9
- package/gltf-progressive.umd.cjs +9 -9
- package/lib/extension.d.ts +65 -6
- package/lib/extension.js +278 -110
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/lods.debug.js +1 -1
- package/lib/lods.manager.d.ts +90 -15
- package/lib/lods.manager.js +282 -150
- package/lib/lods.promise.js +1 -1
- package/lib/plugins/modelviewer.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ All notable changes to this package will be documented in this file.
|
|
|
4
4
|
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
|
+
## [3.6.0-alpha.2] - 2026-05-26
|
|
8
|
+
- Add: mesh LOD selection can now be reused by renderers that manage their own batching, keeping progressive instanced meshes on independent LOD levels.
|
|
9
|
+
- Add: `assignMeshLOD` can delegate applying a loaded geometry, so batched renderers can update one instance without changing every mesh that shares the source geometry.
|
|
10
|
+
- Add: externally scheduled LOD loading work can be tracked by `LODsManager.awaitLoading`, keeping loading screens in sync with progressive instanced assets.
|
|
11
|
+
|
|
12
|
+
## [3.6.0-alpha.1] - 2026-05-25
|
|
13
|
+
- Improve: progressive texture loading now tracks material texture slots more carefully, keeping shared textures alive while they are still used and disposing them once the last tracked slot moves away.
|
|
14
|
+
- Improve: concurrent progressive texture requests for the same material slot now share the same in-flight work, avoiding duplicate loads for heavily instanced scenes.
|
|
15
|
+
- Improve: cached progressive resources are checked before and after waiting for a load slot, reducing duplicate network and GPU work when many instances request the same LOD at once.
|
|
16
|
+
- Improve: `assignTextureLOD` now uses an explicit `{ force: true }` option for debug or explicit LOD overrides, while normal calls keep the best already-loaded texture LOD.
|
|
17
|
+
- Improve: `debugprogressive=colors` and instancing LOD debug colors now use the same expanded LOD color palette.
|
|
18
|
+
- Fix: shared progressive textures are no longer repeatedly loaded and disposed while cloned or instanced objects are still using them.
|
|
19
|
+
|
|
7
20
|
## [3.4.0-beta.3] - 2026-03-24
|
|
8
21
|
- Add: `NEEDLE_progressive.maxConcurrentLoadingTasks` property to control how many LOD meshes and textures are allowed to be fetched concurrently. Defaults to `50`
|
|
9
22
|
|
|
@@ -245,4 +258,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
245
258
|
- fix: LOD mesh assignment for multi-material meshes (meshes with multiple primitives)
|
|
246
259
|
|
|
247
260
|
## [1.0.0-alpha.5] - 2023-04-30
|
|
248
|
-
- initial version
|
|
261
|
+
- initial version
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Needle Tools
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|