Kitware / trame

Trame lets you weave various components and technologies into a Web Application solely written in Python.
https://kitware.github.io/trame/
Other
426 stars 56 forks source link

remoteview on windows 11 cant work correctly #469

Closed ylwbl closed 7 months ago

ylwbl commented 8 months ago

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.

1709611373844 1709611389371

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()

and this is the package version I used

trame==3.3.0
trame-client==2.14.2
trame-server==2.14.0
trame-vtk==2.6.3
jourdain commented 8 months ago

This is really strange.

Can you provide more information?

ylwbl commented 8 months ago
jourdain commented 8 months ago

Hum, not easy to tell but it could be a driver issue. Does ParaView works on that Window machine?

jourdain commented 7 months ago

Closing since it seems to be a driver issue