K3D-tools / K3D-jupyter

K3D lets you create 3D plots backed by WebGL with high-level API (surfaces, isosurfaces, voxels, mesh, cloud points, vtk objects, volume renderer, colormaps, etc). The primary aim of K3D-jupyter is to be easy for use as stand alone package like matplotlib, but also to allow interoperation with existing libraries as VTK.
MIT License
921 stars 123 forks source link

Snapshots mobile browsers support #322

Closed qubvel closed 2 years ago

qubvel commented 2 years ago

Hi, thanks for the awesome library!

I have faced with a problem, my html snapshots does not work on any mobile devices. The page is loaded correctly, but zooming and rotations are unavailable. Is there any solution for that?

artur-trzesiok commented 2 years ago

Hi @qubvel could you share that snapshot with me and tell me what kind of mobile devices do you use (android or ios?)

If the snapshots contain private information pleaes share that on my email: artur.trzesiok@gmail.com

artur-trzesiok commented 2 years ago

update: i realize that: plot.camera_mode = 'orbit' dosen't work on mobile! Is it that your case?

qubvel commented 2 years ago

Hi! Yes, that's my case, changing camera mode to trackball works on mobile. Would be happy to see a fix for the orbit mode, it is more suitable for my case. Thank you very much for your work!

qubvel commented 2 years ago

I have installed the fixed version from the devel branch and now it's working with snapshot_type = "full", thank you! (commit hash b7240ed4681bbe38e07586d6daadb3af35cfc9ea)