Log in or register to post comments

Pick color from camera

December 16, 2013 - 12:09pm #1

Hi to every one .

I am new in the world of the  augmented reality, and honestly I am fascinated from the capabilities of the vuforia extension for unity3d. What I want to achieve is the following.

Lets say that I have  an image with background color red and a shape in the midle , for example a sketch of Santa clause. I want when I point the tablet on the image the sketch of the Santa Claus  to rotate But the background color be the color that the camera sees  . How can I do this ?

one way is to create a sketch of Santa Claus with transparent background , right ? But then the problem is that with the rotating sketch you will see and the original sketch from the image.

Is there any way to use the color of the background in our case the red that the camera sees and use that color in order to create a layer with that color over the target image  and then superimpose the rotating sketch over that layer.  I want to do that in order to make a more realistic transition from the real image to the augmented .

thanks in regards 

Pick color from camera

December 16, 2013 - 12:16pm #3

You can get the pixels of the camera image as explained in this article:

https://developer.vuforia.com/resources/dev-guide/unity-camera-image-access

 

Pick color from camera

December 16, 2013 - 12:15pm #2

Something like this? - http://www.youtube.com/watch?v=AweElrDKwvk

You can analyze the background color, and use this information to customize color rendering using the Image class.

See:

https://developer.vuforia.com/resources/dev-guide/unity-camera-image-access

&

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/analysing-colors-image-target

Log in or register to post comments