Replies: 3 comments 4 replies
-
Indeed that is an issue with vtk.js and the wheel handling. I think that is because the wheel has no coordinates, and we can't poke the proper renderer (just a guess). The best approach will be to reproduce and fix it in vtk.js. HTH |
Beta Was this translation helpful? Give feedback.
-
I found a workaround - adding a dummy actor and removing it immediately. This happened only when I loaded the OBJ file with the OBJ Loader. @amarandon , maybe it can serve as a workaround for now. |
Beta Was this translation helpful? Give feedback.
-
Oh, none of this is necessary, make sure you reset the camera of the renderer! |
Beta Was this translation helpful? Give feedback.
-
Hello, we have a Trame app in which whenever we try to zoom on a visualization using the mouse wheel before doing anything else, the image completely disappears from the screen. However, if we change the orientation of the image by dragging it with the mouse, then we can zoom using the mouse wheel as much as we want and it works fine. This visualization is created with
VtkLocalView
.In the Chrome debugger, I noticed this warning:
And also this error:
However, I checked the source code of our application and we do seem to assign a renderer to the interactor:
I'm new to Trame and VTK but I'm familiar with Python and web development so I thought I might be able to debug this issue myself. I found a handler for the wheel event was added in
vtk.js
, but I don't know what would be the workflow to modifyvtk.js
and see the result of my modifications in our Trame app. I would need some guidance regarding the JavaScript build pipeline used by Trame. I tried editing the minified JS code inside the install directory of thetrame-vtk
Python package, but obviously that didn't take me very far.Beta Was this translation helpful? Give feedback.
All reactions