Hello !
I am currently using a WebCamTexture to display my device camera feed and take a simple snapshot a the click of a button. Here's some code showing how I take my snapshot :
snapshot= new Texture2D(cameraTexture.width, cameraTexture.height);
snapshot.SetPixels(cameraTexture.GetPixels());
snapshot.Apply();
webCamTexture.mainTexture = snapshot;
Here my cameraTexture is my WebCamTexture object, and my webCamTexture is my UITexture object (where the texture is displayed).
This code works perfectly well on Android devices, the picture looks great. However, on the two devices I've tested for iOS (iPad2 and iPad3), the snapped image is extra blurry !
Am I forgetting to focus the camera or something ?
Help is appreciated !
Bypp
↧