FBXLoader obj names miss the following characters: : – _

Description of the problem

When I check over the object names after obtaining a scene using FBXLoader and compare to the ones I get from the FBX Autodesk SDK ones I notice missing the following characters: – _ :
The peculiar thing is that they don’t seem to be missing in a consistent manner, sometimes I find underscores in the name.

I glanced over the code and the only thing I can think of is the
line s = decodeURIComponent( escape( s ) );
inside getString

I haven’t tested yet to sew how the data is before being handed to decodeURIComponent but I suspect that might be it.

Three.js version
  • Dev
  • r87
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

1 thought on “FBXLoader obj names miss the following characters: : – _

  1. See FBXLoader:1734:

    model.name = node.attrName.replace( /:/, '' ).replace( /_/, '' ).replace( /-/, '' );

    That could be replaced with:

    model.name = PropertyBinding.sanitizeNodeName( node.attrName );

    Colons must be replaced (they’ll cause issues with animation) but underscores and dashes can be safely left alone.

Comments are closed.