Real Time Video transparency by adding Pixels?
Hey there, I have four mp4 videos and i want to add them all transparency like to achieve a result, which looks like a double exposure. I am kind of new to unity and so there might be a better solution, that i cannot imagine at the moment:
My first idea was, to simply use 4 videoplayer in renderMode CameraNearPlane and than achieve the wished effect by using videoplayers targetCameraAlpha..it works, but the problem is, that the color values aren't added up like a sum. The video in the first layer has always more intensity.
Than I thought about working with textures.. Is there a way to realy add textures and render the sum of all 4 textures, so that the layers are unimportant? Or do I have to add all 4 video values of each Pixel(x,y) and calculate the average.
Do you understand my problem? I hope someone can help!
Answer by HagenHagen · Jun 24, 2017 at 02:45 PM
I just found the screen overlay effect, which includes additiv overlay!: http://devlog.foureyedcat.com/post/129500666432/double-exposure-effect-in-unity-with-the-standard now i acutally need a way to make my video compatible to that effect. The effect requires a 2DTexture.. how can i let my video be that texture?
Your answer
Follow this Question
Related Questions
How can I display video from the script ? 0 Answers
Can not open the video file using a plugin named Opencv for Unity 0 Answers
360° Video player made in Unity - example scene, code or plugin 1 Answer
ARKit how to get maximum FOV non-cropped camera video texture? 0 Answers
Detecting when a video finished playing 4 Answers