After searching for a while, I've find different solutions to get this "right", most of them suggesting instantiating the WebCamTexture to "a high res of your choosing, thus getting the highest res supported by the camera":
m_CamTexture = new WebCamTexture(camName, 1280, 720, 30);
But the problem I get with this "solution" is that the returned texture is in the same **ratio** as the passed values, even though the actual supported res is not. So say the camera instead is in res 720x1280 (for sake of argument), the texture will be stretched... Are you suppost to perform some magic guesswork here?
How do you, correctly, go about this? We are currently creating a prototype with a tight deadline, so we didn't have time to upgrade to latest version (4.5.3) but instead currently run 4.3.3f (lost of custom stuff that could break).
Thanks!
↧