Kitware / trame-vtklocal

VTK Local Rendering using VTK/WASM to match server side rendering pipeline on the client side.
Other
13 stars 0 forks source link

Remote rendering camera model not handling other interaction styles well #6

Closed banesullivan closed 4 months ago

banesullivan commented 4 months ago

When using vtkInteractorStyleTerrain, trame-vtk's remote view seems to push past the limits of the viewup vector and cause weird behavior.

This results in a ton of warnings in the form of vtkOpenGLRenderer (0x5bd19a1fefe0): Resetting view-up since view plane normal is parallel and the axes orientation widgets jump to positions as shown in video below

I'm wondering if there is a way to improve this

import pyvista as pv
from pyvista import examples
mesh = examples.load_random_hills()
pl = pv.Plotter()
pl.add_mesh(mesh)
pl.add_axes()
pl.enable_terrain_style()
pl.show()

https://github.com/Kitware/trame-vtklocal/assets/22067021/2ef26030-7768-426e-92f3-2c35b3ddac98

jourdain commented 4 months ago

Are you saying that if you were to use the native view (no trame, just vtk), you don't have any issue?

banesullivan commented 4 months ago

I just checked the native view and turns out it is having issues too... This must be an upstream VTK issue.

Sorry for the noise, I thought I had checked the native view before opening this issue.

I'll open an issue upstream in VTK about this