Open sloopidoopi opened 9 years ago
Typically DirectX and OpenGL textures have the Y coordinates reversed. There is an option to flip the texture in the Spout SDK. There have been some changes to this and maybe this has been missed. "bInvert" is default but it depends on how the textures are created and managed.
bool SendTexture(GLuint TextureID, GLuint TextureTarget, unsigned int width, unsigned int height, bool bInvert=true, GLuint HostFBO = 0);
Your handy tip will allow Ben to put it on the todo list.
Hi, i played with the latest version and realized that the texture from Unity comes flipped on the y-axis into the Spout Receiver. Don't know exactly if this is a common problem with Unity RenderTextures.(It confuses me that nodody complained about that till now) . There is a quick workaround for that: Just use this script from Unity to change the Camera.projectionMatrix and add it to the Spout sender camera: http://docs.unity3d.com/412/Documentation/ScriptReference/Camera.OnPreCull.html