diff --git a/package-lock.json b/package-lock.json index 76ca26b..58fb3ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2747,7 +2747,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -2768,12 +2769,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2788,17 +2791,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -2915,7 +2921,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -2927,6 +2934,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -2941,6 +2949,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -2948,12 +2957,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -2972,6 +2983,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3052,7 +3064,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3064,6 +3077,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3149,7 +3163,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -3185,6 +3200,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3204,6 +3220,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -3247,12 +3264,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, @@ -4552,6 +4571,11 @@ "find-up": "^3.0.0" } }, + "pngjs": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-3.4.0.tgz", + "integrity": "sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==" + }, "popper.js": { "version": "1.16.0", "resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.0.tgz", @@ -4953,6 +4977,9 @@ "inherits": "^2.0.1" } }, + "rl-loadout-lib": { + "version": "0.3.0" + }, "run-queue": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", diff --git a/package.json b/package.json index 236f760..5314bff 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,9 @@ "dependencies": { "lodash.debounce": "^4.0.8", "moment": "^2.24.0", + "pngjs": "^3.4.0", "react-full-screen": "^0.2.4", - "rl-loadout-lib": "^0.1.4", + "rl-loadout-lib": "^0.3.0", "styled-components": "^4.4.1" }, "devDependencies": { diff --git a/src/builders/SceneBuilder.ts b/src/builders/SceneBuilder.ts index 10b0fe5..b5e9d50 100644 --- a/src/builders/SceneBuilder.ts +++ b/src/builders/SceneBuilder.ts @@ -37,7 +37,12 @@ const defaultSceneBuilder = async ( dracoLoader.setDecoderPath('/draco/') gltfLoader.setDRACOLoader(dracoLoader) - const config = new RocketConfig({gltfLoader, loadingManager, textureFormat: TextureFormat.PNG}) + const config = new RocketConfig({ + gltfLoader, + loadingManager, + textureFormat: TextureFormat.PNG, + useCompressedModels: true + }) const manager = new RocketAssetManager(config) const bodyPromises = playerInfo.map(player => loadRlLoadout(manager, player, defaultLoadouts))