HOW-TO: Use skinned meshes in Blender
Importing and exporting skinned meshes for REDkit and Blender.
Â
1. Export .fbx file from REDkit
Entity Templates which you can find in the The Witcher 3’s REDkit have a skinned model with textures and a skeleton. To export an Entity Template, right-click on it in the Asset Browser and choose Export Asset.
It will be then exported in a .fbx file format.
2. Importing .fbx to Blender
There is a coordinate system differences between the REDkit and Blender.
That’s why when importing FBX files to Blender you need to make sure to correctly set the Primary Bone Axis and Secondary Bone Axis. The Y and X coordinates needs to be swapped so that the result is:
Primary = X Axis
Secondary = Y Axis
A skinned mesh has embedded materials with textures and a skeleton.
If you want to import an animation on the skinned mesh, then you have to open the context menu for the mesh / object which you are editing and select Replace animation from an .re file (remove bones).
When the importing dialog pops up,
If the animation which you want to apply is an animation exported from REDkit, it is always recommended to select the Reset bone rolls and Rotate imported object around Z axis options in the General settings tab.
This'll help to prevent the object from being rotated from the inside out.
3. Exporting .fbx from Blender
Skinned meshes and animations need to be exported from Blender separately. A skinned mesh with textures and skeleton is exported into an .fbx file. It requires specific settings. Make sure to set:
Primary Bone Axis = X Axis
Secondary Bone Axis = -Y Axis
Leaf bones are not required so you should tick the Only Deform Bones option. See the recommended settings on the screen below:
4. Importing .fbx to REDkit
Importing an .fbx
skinned mesh file back into the Editor can be done via the Asset Browser.
Right-click on the background to open the context menu and select Import > Mesh.
Â
REDkit can parse .xml metadata files to specify which material and textures need to be replaced. These files are created in while you export the skinned mesh in the same folder as the .fbx file.
This .xml
file can be used for controlling the material and texture replacements while importing a skinned mesh in the Editor. An .xml file example:
Â
Table of contents:
You might also want to check:
______________________________________
The Witcher 3: Wild Hunt Complete Edition © 2024 CD PROJEKT S.A. Published by CD PROJEKT S.A. Developed by CD PROJEKT RED. CD PROJEKT®, The Witcher®, REDengine® are registered trademarks of CD PROJEKT Capital Group. All rights reserved. The Witcher game is set in the universe created by Andrzej Sapkowski in his series of books. All rights reserved.