meshcat-dev / meshcat

Remotely-controllable 3D viewer, built on top of three.js
MIT License
250 stars 44 forks source link

Moving the camera location with mouse? #47

Closed danieljfarrell closed 5 years ago

danieljfarrell commented 5 years ago

Firstly, thank you for such an amazing project. It is exactly what I was looking for doing visualisation of ray-tracing (open source python). I'm going to build the visualiser part of the code around meshcat.

Clicking and dragging in the browser window rotates the camera around it's origin. It is possible to also change the origin point of the camera using the mouse with a keyboard combination pressed?

rdeits commented 5 years ago

Try right-clicking and dragging with the mouse. Does that do what you're looking for?

danieljfarrell commented 5 years ago

I tried a few combinations, i’ll try again, but nothing seemed to translate the camera. Will report back ...

danieljfarrell commented 5 years ago

It seems on a Mac track pad, holding ‘Ctrl’ and moving the mouse (which is normal a right click) doesn’t not work. You have to use two fingers.