Welcome, Guest.
Username: Password: Remember me

TOPIC: Matrix - Vector multiply Bug

Matrix - Vector multiply Bug 4 months 2 weeks ago #1

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! [ Click to expand ]


EDIT*
Otherwise it gives green tint.

Games that I used, were Blender and Mirrors Edge.
GitHub
If you want to buy me a coffee, donate :)
Last Edit: 4 months 2 weeks ago by Fu-Bama.
The administrator has disabled public write access.

Matrix - Vector multiply Bug 4 months 2 weeks ago #2

Good catch. The GLSL code generator didn't handle literal matrices correctly. This is fixed in commit 77bdd3ac9d5c9fde4dc93b31a2fc05deef9d6dfa.
Cheers, crosire =)
Last Edit: 4 months 2 weeks ago by crosire.
The administrator has disabled public write access.