Search Unity

Render video to quadratic shape within a canvas

Discussion in 'UGUI & TextMesh Pro' started by unity_Ws2gUmHsxHXsFA, Nov 23, 2017.

  1. unity_Ws2gUmHsxHXsFA

    unity_Ws2gUmHsxHXsFA

    Joined:
    Nov 23, 2017
    Posts:
    2
    HI,
    I've tried following a bunch of tutorials but I thought I should come here for some better advice since most tutorials are around 3d shapes/ textures or tilemaps.

    What I need to do is render a piece of video inside a UI canvas in 2D. The video though should not be rendered into a 16: 9 rectangle but rather a strange shape that is short at one end then expands unevenly to the taller other end (why you ask? Because it is ultimately getting projected onto a curved surface so if I can get it to render like this it will be correcting for the surface distortion).

    Can anyone give me the 'right' way to do this? I'm assuming the video should be a render texture - just not sure how to tell it to render into a 2D quad / sprite.