Replies: 2 comments 6 replies
-
The following guide was tested with Stride Importing animated model with fbx exportThis guide can be considered a continuation of the 'Importing static mesh with texture(s) with fbx export' guide.
Optional - You can move the Armature around in the Scene Collection, which should not affect how you export it. 0b. Select the Armature in the Scene Collection, change to Edit Mode (or press 0c. Parent the mesh to the Armature. Refer to the Blender docs for more info: https://docs.blender.org/manual/en/4.0/animation/armatures/skinning/parenting.html Notice how now the Mesh object will move be a child of the Armature object:
Quick summary is the following:
(The icon left of the Action name is how you can select an existing Action that you've already made)
|
Beta Was this translation helpful? Give feedback.
-
@VaclavElias tagging that issue here since this could definitely turn into an official guide at some point. |
Beta Was this translation helpful? Give feedback.
-
This discussion is help people importing models from Blender to Stride.
If you have found an alternative or easier way, feel free to contribute your steps.
As far as I'm aware importing fbx files is the easiest option.
The following guide was tested with Stride
4.2.0.2149
and Blender4.0.2
Importing static mesh with texture(s) with fbx export
Create/save your blender file somewhere, and create your mesh.
Ensure the mesh has a material set to the mesh.
Select the 'Shading' tab at the top.
Select the mesh in the Scene Collection
From the Base Color yellow circle in the 'Principled BSDF' node, mouse drag out to the left.
Search/select 'Image texture'
Find/create a texture to use, and copy it over the same folder as your
.blend
file.In the 'Image Texture' node, click Open and select your texture from the previous step.
Select the mesh in the Scene Collection
File -> Export -> FBX
Select 'Path Mode'
Copy
The icon next to the Path Mode options is a 'Embed Textures' option. Either options are valid, but you will need to note how they differ: If enabled, the textures are embedded into the fbx (larger file size), but effectively a single file. If not enabled the textures are in a
*.fbm
sub-folder - this will require an extra step in the next step.As a habit, it is a good idea to tick 'Limit to Selected Objects'
Selected Object Types should be restricted to Mesh (and Armature if you intend to add animation)
Move the fbx into the Game project's Resources folder (or sub-folder).
If you have not selected 'Embed Textures', open the
*.fbm
folder and move the files to the same folder as the fbx file.Drag and drop the fbx into the Asset view window (or Add asset -> Model -> 3D Model)
Ensure Import materials & Import textures are ticked
IMPORTANT SIDE NOTE: It is extremely important to use the simplest material setup, as Blender does not always detect texture references for export, eg. the following material node settings can be detect referenced textures
Note how for the normal map, the normal map image must be connected to a 'Normal Map' -> Color node, otherwise Blender will not export the normal map image.
Beta Was this translation helpful? Give feedback.
All reactions