Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#ActualBrother Bob

Posted 31 May 2013 - 09:23 AM

The matrix itself does not transform the vertices into the unit cube. That happens at the perspective division stage when the W-component is normalized.

 

The element -Zn*Q at (4,3) will copy and scale the Z-component of the vertex into the W-component. When the W-component is normalized, the X, Y and Z-coordinates are effectively divided by -Zn*Q*Z. That's where the perspective effect and your missing scaling comes from.


#1Brother Bob

Posted 31 May 2013 - 09:22 AM

the matrix itself does not move the vertices into the unit cube. That happens at the perspective division stage when the W-component is normalized.

 

The element -Zn*Q at (4,3) will copy and scale the Z-component of the vertex into the W-component. When the W-component is normalized, the X, Y and Z-coordinates are effectively divided by -Zn*Q*Z. That's where the perspective effect and your missing scaling comes from.


PARTNERS