Preparing the mesh for Unity: Difference between revisions

From KSP 2 Modding Wiki
(Created page)
 
No edit summary
Line 6: Line 6:
# In Blender, make sure that the origin of the object is where its center of mass would be.
# In Blender, make sure that the origin of the object is where its center of mass would be.
# Move the object along the vertical axis so that it rests at 0;0.
# Move the object along the vertical axis so that it rests at 0;0.
# Rhe object must be at scale 1 (otherwise the shape will not be preserved in Unity). If not: '''Ctrl+A > Apply Scale'''.
# The object must be at scale 1 (otherwise the shape will not be preserved in Unity). If not: '''Ctrl+A > Apply Scale'''.
# You might as well apply rotation while you're at it.
# Also '''Apply Rotation''' in order to prevent issues in the game.
# Right click on the object name > '''Select hierarchy'''.
# Right click on the object name > '''Select hierarchy'''.
# Click on '''File > Export > FBX'''. Give a specific name to the file (eg: my_mod_engine.fbx).
# Click on '''File > Export > FBX'''. Give a specific name to the file (eg: my_mod_engine.fbx).
# Check “Selected objects”.
# Check '''Selected objects'''.
# Uncheck “Precalculate animation” (“Bake animation”).
# Uncheck '''Precalculate animation''' (“Bake animation”).
# Click on “Export”.
# Click on '''Export'''.


[[Category:Creating parts]]
[[Category:Creating parts]]

Revision as of 14:30, 13 January 2024

Prerequisites
Setting up Unity
Modeling the mesh in Blender
Texturing the mesh in Substance 3D Painter
  1. In Blender, make sure that the origin of the object is where its center of mass would be.
  2. Move the object along the vertical axis so that it rests at 0;0.
  3. The object must be at scale 1 (otherwise the shape will not be preserved in Unity). If not: Ctrl+A > Apply Scale.
  4. Also Apply Rotation in order to prevent issues in the game.
  5. Right click on the object name > Select hierarchy.
  6. Click on File > Export > FBX. Give a specific name to the file (eg: my_mod_engine.fbx).
  7. Check Selected objects.
  8. Uncheck Precalculate animation (“Bake animation”).
  9. Click on Export.