bnoazx005 / TDEngine2

TDEngine2 is a cross-platform game engine
Apache License 2.0
18 stars 4 forks source link

[Bug] Invalid projection matrix of an orthographic camera under OpenGL context #35

Closed bnoazx005 closed 4 years ago

bnoazx005 commented 4 years ago

Bug report

Environment

Win 10 (x64) / Visual Studio 2017 / OpenGL 3.x

Steps to reproduce the issue

1) Specify OpenGL mode in settings.cfg. 2) Run the application with COrthoCamera.

What's the expected result?

An orthographic projection should create feel of 2D planar view, but under OpenGL it's not only planar, but also invalid perspective version of the projection transform.

What's the actual result?

Under OpenGL the view is not only planar, but also invalid perspective version of the projection transform.

bnoazx005 commented 4 years ago

The described problem was fixed in 1c0bbfe1ee153d4bb40e213fbebcbd2931858559, but there is another one with perspective projection under both GAPIs.