Skip to content

How to reliably detect static/animated models? #5

@Mugen87

Description

@Mugen87

It would be good to know if there is an intended way to detect whether an object is animated or not. Right now, M2Loader counts the number of bones although this approach is not robust.

three-m2loader/M2Loader.js

Lines 394 to 397 in e71c776

// TODO: Find out a better way for detecting static models
// Problem: Even static models have some bone definitions
if ( boneDefinitions.length < 8 ) return null;

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions