Skip to content

bounds calculation when building bee file counts scaled skinned mesh renderers incorrectly #774

@art0007i

Description

@art0007i

Describe the bug?

one of my skinned meshes comes from an fbx and it was scale 100, and changing the scale of the game object with the skinned mesh visually changes nothing, but basis takes the scale into account when calculating the bounds.

Steps to Reproduce

  1. Spawned any skinned mesh. in my case I used the one that's inside the "LoadingAvatar" Prefab.
  2. Change the scale of skinned mesh renderer game object to 100 (In my case it's called Icosphere.001)
  3. Basis now thinks the avatar's bounds are 100x larger, even though the avatar visually looks the exact same, and the bounds gizmo in unity looks correct.

The expected behavior

Bounds is calculated properly, like the unity gizmo

Screenshots

In these picutres I used a editor tool which I quickly threw together, which just calls the BasisBundleBuild.CalculateLocalRenderBounds function on the provided GameObject

Image Image

Build Info

Version: 2.0.1
Unity: 6000.4.3f1
Platform: LinuxEditor
Mode: Desktop
Build GUID: 00000000000000000000000000000000

Log Files

n/a

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions