XMMATRIX w = XMLoadFloat4x4(&world);I am not sure why you would transpose your world and projection matrix.
XMMATRIX v = XMLoadFloat4x4(&view);
XMMATRIX p = XMLoadFloat4x4(&proj);
w = XMMatrixTranspose(w);
v = XMMatrixTranspose(v);
p = XMMatrixTranspose(p);
To map your model from object space to screen space;
- you first multiply it with a world(aka model matrix) to transform your model in to world space.no need to transpose it as far as I'm aware of it.
- After transforming the model into world space, you multiply with view matrix in order to transform into eye space. View matrix is the inverse matrix of the camera's rotation and position. Thus it makes sense to transpose the view matrix (only if your matrix is orthogonal) however, you also need to invert the position component.
- After transforming your model in to eye space, you multiply with the projection matrix in order to map into screen. again i don't see why you would need a transpose of the projection matrix here.