I have replicated the setup from vtkWasmBenchmarks, where I use vtkRenderWindowInteractor::InteractorManagesTheEventLoop = false
. It works perfectly.
I followed the latest build instructions for VTK+WASM (updated a week ago) with threading enabled. I managed to get things to work using SharedArrayBuffer
. Threading indeed works, but I am encountering situations where the canvas is not resized correctly (initially) and some LeftButtonReleaseEvents
are missing. This, I will need to debug.
Short question:
Would it be an idea to use the vtkWebAssemblyRenderWindowInteractor.h
instead of vtkRenderWindowInteractor
. I can see from your examples, that you can query the dimensions of the parent window using a canvas id? Also, have you @jaswantp tried a setup with vtkWebAssemblyRenderWindowInteractor
and threading?
Thanks in advance