Quantcast
Channel: Answers by "pixel_fiend"
Viewing all articles
Browse latest Browse all 18

Answer by pixel_fiend

$
0
0
This Blit function worked better than ReadPixels. I'm pretty sure it's just an abstraction of ReadPixels, fullscreen quad, etc. Anyway, this is how I took a snapshot of the webcam and copied it to another texture. // temporary render texture to draw the webcam to RenderTexture _rt = new RenderTexture(Screen.width, Screen.height, 24); Texture2D webcamTexture = LiveTextureBinding.startCameraCapture (true, LTCapturePreset.Size640x480); RenderTexture snapshot = Graphics.Blit(webcamTexture, _rt);

Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>