fbx_importing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
fbx_importing [2021/03/15 01:33] – 73.95.178.156 | fbx_importing [2025/01/15 04:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== FBX Importing ====== | ====== FBX Importing ====== | ||
- | Importing FBX files in Unity with the correct scale, rotation, and axis is fraught. | + | Importing FBX files in Unity with the correct scale, rotation, and axis is fraught. |
- | ===== Unit Scaling ===== | + | If you are just looking for a quick way to get models importing into Unity properly, take a look at the [[https:// |
- | FBX files seems to be in cm by default, but can support other units. Other unit scales are achieved in FBX by by setting '' | + | The [[https:// |
+ | ----- | ||
+ | ===== Scaling ===== | ||
+ | |||
+ | FBX is in cm by default, but can support other units. Other unit scales are achieved in FBX by by setting '' | ||
<code yaml> | <code yaml> | ||
GlobalSettings: | GlobalSettings: | ||
Line 14: | Line 18: | ||
</ | </ | ||
- | This file will show up in Unity' | + | This file will show up in Unity' |
- | {{: | + | ++++ Instructions for Blender |
- | + | ||
- | ==== Blender | + | |
In order to achieve the above scaling (scale of 1 on objects, UnitScaleFactor=100), | In order to achieve the above scaling (scale of 1 on objects, UnitScaleFactor=100), | ||
Line 24: | Line 26: | ||
* FBX All | * FBX All | ||
+ | ++++ | ||
+ | |||
+ | |||
+ | ++++ Instructions for Maya | | ||
+ | |||
+ | Maya is not able to export in Meters without applying a scale to the object. This is because Maya works in a CM unit internally, even if you set it to display meters. If you want to get a unit transform when importing to Unity, you must model in cm, // | ||
+ | |||
+ | This has the unfortunate result that these FBX files will import extremely tiny in any other program (like Blender). However, it's the only way we've found to get Maya to export to Unity without a scale. | ||
+ | ++++ | ||
+ | |||
+ | ++++ 3DS Max | | ||
+ | |||
+ | 3DS Max can export in meters if you set the " | ||
+ | |||
+ | ++++ | ||
+ | |||
+ | |||
+ | ------ | ||
+ | |||
===== Rotation ===== | ===== Rotation ===== | ||
Line 33: | Line 54: | ||
* OriginalUpAxis: | * OriginalUpAxis: | ||
- | Unity uses these properties to determine the coordinate system for the file. On import, the asset will be rotated to convert it from the file-coordinate system, to the Unity coordinate system. | + | Unity uses these properties to determine the coordinate system for the file. On import, the asset will be rotated to convert it from the file-coordinate system, to the Unity coordinate system. |
- | ==== Blender | + | For **Blender** it's important to note the difference between the terms " |
++++ Instructions for Blender ~2.92 | | ++++ Instructions for Blender ~2.92 | | ||
- | {{:blender_5lcugkdlz1.png}} | + | Unity' |
- | {{: | + | |
+ | |||
+ | In Blender 2.92, the export behavior changed slightly, so we can simply: | ||
+ | * Axis must be set as -Y Forward ((because of the previous bug, this is 180 degrees opposite to the correct axis. Blend files naturally have a +Y Forward aka. -Y Front orientation for axis)), and Z Up. ((Blender coordinates)) | ||
+ | * "Use Space Transform" | ||
+ | * In Unity, select: "Bake Axis Conversion" | ||
+ | {{ :blender_6pdtp5vutg.png }} | ||
+ | {{ : | ||
++++ | ++++ | ||
- | ++++ Instructions for Blender ~2.83 | | + | ++++ Instructions for Blender ~2.90 | |
- | * In Blender 2.83, you **must** select | + | Note! This path is buggy. |
- | * Axis must be set as -Y Forward, and Z up. | + | |
+ | | ||
+ | * Axis must be set as -Z Forward, and Y Up. | ||
* In Unity, "Bake Axis Conversion" | * In Unity, "Bake Axis Conversion" | ||
- | {{:blender_6pdtp5vutg.png}} | + | {{ :blender_5lcugkdlz1.png }} |
- | {{: | + | {{ : |
//Note: If your object does not support Apply Transforms, you should either [[https:// | //Note: If your object does not support Apply Transforms, you should either [[https:// | ||
+ | ++++ | ||
+ | |||
+ | ++++ Instructions for Maya | | ||
+ | Maya uses the same coordinate space as Unity. Just use the default export settings! | ||
+ | ++++ | ||
+ | |||
+ | ++++ Instructions for 3DS Max | | ||
+ | Max uses a Z up coordinate space. | ||
+ | 1. Make sure to always have " | ||
+ | 2. Check the "Bake Axis Conversions" | ||
++++ | ++++ |
fbx_importing.1615772003.txt.gz · Last modified: 2025/01/15 04:35 (external edit)