I use the script attached in the following link.
https://developer.vuforia.com/library/articles/Solution/How-To-Access-the-Camera-Image-in-Unity
This post seem very old. Many class , attribute doesn't exist now.
How to access the camera Image (without augmentation)?
I tried following :
Texture2D texture2D = textureGameObject.GetComponent<Renderer>().material.mainTexture as Texture2D ;
(textureGameObject is the BackgroundPlane gameObject, the grandson of ARCamera prefab in Vuforia.)
I can get this texture easily in Mac OSX , But this get nothing on IOS 9.1.
What is the right way to access the camera Image (without augmentation)?
Thanks!!
Hello, bugaboostudio.
How do you have done this part: I stored the pixel results (line 74, pixels[0], pixels[1], pixels[2]) in a Color32 variable?
I used this exemple: http://www.imgportal.net/imgresources/?page_id=287
But i keep getting this error:
Exception in callback: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> UnityEngine.UnityException: LoadRawTextureData: not enough data provided (will result in overread).
Best regards, Rafael.