The problem of edge deformation in Directx projection transformation

  • Tags : directx
  • time :

During the process of learning how to implement custom cameras in Directx, it was found that the model, which was originally centered and displayed normally, would deform when transformed to the window edge area, as shown in the figure.




.

Convert D3DXMatrixPerspectiveFovLH (
&Amp; Proj,
D3DX_ PI * 0.5f,//Reducing this value will reduce the degree of deformation
(float) 800/(float) 600,
1.0f,
1000.0f);

After changing to 0.25f:

Through comparison, it can be found that reducing the angle of projection transformation greatly improves the deformation problem. As for the principle, further research is needed.