pixartist's picture

ModelViewProjectionMatrix is messed up?!

So, I've read that in OpenTK you create a mvp matrix by actually multiplying M*V*P (in c++ you'd do P*V*M). I manage to get a projection, but somehow the axis are always messed up. It seems that either the camera position or the model position is always inverted in space. Is there anything I need to know about converting OpenTK to glsl matrices ? I may provide code if requested, but the problem is so all-encompassing right now, that I don't really know where to begin.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture
Quote:

So, I've read that in OpenTK you create a mvp matrix by actually multiplying M*V*P (in c++ you'd do P*V*M).

Without seeing any code, I would guess that you need to transpose your matrices.

OpenTK follows the Direct3d/XNA convention of row-major matrices. See here for an explanation of the difference.

pixartist's picture

I don't think that's the problem. I made a detailed post here: http://stackoverflow.com/questions/24621113/cant-identify-error-in-my-ma... Should I post it here too ?