FBX (.fbx)

Background & Context

    • Filmbox file format.
    • ASCII or binary format.
    • Commonly used for storage and interchange of 3D assets.
    • Proprietary file format developed by Autodesk.
    • Represents a 3D object or collection of objects as a surface formed by a collection of primitives, including triangles, polygons and spline curves. Can also represent a full scene, including lighting, animation and camera information.
    • Optionally stores vertex normals, colors, textures and generalized shaders.

Import & Export

  • Import["file.fbx"] imports an FBX file as a MeshRegion object representing the surface.
  • Import["file.fbx",elem] imports the specified element from an FBX file.
  • The import format can be specified with Import["file","FBX"] or Import["file",{"FBX",elem,}].
  • Export["file.fbx",expr] exports a 3D mesh-based geometric region to a binary FBX file. The expr can be any region that is ConstantRegionQ or a Graphics or Graphics3D object.
  • Export["file.fbx",expr,{opt1->val1,}] exports expr with the specified options for the file format.
  • The export format can be specified with Export["file",expr,"FBX"] or Export["file",{"FBX",opt1->val1,}].
  • See the reference pages for full general information on Import and Export.
  • ImportString and ExportString support the FBX format.

Notebook Interface

  • Save Selection As... exports the selected part of a notebook as a FBX file.

Import Elements

  • General Import elements:
  • "Elements"list of elements and options available in this file
    "Rules"full list of rules for each element
    "Options"list of rules for options and settings
    "Summary"summary of properties
    "CoordinateTransform"transformation function from FBX format
  • Data format representation elements:
  • "BinaryFormat"whether the file is a binary or ASCII FBX
    "Comments"comments
    "VertexData"list of vertex coordinates
    "PolygonData"the polygon elements in indexed form
    "UserExtensions"user-defined data associated with polygon vertices
  • Geometry representation elements:
  • "BoundaryMeshRegion"boundary mesh representation of a solid
    "MeshRegion"mesh representation of a surface
    "Region"region representation of a surface
  • Graphics representation elements:
  • "Graphics3D"FBX file represented as a Graphics3D object
    "GraphicsComplex"FBX file as a GraphicsComplex object
    "PolygonObjects"list of polygon primitives given in absolute coordinates
  • Import and Export use the "MeshRegion" element by default for FBX files.

Options

  • Export option:
  • "BinaryFormat"Truewhether to write a binary or ASCII file

Examples

open allclose all

Basic Examples  (2)

Import a 3D model from FBX as a MeshRegion object:

Summary properties of the solid model:

Export a 3D model to an ASCII FBX file:

Print the raw textual contents of the file:

Scope  (10)

Import  (4)

Import works on ASCII FBX files:

Binary FBX file:

Stream:

Import provides access to elements in the FBX file:

Export  (6)

Export works on 3D graphics:

Special regions:

Formula regions:

Mesh regions:

Export to a binary FBX file:

ASCII FBX file:

Import Elements  (10)

"BinaryFormat"  (1)

Test whether this file is a binary or ASCII STL:

"BoundaryMeshRegion"  (1)

Give a boundary mesh region:

"CoordinateTransform"  (1)

The coordinate system used by the FBX format is identical to the Wolfram Language:

"Graphics3D"  (1)

Give the Graphics3D object:

"GraphicsComplex"  (1)

Give the GraphicsComplex object:

"MeshRegion"  (1)

Give a mesh region:

"PolygonData"  (1)

Give the polygon elements in indexed form:

"PolygonObjects"  (1)

Give the list of Triangle primitives given in absolute coordinates:

"Summary"  (1)

Give the summary of properties:

"VertexData"  (1)

Give the vertex coordinates:

Export Options  (2)

By default, a binary file is generated when exporting:

Print the raw textual contents of the file:

Use "BinaryFormat"False to generate an ASCII file:

Print the raw textual contents of the file:

Introduced in 2020
 (12.1)