article

sidaigle avatar image
sidaigle posted

The video displays upside down in the stream - Unity

Unity uses DirectX11 to render, but uses the OpenGL convention for the Texture coordinate.

OpenGL uses the convention:

[0, 0]

Bottom / Left

[1, 1]

Top / Right

DirectX uses the convention:

[0, 0]

Top / Left

[1, 1]

Bottom / Right

We corrected this issue in the Genvid prefab. However, if your stream video displays upside down, use the SetParameter(Object,String,Int32) Genvid SDK function with the video.useopenglconvention parameter to flip it:

GenvidSDK.SetParameter(m_StreamName, "video.useopenglconvention", 1)

(The “1” toggles flipping the video.)

unity engineUnity
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Article

Contributors

sidaigle contributed to this article