- Home /
Convert renderer.material.mainTexture to Webcamtexture
I'm sure most people who read this think the question title is backwards.
Yes, I AM trying to obtain Webcamtexture from renderer.material.mainTexture.
Let me explain....
I have one HD webcam. From this webcam I obtain a WebCamtexture which I am using in an OpenCV application. The problem is I have to down res this texture in order to get good performance-playback.
I also need to display this webcam texture. But because of the poor quality it isn't usable.
So, I am using a second component to get high performance shader-based video renders(AVPro Live Camera). But I can't display the video feed from the identical webcam used for the OpenCV code. Not sure if this is a hardware or software limitation.
So 2 possible workarounds
1- Use 2 webcams!
or
2- use render texture to render the high quality AVPro webcamtexture to a lower res render texture material applied to a quad. Then somehow access this texture and reuse in the OpenCV code.
Does this make any sense?
Your answer
Follow this Question
Related Questions
,iOS WebCamera Texture GetPixels() call returns only black colours? 1 Answer
web cam texture to video file(editor and web both) 2 Answers
WebCamTexture external webcam problem 0 Answers
WebCamTexture camera not activating 0 Answers
Keyboard only working in Development Build. GUI Button only working in non-Development Build 0 Answers