17
Jul 14

Touchless-Touch with Leap Motion and openFrameworks

In recent projects we used the Leap Motion controller for exploring Touchless-Touch. For this purpose we developed the extension ofxLeapTouch for openFrameworks to map the leap space to screen space and emit touch events.

It should be simple to combine the addon with touch responsive UIs, forward the touch events via the TUIO protocol or handle them by yourself. Have a look at the examples and additional features in the README.

The addon is built upon ofxLeapMotion by Theo Watson, which is already using the new Leap Motion SDK (v2 beta) – featuring a promising skeleton model and a significantly improved hand tracking.


10
Jul 14

QtScreenGrabber – Recording your QtWidgets

It turns out recording your Qt screen/widget from your Qt code as a video is quite tricky.

I created the QtScreenGrabber for making this process faster and easier. It makes it this easy to record your widget and output to a video file:

ScreenGrabber *grabber = new ScreenGrabber;
grabber->setup(QString("output.mpg"), width, height);
grabber->setPixmapSourceWidget(view);
grabber->startRecording(20); // record for 20 seconds

It is based on ofxFFMPEGVideoWriter (developed by Roy Shil)  and one of the Qt examples (Animated Tiles).

You can find the full example here on GitHub:

https://github.com/IxDS/QtScreenGrabber

This is for capturing your widget as a video, but if you need to save the screen once in a while there is an example for that distributed with Qt examples.