package fbx
Constants
BinaryHeader
"Kaydara FBX Binary \x00\x1a\x00"
Variables
ErrASCIINotSupported
errors.New("ASCII FBX is not supported yet")
ErrInvalidHeader
errors.New("invalid FBX file")
Functions
SplitNameClass
ToLoadResult
ToLoadResultWithPath
Types
Connection
struct
ConnectionIndex
struct
type ConnectionIndex struct {
All []Connection
ChildrenByParent map[int64][]Connection
ParentsByChild map[int64][]Connection
PropertiesByNode map[int64][]Connection
}
Definition
struct
DefinitionsIndex
struct
Document
struct
Parse
GlobalSettings
struct
type GlobalSettings struct {
UpAxis int
UpAxisSign int
FrontAxis int
FrontAxisSign int
CoordAxis int
CoordAxisSign int
UnitScaleFactor float64
OriginalUnitScaleFactor float64
}
DefaultGlobalSettings
GlobalSettings.IsKaijuCompatible
Node
struct
type Node struct {
Name string
Properties []Property
Children []Node
StartOffset int64
EndOffset int64
PropertyStart int64
PropertyEnd int64
}
Object
struct
type Object struct {
ID int64
Name string
Class string
SubClass string
NodeClass string
Properties PropertyTable
Node *Node
}
ParseError
struct
ParseError.Error
Property
struct
Property70
struct
type Property70 struct {
Name string
Type string
Label string
Flags string
Values []any
Node *Node
}
Property70.Bool
Property70.Enum
Property70.Int
Property70.Number
Property70.String
Property70.Vec2
Property70.Vec3
Property70.Vec4
PropertyTable
struct
ParseProperties70
PropertyTable.Bool
PropertyTable.Enum
PropertyTable.Get
PropertyTable.Int
PropertyTable.Number
PropertyTable.String
PropertyTable.Vec2
PropertyTable.Vec3
PropertyTable.Vec4
SceneIndex
struct
type SceneIndex struct {
Version uint32
Objects map[int64]*Object
ByClass map[string]map[int64]*Object
Geometry map[int64]*Object
Model map[int64]*Object
Material map[int64]*Object
Texture map[int64]*Object
Video map[int64]*Object
Deformer map[int64]*Object
Animation map[int64]*Object
Connections ConnectionIndex
Definitions DefinitionsIndex
GlobalSettings GlobalSettings
}