I use the official examples, and try to use vtkRmoteView instead of vtkLocalView,but it cant work correctly, when I press and drag the model with the left mouse button,the ws broke like this but if I use vtkLocalView, it works correctly.
The following is code
renderer = vtkRenderer()
renderWindow = vtkRenderWindow()
renderWindow.AddRenderer(renderer)
renderWindowInteractor = vtkRenderWindowInteractor()
renderWindowInteractor.SetRenderWindow(renderWindow)
renderWindowInteractor.GetInteractorStyle().SetCurrentStyleToTrackballCamera()
cone_source = vtkConeSource()
mapper = vtkPolyDataMapper()
mapper.SetInputConnection(cone_source.GetOutputPort())
actor = vtkActor()
actor.SetMapper(mapper)
renderer.AddActor(actor)
renderer.ResetCamera()
server = get_server()
server.client_type = "vue2"
ctrl = server.controller
with SinglePageLayout(server) as layout:
layout.title.set_text("Hello trame")
with layout.content:
with vuetify.VContainer(
fluid=True,
classes="pa-0 fill-height",
):
view = vtk.VtkRemoteLocalView(renderWindow)
if __name__ == "__main__":
server.start()
gpu and gpu driver NVIDIA GeForce RTX 2060 with Max-Q Design 30.0.15.1278
I have try the same python file at my another laptop,this notebook does not have a stand-alone video card. It uses an integrated video card.and its running well
I use the official examples, and try to use vtkRmoteView instead of vtkLocalView,but it cant work correctly, when I press and drag the model with the left mouse button,the ws broke like this but if I use vtkLocalView, it works correctly.
The following is code
and this is the package version I used