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