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
+84-2Lines changed: 84 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,11 +99,11 @@ The FBX Exporter exports the following objects:
99
99
* 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:
100
100
* Projection type (perspective/orthographic)
101
101
* Aspect ratio
102
-
* 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)
102
+
* 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)
103
103
* Focal length
104
104
* Vertical field of view. The default aperture mode is vertical.
105
105
* Near and far clipping plane
106
-
* Physical Cameras (cameras for which the "Physical Camera" checkbox is enabled.
106
+
* Physical Cameras (cameras for which the "Physical Camera" checkbox is enabled.)
107
107
* Lens Shift
108
108
* Focal Length
109
109
* Lights of type *Directional*, *Spot* , *Point*, and *Area*; also the following light attributes:
@@ -166,6 +166,22 @@ The FBX Exporter exports the following objects:
166
166
* Aim Vector (Aim Constraint)
167
167
* Blendshapes
168
168
169
+
## Cameras
170
+
171
+
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.
172
+
173
+
On export the Aperture Width is calculated using this sensor back relative to the Camera Aspect Ratio for example:
174
+
175
+
* Full 1024 4:3 (1024x768)
176
+
* Aspect Ratio 4:3
177
+
* Aperture Width = 0.612 * (1024/768)
178
+
179
+
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.
180
+
181
+
Film Resolution Gate is set to Horizontal so that the importing software will fit the resolution gate horizontally within the film gate.
182
+
183
+
The Near & Far clipping plane has a range of 30 cm to 600000 cm.
184
+
169
185
170
186
## Export Options window
171
187
@@ -581,3 +597,69 @@ public static void ExportGameObjects(Object[] objects)
581
597
// ModelExporter.ExportObjects to export a single game object
582
598
}
583
599
```
600
+
601
+
## Runtime
602
+
603
+
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