I make use the following code to capture image using Android and iOS. But the quality of the image captured is not satisfactory.
The image captured by the phone’s camera application is much better.
Any advise to improve the image quality? Thanks
webcamTexture = new WebCamTexture(WebCamTexture.devices.name, 200, 200, 30);
// Apply the texture
GUITexture guiTexture1 = this.GetComponent(typeof(GUITexture)) as GUITexture;
guiTexture1.texture = webcamTexture;
Note: Already tried Edit > project settings > quality…
So pasting to an answer:
I replaced 200, 200 with Screen.width and Screen.height, the image quality is much better. webcamTexture = new WebCamTexture(WebCamTexture.devices.name, Screen.width, Screen.height, 60);
To brighten the image:
If you bring the image into a standard texture you can use something like Graphics.DrawTexture(). It’s neutral value for color is (0.5, 0.5, 0.5), so anything above this value should brighten the image. You could also put the texture on a plane in the scene, and then you could any number of shaders that allow “over-brightening.”