Any one knows how this is done?

Hi everyone!

Please find the link below to the video link.

I have 2 questions about the video.

  1. Can this be done in Unity engine?
  2. If this can be done in Unity, any hints (more help if possible) on how to go about it?

To tell you the truth, I’m not anywhere near expert, so am still learning.

Thank you very much for your help.

This is quite complex and the question is a bit broad to be answered easily. I don’t think there’s anything to stop you using Unity, but Unity doesn’t have the functionality built in for this. I think WebCamTexture will get you the mobile device camera image, but for the rest you will need your own code or other libraries/plugins.

The camera on the mobile device would take a screenshot, and an algorithm would look at the pixel data to try and match it to a predefined shape. The algorithm would either match the shape outline, or the paper would have markers printed in specific areas used to determine the shape type and position. When you know which pixels of the screenshot make up the shape, you can use the RGB values to colour the 3D model.

I recommend you read up on Computer Vision and Augmented Reality. OpenCV is quite a well known computer vision library, but I have not tried to use it with Unity.