DiligentGraphics / DiligentEngine

A modern cross-platform low-level graphics library and rendering framework
http://diligentgraphics.com/diligent-engine/
Apache License 2.0
3.37k stars 318 forks source link

Why does the projection matrix appear to be in a left-hand coordinate system #252

Closed Haidiye00 closed 1 year ago

Haidiye00 commented 1 year ago

image

image

Here is how to calculate the projection matrix based on the engine of bgfx image

Haidiye00 commented 1 year ago

m32 should be -1 but in Diligent it is 1,why,

Haidiye00 commented 1 year ago

image

TheMostDiligent commented 1 year ago

Diligent uses DirectX convention by default.

TheMostDiligent commented 1 year ago

https://github.com/DiligentGraphics/DiligentCore/blob/master/doc/CoordinateSystem.md

Haidiye00 commented 1 year ago

thanks