Troubleshooting Genvid in Unity

Here are a few hints at how to work around some potential issues when using the Genvid Plugin.

The Genvid dlls are not detected properly by Unity

We are unaware of the cause of the issue yet, but it seems that sometimes the Genvid dlls are not detected when attempting to build the Unity sample. We suggest that you delete the Library folder of the sample project and attempt to build again.

The video stream is not captured properly on some machines

Genvid SDK only works with a Windows D3D11 driver. If you try to set it otherwise, it will report an error. You can try to run the game with the option -force-d3d11.

The video displays upside down in the stream

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.)

The python scripts keep failing with a Unity License error

The command package.py package or package.py all and the command unity.py prepare can lead to errors when using Unity Pro version. It was noticed in an earlier version of Unity that the Pro license of Unity would get deleted when using batch mode, though the issue was not noticed when using the Personal license. To solve this issue, you can re-enter your license number and try the command again. Note that the license will get deleted everytime that the batch mode is called (when using the python script related to Unity). We strongly suggest that you update your Unity version to a later version where this issue does not occur instead.