For an upcoming project, I need to create a Camera controlled by a touch screen. The features would be :
- One finger drag : orbit
- Two fingers drag : pan
- Classic two fingers zoom in/out : zoom in/out
Thanks to the Editing Framework, this seems to be easily doable (all I did was creating TouchCamControl vl plugin).
Right now though I’m struggling with a few things :
- For some reason on startup, the cam “shakes” when you touch the screen. After making a few gestures, all works fine.
- Sometimes, when going fullscreen, the cam simply does not react to any gesture
- As I’m not familiar with event thingies, the way I’m handling the behaviors (see the OrbitBehavior, PanBehavior and ZoomBehavior vl modules inside) might not be pretty clean. There are still some pretty anoying things like : orbit with one finger and then put another finger on the screen, and then cam’s interest moves instantly. I understand this comes from the HoldLatest node I’m using that sends the last finger and as a consequence moves the cam. Unfortunately I have no idea how to solve this right now :/
I think this could be a pretty cool feature to have.
So here’s where I am right now, any help is greatly appreciated :)
Thanks in advance
EDIT : needs b36 to work, the VL node TouchCamControls will stay red otherwise :)
touch_cam.zip (18.9 KB)