jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
936 stars 185 forks source link

Would like to disable mesh preview mouse controls #296

Closed mstanley103 closed 1 year ago

mstanley103 commented 4 years ago

I'm trying to use pythreejs to implement a simple display that will eventually rotate as a function of a rotation measured by an external sensor board. A simple preview of my imported mesh works great except for one thing: it's sensitive to mouse inputs, which can be used to rotate or pan the image. I would like to turn off that function and control the rotation explicitly - which I already know how to do using a quaternion. Building up a full scene with lights, camera, etc can do the job, but seems significantly slower and is more than I need. Can anyone advise if what I'm trying to do is possible? Again, I just want to disable the mouse controls on the mesh preview. My example is attached as a zip.

copter.zip

vidartf commented 4 years ago

Having a simple function that sets up scene/renderer for you would probably be your best bet. You mention that it seems "significantly" slower, so I'm curious what kind of creation times you are seeing.

mstanley103 commented 4 years ago

Thanks for the quick response. I'll have to set up an apples to apples comparison to see if I can quantify response times. My current scene definition is probably more complex than it needs to be. I've spent a lot of time trying to get it (full scene/renderer definition) right, when in fact the preview is exactly what I want with the exception of the mouse issue.

vidartf commented 1 year ago

Closing as stale.