H5 problem,it works fine in chrome, but in other browers and in app webview,it doesn't work。
389103326 opened this issue · comments
The console log doesn't print "Sorting web worker WASM setup complete. Sorting web worker ready." I suspect the sort worker wasm compatibility.
Please excuse my ignorance, but what exactly do you mean by H5? Also, would you be able to share your setup code? That might help me troubleshoot.
Thanks for your reply.
H5 I means the web page in mobile device, like andriod phone or iphone.
My problem is the same as the issue "#56". The UI display “Processing splats...” the whole time. I can access to the web page and see the scene in the PC, not successed in mobile.
But my debug message is different: "CompileError: WebAssembly.compile(): invalid memory limits flags (enable via --experimental-wasm-threads) ……". And I already use "sharedMemoryForWorkers" to disable share memory.
Here is my setup code.
`
import * as GaussianSplats3D from "@mkkellogg/gaussian-splats-3d";
import VConsole from "vconsole";
const vconsole = new VConsole();
const viewer = new GaussianSplats3D.Viewer({
cameraUp: [0, -0.01, 0],
initialCameraPosition: [0, 0, 4],
initialCameraLookAt: [0, 0.7, 0],
integerBasedSort: false,
sharedMemoryForWorkers: false,
});
viewer
.addSplatScene("../assets/data/pagoda.ply", {
showLoadingUI: true,
})
.then(() => {
viewer.start();
});
`
In addition, in mobile, is not all of browers doesn't work. It works in chrome@100, but in my phone defalut browers or in app's webview, the UI display “Processing splats...” the whole time. The OS of my phone is Android 11.
Have you solved the problem now? I had the same problem