Earlier in the year, we showed off a feature that teased developers with the ability to create shapes attached to the device’s camera feed.

Today, we’re happy to announce that this feature has been added to daily build 2013.2106 for iOS devices. This functionality will allow developers to use the camera feed as a texture, which means the texture can be placed under objects and overlays, on top of objects, within containers, or attached to box2d objects.

In addition, developers can also apply effects to the real-time camera feed, which results in some neat distortion of the environment.

We can’t wait to see what the community does with this!

To set the shape’s texture fill to the camera feed, it is as simple as defining the shape and setting the fill type to camera:

Setting the effect on the camera feed works the same way as setting an effect on existing fill types. For example, the sobel, and pixelate filter works on the camera feed in real-time to produce the final visual effect with the syntax below:

We’re adding two sample projects to our Github repository. One sample shows several fish overlayed on top of the video feed, with the ability to toggle filters. The second sample shows several box2d objects with the camera feed as the fill and different filter effects applied to each shape object.

The two sample projects are available here.

Since there are countless new ways to exercise this functionality, this feature should be treated as a beta feature. This feature works with most single-pass filters and is only available to Pro and above users.

See the video below for an example.

Happy Holidays!

Originally posted here:  

Holiday Surprise: Camera Feeds as Textures, Real-Time Effects