domitry / elegans

Elegant 3D plots generator with WebGL.
http://elegans.readthedocs.org/
Other
59 stars 20 forks source link

Support for OrbitControls #11

Open jlstevens opened 8 years ago

jlstevens commented 8 years ago

First, I would like to thank you for this useful library!

One improvement I would love to see would be some more options for camera controls. In particular, I feel it would be nice to disable camera roll in some circumstances (and keep the z-axis pointing upwards).

I've managed to patch in OrbitControls which I took from this file in three.js (demo). It works well so I was just wondering if there are any plans to support OrbitControls (or something similar) in future?

Alternatively, I would be happy to submit a pull request adding an option to useOrbitControls to elegans.

Edit: I see there was a previous pull request regarding camera controls but I don't think it was addressing quite the same issue.