- Home /
Webcamtexture at 1080p 50fps produces black image
I'm trying to get the 1080p 50fps video from a blackmagic intensity pro 4k as the texture of a plane, but have only managed to do so when I set the camera to 1080i. I'd like to get progressive video, so I've tried setting the requested resolution and fps up in the webcamTexture constructor, but it changes nothing:
void Start () {
//webcamTexture = new WebCamTexture(WebCamTexture.devices[1].name, 1920, 1080, 50);
webcamTexture = new WebCamTexture();
webcamTexture.deviceName = WebCamTexture.devices[1].name;
Renderer renderer = GetComponent<Renderer>();
renderer.material.mainTexture = webcamTexture;
webcamTexture.Play();
Debug.Log(webcamTexture.deviceName);
}
Answer by RedRhino10 · Feb 15, 2018 at 02:19 PM
Just a thought is it definitely device 1? May be its device 2 if you already have another camera by default? Or maybe its device 0?
Also is the material of the plane black also? Try it with white which may help (for videos I've used if the material is white it looks a lot brighter
Good luck!
Yeah, definitely device 1, there is another camera connected (Vive headset built in camera), which is camera 0. I haven't added any materials to the plane, everything is default, and it is working with interlaced video from device 1, and default video from device 0. $$anonymous$$y goal is to get 1080p video from the fixed camera connected via a blackmagic card (device 1). Thanks anyway!