FBX SDK概述(翻译)
1.什么是Autodesk FBX技术
本主题对Autodesk FBX技术及其功能进行了广泛的描述。
FBX SDK是Autodesk FBX技术的一部分,该技术是允许3D内容开发人员导入和导出3D数据的一系列工具。 Autodesk FBX允许混合和匹配各种2D和3D数字内容创建应用程序,从而提高了涉及媒体和娱乐行业的组织的灵活性。
3D场景的FBX文件格式
FBX文件(.fbx)通常以二进制(或本机)格式保存,但也可以以ASCII格式保存。 二进制FBX文件和ASCII FBX文件都使用.fbx文件扩展名。
这是ASCII格式的小型FBX文件的简化版本。 省略的行用…表示,我们已手动添加了一些注释。 注释以一行中的分号(“;”)开头。
; FBX 7.1.0 project file
; Copyright (C) 1997-2010 Autodesk Inc. and/or its licensors.
; All rights reserved.
; ----------------------------------------------------
FBXHeaderExtension: {
; header information: global file information.
FBXHeaderVersion: 1003
FBXVersion: 7100
CreationTimeStamp: {
Version: 1000
Year: 2010
Month: 1
Day: 19
Hour: 16
Minute: 30
Second: 28
Millisecond: 884
}
Creator: "FBX SDK/FBX Plugins version 2011.2"
SceneInfo: "SceneInfo::GlobalInfo", "UserData" {
...
}
GlobalSettings: {
Version: 1000
Properties70: {
P: "UpAxis", "int", "Integer", "",1
P: "UpAxisSign", "int", "Integer", "",1
P: "FrontAxis", "int", "Integer", "",2
P: "FrontAxisSign", "int", "Integer", "",1
P: "CoordAxis", "int", "Integer", "",0
P: "CoordAxisSign", "int", "Integer", "",1
P: "OriginalUpAxis", "int", "Integer", "",-1
P: "OriginalUpAxisSign", "int", "Integer", "",1
P: "UnitScaleFactor", "double", "Number", "",1
P: "OriginalUnitScaleFactor", "double", "Number", "",1
P: "AmbientColor", "ColorRGB", "Color", "",0,0,0
P: "DefaultCamera", "KString", "", "", "Producer Perspective"
P: "TimeMode", "enum", "", "",6
P: "TimeSpanStart", "KTime", "Time", "",0
P: "TimeSpanStop", "KTime", "Time", "",46186158000
}
}
...
; Object definitions
;------------------------------------------------------------------
Definitions: {
Version: 100
Count: 2251
ObjectType: "GlobalSettings" {
Count: 1
}
ObjectType: "Model" {
Count: 86
PropertyTemplate: "FbxNode" {
Properties70: {
P: "QuaternionInterpolate", "bool", "", "",0
P: "RotationOffset", "Vector3D", "Vector", "",0,0,0
P: "RotationPivot", "Vector3D", "Vector", "",0,0,0
P: "ScalingOffset", "Vector3D", "Vector", "",0,0,0
P: "ScalingPivot", "Vector3D", "Vector", "",0,0,0
...}
ObjectType: "Material" {
Count: 1
PropertyTemplate: "FbxSurfacePhong" {
Properties70: {
P: "ShadingModel", "KString", "", "", "Phong"
P: "MultiLayer", "bool", "", "",0
P: "EmissiveColor", "ColorRGB", "Color", "",0,0,0
P: "EmissiveFactor", "double", "Number", "",1
P: "AmbientColor", "ColorRGB", "Color", "",0.2,0.2,0.2
...}
Model: 21883936, "Model::Humanoid:Hips", "LimbNode" {
Version: 232
Properties70: {
P: "ScalingMin", "Vector3D", "Vector", "",1,1,1
P: "NegativePercentShapeSupport", "bool", "", "",0
P: "DefaultAttributeIndex", "int", "Integer", "",0
P: "Lcl Translation", "Lcl Translation", "", "A+",-271.281097412109,-762.185852050781,528.336242675781
P: "Lcl Rotation", "Lcl Rotation", "", "A+",-1.35128843784332,2.6148145198822,0.42334708571434
P: "Lcl Scaling", "Lcl Scaling", "", "A+",1,0.99999988079071,1
注意:FBX文件格式没有记录。 应用程序应使用FBX SDK在FBX文件(以及FBX SDK支持的其他文件格式)之间导出和导入场景数据。
FBX SDK
FBX软件开发工具包(FBX SDK)允许软件开发人员创建使用FBX技术的应用程序,或将FBX技术集成到其现有应用程序中。
(1)FBX示例应用程序
用于Autodesk 3ds Max和Autodesk Maya的FBX插件
Autodesk 3ds Max允许用户将存储在FBX文件中的全部或部分场景导入3ds Max场景,并将3ds Max场景的全部或部分导出到FBX文件。 以下是3ds Max的“ FBX导出”对话框:
Maya为其场景提供等效的导入/导出功能。 以下是Maya中.fbx文件的“导出”对话框:
3ds Max和Maya均提供FBX功能作为插件。这些插件都是用FBX SDK写的。
FBX Review
FBX审阅是用于审阅3D内容和动画的独立工具。 使用此工具,您可以在不使用3D创作软件的情况下查看3D内容。
你可以打开和查看不同格式的3D文件,例如.fbx,.obj和其他格式。 它还提供了许多功能,例如播放动画以及在阴影模式,场景光,相机和拍摄之间切换。