croquet / microverse

Croquet Microverse (Beta)
Other
181 stars 53 forks source link

KTX2 Drag And Drop Fails to White #69

Closed danielfearnot closed 1 year ago

danielfearnot commented 1 year ago

Dragging and dropping a KTX2 (specifically ETC1S) texture compressed GLB into the test world causes all the textures to be white. DevTools/Ctrl+Shift+i/Inspector Panel - > Network - > basis_transcoder.js and basis_transcoder.wasm both are red with "Request URL: https://croquet.io/lib/basis/basis_transcoder.js Request Method: GET Status Code: 404" and "Request URL: https://croquet.io/lib/basis/basis_transcoder.wasm Request Method: GET Status Code: 404" respectively

If I have the ktx2 glb loaded in default.js, the textures appear just fine. Oddly, drag and drop KTX2 works here https://causeverse.io/horse-events/ that is also running Microverse version 9e5d9a864611fc44571357e957a1dc3e58fc25fb commit or 0.7.5 . Please delete any placed objects immediately after testing in that space.

Test world: https://croquet.io/microverse/index.html?world=test&q=euc9ljrmvi#pw=a8uNQ5zkWjXK55IT1QVErw Microverse Version: 6bba6457bafdfc6b70c24ac4c51e164c3060b89b commit or 0.7.5 Windows 11 Laptop CPU: i9-12900H Opera GX: Your version isLVL 5 (core: 101.0.4843.85) Test Object: WaterBottleKTX2_ETC1S.glb KTX2DragAndDropWhiteBottle

yoshikiohshima commented 1 year ago

Thank you for reporting. The request for wasm is off so that is a bug. croquet.io/microverse installation is built differently from ones based on create croquet-microverse so I think the former needs to take the path component into account properly.

yoshikiohshima commented 1 year ago

The commit (4847cee) is supposed to fix it. Let me test it a bit more.

yoshikiohshima commented 1 year ago

The top level installation at croquet.io/microverse is updated. A new version of library will be rolled out later, as the current version works in that configuration.

danielfearnot commented 1 year ago

I see the textures in the old session ID, and when I dragged and dropped into a brand new https://croquet.io/microverse/index.html?world=test space, the textures worked flawlessly. Closing the issue!