Search Results for

    Show / Hide Table of Contents

    Transparent Capture

    AVPro Movie Capture supports adding transparency to captures.

    You can directly encode transparency into your capture when using a codec that supports alpha channels such as Apple ProRes 4444. See the codecs page for information about which codecs support transparency.

    We also provide support for capturing transparency as part of each frame. This can be either left/right, where the alpha channel is encoded to the right half of the frame; or top/bottom, where the alpha channel is encoded into the bottom half of each frame. Recombining the alpha channel with the colour portion is best done in a shader, examples of which can be found with our video playback plugin AVPro Video.

    To encode using transparency:

    1. Use a CaptureFromCamera component or if you use the Editor Window select “Camera” as the source type
    2. Select the method used to encode transparency Transparency capture modes: None, Codec, Top Bottom, Left Right
    3. Set the background colour of your capture camera and make sure the alpha value is 0
    4. Set the capture camera clear flags to “Solid Color”
    5. If you’re using the CaptureFromCamera360ODS component then make sure to set the Camera Clear Color alpha to zero in the capture component settings
    6. If you are using Top Bottom or Left Right transparency modes you will need to add the AVProMovieCapture/SideBySideAlpha shader to the Always Included Shaders list Always Included Shaders: AVProMovieCapture/SideBySideAlpha
    Note

    Unity by default is not a compositing system so the alpha channel it generates is generally only for alpha blending during rendering and is not designed to be correct for exporting. You may need to create or tweak shaders to ensure that the correct alpha values are being rendered

    Note

    Plese be aware that many post-process filters do not preserve the alpha channel

    In This Article