3d-dice/dice-box

Mobile support for 3d simulation suspended.

Closed this issue · 3 comments

Currently, suspending the 3D simulation doesn't allow this library to work on mobile as it still tries to load the WebGL context and the WASM code. It would be ideal if this library provided a delicate fallback: "the world doesn't support fancy 3D things; let's just generate random numbers and return the expected result shape."

I made a first pass at adding this feature in version 1.0.11 that was just released. Still needs some testing.

So, I updated the package to the version you recommended and now the dice just work on my iPhone. Unsure if what you implemented fixed it or if some update from apple fixed it lol. Anyway, thanks for the work, 3d dice rolling on my mobile phone is LIT!

Hey. Great to hear that the dice are rolling now. I bumped the module dependencies for BabylonJS, the underlying 3D rendering engine. I guess that may have fixed some webGL rendering issue. I think shadows were also causing some rendering issue that were also fixed. Either way, glad things are working. I'm going to close this issue.