marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
2.05k stars 266 forks source link

Vedo only render the change when I move my mouse on the screen #1148

Open OhmPuchiss opened 5 months ago

OhmPuchiss commented 5 months ago

it happens to me that the scene only change when I hover my mouse on the screen which does not make it smooth. Can you help to solve this issue ?

OhmPuchiss commented 5 months ago

I am trying to display an image which only occurs when I scroll the mouse

marcomusy commented 5 months ago

Try adding a call to .render() in your callback function.

OhmPuchiss commented 5 months ago

image

marco,

Can you help recreate the reset_camera function but on different plane like xz, yz?

OhmPuchiss commented 5 months ago

i.e. reset_camera on xz and yz plane function

andrefpf commented 5 months ago

I am not very familiar with vedo (yet), but I faced problems related to this in the vtk library.

If .render() not works, as @marcomusy sugested, try to call self.camera.Modified().

OhmPuchiss commented 5 months ago

Oh it works !