Quantcast
Channel: Latest Questions by PauloPatez
Viewing all articles
Browse latest Browse all 14

WebcamTexture.GetPixel() bug on Android?

0
0
I'm developing an application that captures color information from device's camera image by using WebcamTexture.GetPixel(), it works perfectly on the editor (Windows), but on the Android build it aparently picks a random (I think) color from the image independently from the point I touch. I can discard any trouble with screen coordinate inputs or value conversions because I tested it with a Texture2D instead of WebcamTexture and it worked perfectly as on the editor. I tried to convert the WebcamTexture to a Texture2D to use Texture2D.GetPixel though, thinking it would solve the problem, but no. I did even set the Texture2D copy of the WebcamTexture as the main texture of a material to render and see if there was some problem with the color information got from GetPixels(), there was no problem with it. Does anyone have any idea about what the problem might be?

Viewing all articles
Browse latest Browse all 14

Latest Images

Trending Articles





Latest Images