Skip to content

Bug: Identity matrix check problem #5455

Closed

Description

@fvbj

Describe the bug
After exporting to GLB/GLTF format, some node transforms are set as identity. This is because the matrices are compared in the aiMatrix4x4t::IsIdentity() method to a large epsilon 10e-3 threshold. This method is also used in other calls and it would be better to set epsilon as a call parameter. The default value handles backward compatibility of legacy code.
links to similar issues: #3702, #2589

To Reproduce
Steps to reproduce the behavior:
m = aiMatrix4x4(1.001f, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
m.IsIdentity() // will incorrectly return the true value

Expected behavior
The method performs the comparison according to the specified epsilon

Solved by #5445

Activity

  1. added
    Bug
    on Feb 6, 2024
  2. kimkulling commented on Feb 6, 2024

    @kimkulling
    Member

    Closed by #5445

  3. added
    API
    on Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIBug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions