Upbge: Camera Transforms are corrupted following code change to Matrix Transforms

Created on 24 Jun 2020  路  3Comments  路  Source: UPBGE/upbge

The previous bug corrected by @lordloki shown here: https://github.com/UPBGE/upbge/issues/1228
Appears to have created a second minor, unforeseen issue that corrupts the scaling of the camera Transforms. From what I can tell, it appears to be inverting the scale of the camera when you apply any math to it's transform Matrix.

Here is a test gif where camera Transforms are working correctly in version 0.2.5a:
Samples_Cam_Warp_Bug

Here is that same gif with camera Transforms are working incorrectly in the recent update with Matrix Transforms fix:
Samples_Cam_Warp_Bug_Broken

The Problem:
Upon launch of the new build, the camera is immediately inverted and looks "backwards" and "upside down". This is not expected behavior for the Camera, and is not compatible with previous versions.

In this Blender File you can test the issue and see the problem:
https://www.dropbox.com/s/147n8lvvgnnn7ee/Cam_bug_Transforms.blend?dl=0

Most helpful comment

Ok, second attemp: https://mega.nz/file/1sNkEQxR#SkEH-ry66BnW7vei7exruaclCtiPKezxyfAkXxwSljk

I changed row-major by column major. Works ok with both test files.

All 3 comments

Ok, second attemp: https://mega.nz/file/1sNkEQxR#SkEH-ry66BnW7vei7exruaclCtiPKezxyfAkXxwSljk

I changed row-major by column major. Works ok with both test files.

Holey heck that was fast!

Great. Closing now. Thanks for reporting.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EndSSgamesStudio picture EndSSgamesStudio  路  4Comments

RomStef picture RomStef  路  6Comments

RomStef picture RomStef  路  7Comments

IzaZed picture IzaZed  路  7Comments

UnidayStudio picture UnidayStudio  路  4Comments