You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Packages/com.unity.formats.fbx/Documentation~/com.unity.formats.fbx.md
+129-8Lines changed: 129 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,11 +85,11 @@ The FBX Exporter exports the following objects:
85
85
* Game Cameras are exported using the sensor back settings for 35mm TV Projection (width = 0.816 inches, height = 0.612 inches). These camera attributes are also exported:
86
86
* Projection type (perspective/orthographic)
87
87
* Aspect ratio
88
-
* Aperture Width and Height (shown as "Sensor Size" in Unity, in milimiters. The height is set to 0.612 inches, and the width is relative to the aspect ratio)
88
+
* Aperture Width and Height (shown as "Sensor Size" in Unity, in millimeters. The height is set to 0.612 inches, and the width is relative to the aspect ratio)
89
89
* Focal length
90
90
* Vertical field of view. The default aperture mode is vertical.
91
91
* Near and far clipping plane
92
-
* Physical Cameras (cameras for which the "Physical Camera" checkbox is enabled.
92
+
* Physical Cameras (cameras for which the "Physical Camera" checkbox is enabled.)
93
93
* Lens Shift
94
94
* Focal Length
95
95
* Lights of type *Directional*, *Spot* , *Point*, and *Area*; also the following light attributes:
@@ -98,6 +98,39 @@ The FBX Exporter exports the following objects:
98
98
* Intensity
99
99
* Range
100
100
* Shadows (either On or Off)
101
+
* Constraints of type *Rotation*, *Aim*, *Position*, *Scale*, and *Parent*; also the following constraint attributes:
102
+
* Sources
103
+
* Source Weight
104
+
* Weight
105
+
* Active
106
+
* Rotation:
107
+
* Affected axes (X,Y,Z)
108
+
* Rotation Offset
109
+
* Rest Rotation
110
+
* Aim:
111
+
* Affected axes (X,Y,Z)
112
+
* Rotation Offset
113
+
* Rest Rotation
114
+
* World Up Type
115
+
* World Up Object
116
+
* World Up Vector
117
+
* Up Vector
118
+
* Aim Vector
119
+
* Position:
120
+
* Affected axes (X,Y,Z)
121
+
* Translation Offset
122
+
* Rest Translation
123
+
* Scale:
124
+
* Affected axes (X,Y,Z)
125
+
* Scale Offset
126
+
* Rest Scale
127
+
* Parent:
128
+
* Source Translation Offset (animated)
129
+
* Source Rotation Offset (animated)
130
+
* Affect Rotation Axes
131
+
* Affect Translation Axes
132
+
* Rest Translation
133
+
* Rest Rotation
101
134
* Legacy and Generic Animation from Animation and Animator components, or from a Timeline clip; also the following animated attributes:
102
135
* Transforms
103
136
* Lights:
@@ -106,13 +139,34 @@ The FBX Exporter exports the following objects:
106
139
* Color
107
140
* Cameras:
108
141
* Field of View
142
+
* Constraints:
143
+
* Weight
144
+
* Source Weight
145
+
* Translation Offset (Position Constraint)
146
+
* Rotation Offset (Rotation Constraint and Aim Constraint)
147
+
* Scale Offset (Scale Constraint)
148
+
* Source Translation Offset (Parent Constraint)
149
+
* Source Rotation Offset (Parent Constraint)
150
+
* World Up Vector (Aim Constraint)
151
+
* Up Vector (Aim Constraint)
152
+
* Aim Vector (Aim Constraint)
109
153
* Blendshapes
110
-
* Constraints
111
-
* Rotation
112
-
* Aim
113
-
* Position
114
-
* Scale
115
-
* Parent
154
+
155
+
## Cameras
156
+
157
+
Game Cameras (Physical Camera unchecked) are exported using the sensor back settings for 35mm TV Projection which has an Aperture Width of 0.816 inches and Aperture Height of 0.612 inches.
158
+
159
+
On export the Aperture Width is calculated using this sensor back relative to the Camera Aspect Ratio for example:
160
+
161
+
* Full 1024 4:3 (1024x768)
162
+
* Aspect Ratio 4:3
163
+
* Aperture Width = 0.612 * (1024/768)
164
+
165
+
The Focal Length (for game cameras) will be derived from the vertical FOV and the sensor back settings (Aperture Width and Aperture Height). The aperture mode will be set to Vertical using the default FBX setting for ApertureMode.
166
+
167
+
Film Resolution Gate is set to Horizontal so that the importing software will fit the resolution gate horizontally within the film gate.
168
+
169
+
The Near & Far clipping plane has a range of 30 cm to 600000 cm.
116
170
117
171
118
172
## Export Options window
@@ -529,3 +583,70 @@ public static void ExportGameObjects(Object[] objects)
529
583
// ModelExporter.ExportObjects to export a single game object
530
584
}
531
585
```
586
+
587
+
## Runtime
588
+
589
+
The FBX SDK bindings can be executed during gameplay allowing import/export at runtime. Currently a custom importer/exporter needs to be written in order to do so, as the FBX exporter is editor only.
0 commit comments