- Home /
Dual Webcams work under Windows but not Linux
We are doing some testing with webcams and textures. We believe everything is set up properly, and everything works under windows without an issue.
When we export to Linux (Ubuntu 14.4) only the first of the two webcams provides a picture. We have tried multiple cameras, and multiple configurations.
If we just ask for one webcam/texture.. it works just find under Linux. As soon as we add a second, it only works under windows. Open for suggestions. Maybe the multiple camera stuff isn't caught up on the linux side?
Thanks in advance.
Answer by josetgg · Mar 29, 2015 at 05:27 AM
Hi,
sorry I can't help you with an answer but I was wondering if you could point me in the right direction to have multiple webcam textures each playing a different webcam feed each at the same time. I keep getting the same errors "could not start graph" and "could not pause pControl". this erros are thrown when I try to play the second webcamtexture
This is my simple test script, this script is attached to a plane gameobject, I have two of these game objects in the scene and of course two webcams.
`public int cam;
WebCamTexture w;
// Use this for initialization
void Start () {
w = new WebCamTexture(WebCamTexture.devices[cam].name);
renderer.material.mainTexture = w;
w.Play();
}`
Answer by Nanity · Mar 29, 2015 at 08:21 AM
Best option would be to file a bugreport if you can reproduce the issue on the latest build. Does not seem intended to be honest.
Your answer
Follow this Question
Related Questions
WebCamTexture cannot be displayed in Windows 8 tablet(HP ElitePad) 0 Answers
Live webcam stream in unity 2 Answers
Webcam Texture and Flashlite (Android) 3 Answers
Webcam with no name 3 Answers