ofxGrabCam
Updated video:
A simple camera for openFrameworks I threw together in transit. Name suggestions welcome!
ofxGrabCam is a camera for browsing your 3D scene. It ‘picks’ the xyz position under the cursor (using the depth buffer to get Z).
Rotations and zoom (left and right mouse drag) are then performed with respect to that xyz position
Inspired by Google SketchUp
P.s. this is probably not much use for point clouds / other sparse datasets where there’s nothing to ‘grab’ onto.
Available on github at http://github.com/elliotwoods/ofxGrabCam
You should also check out https://github.com/Flightphase/ofxGameCamera by the ever obvious jim.
November 11th, 2011 at 3:10 am
this is awesome! i was just thinking yesterday we need a sketchup camera in OF
what i really want is an osx-only gesture camera that can handle zoom with two fingers, *exactly* like skethcup. blender also has a nice two finger rotate metaphor.
November 11th, 2011 at 3:19 am
i forgot to mention: one of the reasons a scroll interface works better than right-click-drag is that many users have right click drag disabled for various reasons. i just gave a workshop here in YCAM the other day and 0% of the attendees could right click drag. everyone had right click assigned to control click.
November 11th, 2011 at 3:24 am
aha thanks
i wonder how clean it would be to require ofxMultitouch (cant remember the names of what would be required right now), especially considering the cross-platform implications.
i presume ctrl+left click drag still works?
November 11th, 2011 at 3:35 am
also the first step must be to get scroll wheel working in openFrameworks.