getScale() Negative Scaling Factor support in matrix4

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

getScale() Negative Scaling Factor support in matrix4

Post by devsh »

if you check if the determinant is 0 and invert one of the returned scale value's components (i.e. Z) you get a mathematically equivalent scale (you may end up with an extra rotation where there wasnt one before). Regular Irrlicht doesnt have this and we cant actually reconstruct the same matrix from a set of decomposed scales, rotations and translations.
Post Reply