From 58feedb53d6e00730de18c03c6c27ae312176303 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 24 Apr 2026 19:38:25 +0900 Subject: [PATCH] wip --- packages/frontend/src/world/room/objects/allInOnePc.ts | 6 ++++++ packages/frontend/src/world/room/objects/djPlayer.ts | 6 ++++++ packages/frontend/src/world/room/objects/laptopPc.ts | 6 ++++++ packages/frontend/src/world/room/objects/pictureFrame.ts | 6 ++++++ packages/frontend/src/world/room/objects/poster.ts | 6 ++++++ packages/frontend/src/world/room/objects/tabletopFlag.ts | 6 ++++++ .../src/world/room/objects/tabletopGlassPictureFrame.ts | 6 ++++++ .../frontend/src/world/room/objects/tabletopPictureFrame.ts | 6 ++++++ packages/frontend/src/world/room/objects/tapestry.ts | 6 ++++++ packages/frontend/src/world/room/objects/wallCanvas.ts | 6 ++++++ .../src/world/room/objects/wallGlassPictureFrame.ts | 6 ++++++ 11 files changed, 66 insertions(+) diff --git a/packages/frontend/src/world/room/objects/allInOnePc.ts b/packages/frontend/src/world/room/objects/allInOnePc.ts index d00c2a8e78..a6f61983f1 100644 --- a/packages/frontend/src/world/room/objects/allInOnePc.ts +++ b/packages/frontend/src/world/room/objects/allInOnePc.ts @@ -85,6 +85,12 @@ export const allInOnePc = defineObject({ applyFit(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/djPlayer.ts b/packages/frontend/src/world/room/objects/djPlayer.ts index d19f4d1788..6f2b43063f 100644 --- a/packages/frontend/src/world/room/objects/djPlayer.ts +++ b/packages/frontend/src/world/room/objects/djPlayer.ts @@ -61,6 +61,12 @@ export const djPlayer = defineObject({ applyFit(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null && options.customPicture !== '') { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/laptopPc.ts b/packages/frontend/src/world/room/objects/laptopPc.ts index c0272f42c9..8950ec015c 100644 --- a/packages/frontend/src/world/room/objects/laptopPc.ts +++ b/packages/frontend/src/world/room/objects/laptopPc.ts @@ -95,6 +95,12 @@ export const laptopPc = defineObject({ applyFit(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/pictureFrame.ts b/packages/frontend/src/world/room/objects/pictureFrame.ts index 43cd12257c..b350e74944 100644 --- a/packages/frontend/src/world/room/objects/pictureFrame.ts +++ b/packages/frontend/src/world/room/objects/pictureFrame.ts @@ -161,6 +161,12 @@ export const pictureFrame = defineObject({ applyDepth(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/poster.ts b/packages/frontend/src/world/room/objects/poster.ts index 11cc760634..229ab678de 100644 --- a/packages/frontend/src/world/room/objects/poster.ts +++ b/packages/frontend/src/world/room/objects/poster.ts @@ -93,6 +93,12 @@ export const poster = defineObject({ applySize(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/tabletopFlag.ts b/packages/frontend/src/world/room/objects/tabletopFlag.ts index 86d2227fa7..623aab6cb6 100644 --- a/packages/frontend/src/world/room/objects/tabletopFlag.ts +++ b/packages/frontend/src/world/room/objects/tabletopFlag.ts @@ -52,6 +52,12 @@ export const tabletopFlag = defineObject({ applyFit(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/tabletopGlassPictureFrame.ts b/packages/frontend/src/world/room/objects/tabletopGlassPictureFrame.ts index 36e1ab6dfa..057652e0c6 100644 --- a/packages/frontend/src/world/room/objects/tabletopGlassPictureFrame.ts +++ b/packages/frontend/src/world/room/objects/tabletopGlassPictureFrame.ts @@ -93,6 +93,12 @@ export const tabletopGlassPictureFrame = defineObject({ applySize(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/tabletopPictureFrame.ts b/packages/frontend/src/world/room/objects/tabletopPictureFrame.ts index 9f546f29cd..cb11688388 100644 --- a/packages/frontend/src/world/room/objects/tabletopPictureFrame.ts +++ b/packages/frontend/src/world/room/objects/tabletopPictureFrame.ts @@ -166,6 +166,12 @@ export const tabletopPictureFrame = defineObject({ applyDepth(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/tapestry.ts b/packages/frontend/src/world/room/objects/tapestry.ts index e727e4501e..ffe35ee11a 100644 --- a/packages/frontend/src/world/room/objects/tapestry.ts +++ b/packages/frontend/src/world/room/objects/tapestry.ts @@ -97,6 +97,12 @@ export const tapestry = defineObject({ applySize(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/wallCanvas.ts b/packages/frontend/src/world/room/objects/wallCanvas.ts index daa1d8f01d..3190f62f18 100644 --- a/packages/frontend/src/world/room/objects/wallCanvas.ts +++ b/packages/frontend/src/world/room/objects/wallCanvas.ts @@ -83,6 +83,12 @@ export const wallCanvas = defineObject({ applySize(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE; diff --git a/packages/frontend/src/world/room/objects/wallGlassPictureFrame.ts b/packages/frontend/src/world/room/objects/wallGlassPictureFrame.ts index 1def8b83bc..693a0f01a2 100644 --- a/packages/frontend/src/world/room/objects/wallGlassPictureFrame.ts +++ b/packages/frontend/src/world/room/objects/wallGlassPictureFrame.ts @@ -93,6 +93,12 @@ export const wallGlassPictureFrame = defineObject({ applySize(); const applyCustomPicture = () => new Promise((resolve) => { + // テクスチャの読み込みに失敗したときの救済 + // TODO: 丁寧な実装に直す + setTimeout(() => { + resolve(); + }, 10000); + if (options.customPicture != null) { const tex = new BABYLON.Texture(options.customPicture, scene, false, false); tex.wrapU = BABYLON.Texture.MIRROR_ADDRESSMODE;