Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualAshaman73

Posted 20 February 2013 - 02:14 AM

Well, this is at least a start. Check if you write the linear depth to the g-buffer.

 

Ok, back to the inverse view matrix. I don't know XNA/SlimDX, but have you ensured, that you upload the matrix in the right order (column-major) ? Check this out by switching

float4 point_ws = mul(point_vs, InverseView);

to

float4 point_ws = mul(InverseView,point_vs);
or use the transpose of inverseView

when doing the first color encoding test


#1Ashaman73

Posted 20 February 2013 - 02:13 AM

Well, this is at least a start. Check if you write the linear depth to the g-buffer.

 

Ok, back to the inverse view matrix. I don't know XNA/SlimDX, but have you ensured, that you upload the matrix in the right order (column-major) ? Check this out by switching

float4 point_ws = mul(point_vs, InverseView);

to

float4 point_ws = mul(InverseView,point_vs);

when doing the first color encoding test


PARTNERS