Matrix - Vector multiply Bug

  • Fu-Bama
  • Topic Author
More
6 years 1 month ago - 6 years 1 month ago #1 by Fu-Bama Matrix - Vector multiply Bug was created by Fu-Bama
It seems that DirectX Matrix * Vector is interpreted as Vector * Matrix when using OpenGL game.
Same goes with mul() function.
Converting RGB - YUV - RGB works when:
in OpenGL games I use mul(Vector, Matrix)
in DirecX games I use mul(Matrix, Vector)

Here's little test:
Warning: Spoiler!


EDIT*
Otherwise it gives green tint.

Games that I used, were Blender and Mirrors Edge.
Last edit: 6 years 1 month ago by Fu-Bama.

Please Log in or Create an account to join the conversation.

  • crosire
More
6 years 1 month ago - 6 years 1 month ago #2 by crosire Replied by crosire on topic Matrix - Vector multiply Bug
Good catch. The GLSL code generator didn't handle literal matrices correctly. This is fixed in commit 77bdd3ac9d5c9fde4dc93b31a2fc05deef9d6dfa.
Last edit: 6 years 1 month ago by crosire.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.