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
@@ -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:
@@ -152,6 +152,22 @@ The FBX Exporter exports the following objects:
152
152
* Aim Vector (Aim Constraint)
153
153
* Blendshapes
154
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.
170
+
155
171
156
172
## Export Options window
157
173
@@ -567,3 +583,69 @@ public static void ExportGameObjects(Object[] objects)
567
583
// ModelExporter.ExportObjects to export a single game object
568
584
}
569
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