matrixdirectx-11directxmath

Worldviewpoj Range


Today I debugged my code and saw that my worldviewproj was huge (sorry it it's not readable):

enter image description here

{ 4.91479736e+010, -6.29708390e+010, -863636224, 432034112 }

That's the first line, and I'm trying to debug my code because my application doesn't display anything. My world matrix is the identity matrix and my view matrix is also huge.

So my question, what's the range of a worldviewproj matrix? Or is it normal that it is that big and it's something else?

EDIT: Figured out I was wrongly setting the fovY of the projection matrix :) But,... as I said the view matrix is now the problem :( The View Matrix has in every entry -431602080

EDIT 2: I can facepalm myself!! I forgot to store the computed matrix in the view variable in my camera class :|


Solution

  • My Worldviewproj was so big, because

    1) I set wrong arguments to the projection matrix, and

    2) the view matrix was filled with random data because I failed to initialize it!