- Home /
Show a WebCamTexture with alpha
Hi. Is there any way of displaying the output of a WebCamTexture half transparent ? This is what I'm doing:
webcamTexture = new WebCamTexture();
deviceCamera = new GameObject("Camera output");
deviceCamera.transform.position = Vector3.zero;
deviceCamera.AddComponent<GUITexture>();
deviceCamera.guiTexture.enabled = true;
deviceCamera.guiTexture.pixelInset = new Rect(0f,0f,Screen.width,Screen.height);
deviceCamera.guiTexture.texture = webcamTexture;
webcamTexture.Play();
Funny thing is, when I change the alpha property in the inspector it actually works but only in the Scene view, not in the Game view (see picture attached). I assume it's setting a blue background automagically somewhere.
Answer by Agustin Petrini · Jun 07, 2012 at 04:14 AM
I needed to change the alpha value of the GUITexture colours.
Hey Ina. It was a prototype for a social platform I made for a client back a few months ago. It was a very interesting concept, but we are still looking for investors to continue the development.
Looks really Cool h.. Whats the concept? Can you elaborate it in brief? @Agustin.Petrini
Hey harschell. No, not really. I cannot say much more here sry. You are welcome to contact me in skype fr a chat though. $$anonymous$$y ID is agustin.petrini
Your answer
Follow this Question
Related Questions
Need help with opacity error 0 Answers
Blending and Decaying Alphas 0 Answers
Transparency with correct culling 2 Answers
Sorting issues within single transparent mesh 1 Answer
[WP8.1] WebcamTexture won't play 1 Answer