Replies: 2 comments
-
|
I guess we would need to investigate, but I suspect, that when the scene state update on the client side, some event handling internal state reset. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is going to be investigated here: Kitware/trame-vtklocal#64 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am having trouble debugging an issue with animating Vtk objects using an asyncio loop. In my application, I'd like to have a simple animation playing while the user can pan around the scene.
However, there is currently a bug where, when the updates are pushed from the server to the WASM client, the camera jolts towards the right and to the top. I've noticed that this jolt is often proportional to the distance from the mouse to the bottom left corner, so whatever code calculating the panning may be unable to retrieve the panning start position, and defaults to the origin as a starting point. I've attached a short screen recording to demonstrate the issue (the motorcycle model rotation is intended).
Recording.2026-04-07.160812.mp4
This example demonstration is made with code copied from the motorcycle example on the trame docs, with the only differences being:
import asyncioandimport randomThe reasoning behind this animation methodology is that I was referencing this previous discussion post about animations, where an asyncio loop is suggested. However, that example did not use vtklocal.LocalView, so I guess there are some issues here that aren't present in that discussion post.
Is there a way to fix the camera panning inconsistencies, with this animation implementation approach? Or is there a better method of implementing animations for Trame? All help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions