Hence the same error occurs with PickProp on a renderer
vtkRenderer *r = // ...
// ...
r->PickProp(x, y);
The same behavior is observed with vtkOpenGLRenderer.
Please note that everything was compiled in compliance with instructions on the Examples page, and that other features work correctly.
Might anyone offer some insight into what might be happening? The CaptureBuffers method of vtkHardwareSelector invokes render_window->Render() under the hood, but this method seems to work properly outside of the above.
@Sebastien_Jourdain I am developing app where user need to pick actor. However it appears picking operation is not working in web. Can you please suggest any workaround.
Thanks @Sebastien_Jourdain for quick response. Yes I am working on both VTK.js and VTK/wasm. Picking operations are working fine in VTK.js. But performance of VTK.js decreases as number of actors increases. In my case I have few thousand of actors. On other hand VTK/wasm work like a charm. I tested with 3000 actors and it worked smoothly. However I was disappointed to see picking operation is not working in otherwise a very good product. From your comment it appears to be changing few libraries.
Would it be possible for you or somebody to guide me how to fix this? I shall be very thankful.
To fix that part, the GL code will need to have some ifdef pass specific so the webgl conversion can actually work. But unfortunately, I don’t know who can help right now on that topic. @thewtex would you know?