@woosh/meep-engine 2.34.45 → 2.34.49

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 (27) hide show
  1. package/core/binary/BitSet.js +10 -3
  2. package/core/bvh2/BinaryNode.js +53 -25
  3. package/core/bvh2/traversal/bvh_traverse_pre_order_using_stack.js +43 -0
  4. package/core/bvh2/visual/convert_bvh_to_dot_format_string.js +50 -0
  5. package/core/geom/3d/aabb/aabb3_estimate_projected_area2.js +1 -1
  6. package/core/geom/3d/frustum/frustum_from_projection_matrix_array.js +27 -24
  7. package/core/graph/convertGraphToDotString.js +4 -4
  8. package/core/graph/v2/Graph.js +4 -0
  9. package/engine/asset/loaders/geometry/geometry/computeGeometryEquality.js +2 -1
  10. package/engine/ecs/foliage/ecs/Foliage2System.js +22 -5
  11. package/engine/graphics/compute_geometry_polycount.js +21 -0
  12. package/engine/graphics/ecs/mesh-v2/sample/prototypeShadedGeometry.js +64 -9
  13. package/engine/graphics/micron/convert_three_object_to_micron.js +0 -2
  14. package/engine/graphics/micron/format/MicronGeometry.js +1 -3
  15. package/engine/graphics/micron/format/MicronGeometryPatch.js +33 -23
  16. package/engine/graphics/micron/format/serialization/MicronGeometryBinarySerializationAdapter.js +6 -0
  17. package/engine/graphics/micron/plugin/GLTFAssetTransformer.js +176 -0
  18. package/engine/graphics/micron/plugin/MicronRenderPlugin.js +1 -135
  19. package/engine/graphics/micron/prototypeVirtualGeometry.js +9 -5
  20. package/engine/graphics/micron/render/VirtualGeometryBuilder.js +14 -53
  21. package/engine/graphics/micron/render/refinement/RefinementSpec.js +0 -11
  22. package/engine/graphics/micron/render/refinement/get_geometry_patch_cut.js +125 -0
  23. package/engine/graphics/particles/particular/engine/utils/volume/prototypeParticleVolume.js +318 -13
  24. package/engine/graphics/render/layers/RenderLayer.js +22 -14
  25. package/engine/graphics/render/visibility/IncrementalDeltaSet.js +18 -5
  26. package/engine/graphics/render/visibility/VisibilityComputer.js +11 -15
  27. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { assert } from "../../../../core/assert.js";
1
+ const scratch_array = [];
2
2
 
3
3
  export class VisibilityComputer {
4
4
  constructor() {
@@ -67,19 +67,6 @@ export class VisibilityComputer {
67
67
  this.__view = view;
68
68
  }
69
69
 
70
- /**
71
- * @private
72
- * @param {Object3D} object3d
73
- */
74
- __includeObject(object3d) {
75
- assert.equal(object3d.isObject3D, true, 'object3d.isObject3D !== true');
76
-
77
- //object passed all filters, add it to visible set
78
- this.__output.push(object3d);
79
-
80
- this.__activeLayer.visibleSet.push(object3d);
81
- }
82
-
83
70
  /**
84
71
  * @private
85
72
  * @param {RenderLayer} layer
@@ -101,7 +88,16 @@ export class VisibilityComputer {
101
88
  return;
102
89
  }
103
90
 
104
- layer.buildVisibleSet(this.__view, this.__includeObject, this);
91
+ const added_objects = layer.buildVisibleSet(scratch_array, 0, this.__view);
92
+
93
+ for (let i = 0; i < added_objects; i++) {
94
+ const object3d = scratch_array[i];
95
+
96
+ //object passed all filters, add it to visible set
97
+ this.__output.push(object3d);
98
+
99
+ this.__activeLayer.visibleSet.push(object3d);
100
+ }
105
101
  }
106
102
 
107
103
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.34.45",
8
+ "version": "2.34.49",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",