@woosh/meep-engine 2.34.5 → 2.34.6

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.
@@ -343,7 +343,9 @@ PNG.prototype.getUint8Data_case3 = function () {
343
343
  for (let i = 0; i < pixel_count; i++) {
344
344
  const destination_address = i * itemSize;
345
345
 
346
- const lookup_value = pixels[i * d];
346
+ const lookup_index = pixels[i * d];
347
+
348
+ const lookup_value = lookup_index * 3;
347
349
 
348
350
  result_data[destination_address] = palette[lookup_value];
349
351
  result_data[destination_address + 1] = palette[lookup_value + 1];
@@ -381,7 +383,12 @@ PNG.prototype.getUint8Data = function () {
381
383
  break;
382
384
  case 3:
383
385
  // palette
384
- return this.getUint8Data_case3();
386
+ const c3 = this.getUint8Data_case3();
387
+
388
+ data = c3.data;
389
+ itemSize = c3.itemSize;
390
+
391
+ break;
385
392
  case 4:
386
393
  // grayscale with alpha
387
394
  data = this.pixels;
@@ -125,15 +125,15 @@ class GLTFAssetTransformer extends AssetTransformer {
125
125
  /**
126
126
  *
127
127
  * @param {Asset} source
128
- * @param asset_description
128
+ * @param {AssetDescription} asset_description
129
129
  * @return {Promise<Asset>}
130
130
  */
131
131
  async transform(source, asset_description) {
132
132
  const animationClips = source.animations;
133
133
 
134
134
  if (animationClips !== undefined && animationClips.length > 0) {
135
- // not suitable
136
- return source;
135
+ // animations might cause trouble
136
+ console.warn(`model '${asset_description.path}' contains animations, these animations might not works as intended with micron.`);
137
137
  }
138
138
 
139
139
  /**
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.5",
8
+ "version": "2.34.6",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",
@@ -20,6 +20,7 @@ import { copy_Sampler2D_channel_data } from "../../engine/graphics/texture/sampl
20
20
  import { TextureAssetLoader } from "../../engine/asset/loaders/texture/TextureAssetLoader.js";
21
21
  import { CanvasView } from "../../view/elements/CanvasView.js";
22
22
  import convertSampler2D2Canvas from "../../engine/graphics/texture/sampler/Sampler2D2Canvas.js";
23
+ import { drawSamplerHTML } from "../../engine/graphics/texture/sampler/util/drawSamplerHTML.js";
23
24
 
24
25
  const engineHarness = new EngineHarness();
25
26
 
@@ -309,10 +310,6 @@ async function main(engine) {
309
310
 
310
311
  await EngineHarness.buildTerrain({ engine });
311
312
 
312
- const image = await engine.assetManager.promise("diffuseMap1.png", 'image');
313
-
314
- console.log(image.create());
315
-
316
313
  const vMain = new EmptyView({ classList: ['ui-texture-testing-tool-view'] });
317
314
 
318
315
  vMain.css({