tmpvar / gcode-simulator

convert svg to gcode and watch a virtual cnc machine make cuts in 3d
http://tmpvar.com/project/gcode-simulator/
MIT License
72 stars 10 forks source link

Camera is hard to control #3

Open em opened 10 years ago

em commented 10 years ago

I find it really difficult to control the camera. I'd really love if there were preset camera positions that I could just switch between, and if it was independent of large and small scales.

Here's a suggestion:

1) Maintain a bounding box that expands with every new points to encapsulate that point.

2) Have some pre-set camera /angles/ for top, bottom, etc... (plane centers and corners) that move to those positions on the bounding box.

This approach would give you some really nice perspectives that work with different scales, usually require no messing with the camera at all, and in the case where you need to see a different angle (rarely) it should just be 1 click.

tmpvar commented 10 years ago

Agreed, the camera is extremely wonky.