Hello! I’m working on making single rendering view with paraview backend.
I successed with running python launcher included in Kitware/visualizer.
I changed the renderer of visualizer from React/Renderers/VtkRenderer to NativeUI/Canvas/RemoteRenderer due to more flexible compability.
I can call the methods in renderer object such as getCamera.
However, it seems that resetCamera and updateCamera are not working.
I can manipulate the camera with mouse interaction (drag).
I cannot find the reason why its not working because getCamera is called exactly the same way that I did with resetCamera and updateCamera.
Could you help me with this?
Below is my code for resetting camera. window.renderer is an object of NativeUI/Canvas/RemoteRenderer class and is set before it is called.
Do you get an error in the console? Can you elaborate on not working? Do you get a response, an error, something else?
Also in term of rendering, we now use the RemoteView of vtk.js that is use in that project as an example which is similar to NativeUI/Canvas/RemoteRenderer but more modern.
Returned value from getCamera is a fulfilled Promise object with camera information such as focal, position, and up vectors. I also checked whether this camera information changes when I manipulate view with mouse and it worked well.
However, returned value from resetCamera is a fulfilled Promise object with value “317”, which is the id number of my view. I think the communication through the websocket works fine but resetCamera doesn’t reset the camera of the view and the view remains the same as before. Do I need to call another method in JS code to apply the change of the camera view in paraview server?
I’m currently working on code that is already implemented with older version of paraviewweb so I think changing the renderer would take so much time
I think I might be misunderstanding something here…
Doesn’t resetCaemra change the angle of view?
I expected that resetCamera rotate the camera to the default orientation which is set when the connection established.
Is there any documentation about available actions for Kitware/visualizer client or paraviewweb?
I look through visualizer website documentation and paraviewweb documentation but still couldn’t find it.
Thanks for your kind replies! It surely helped me a lot