Skip to content

Commit 43ed412

Browse files
serceroparoj
authored andcommitted
Export Metal-Roughness maps
1 parent 99f3110 commit 43ed412

File tree

5 files changed

+217
-75
lines changed

5 files changed

+217
-75
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- [Updating to new versions](#updating-to-new-versions)
1111
- [Video Tutorials](#video-tutorials)
1212
- [Exporting Meshes](#exporting-meshes)
13+
- [Materials](#materials)
1314
- [Blender Modifiers Support](#blender-modifiers-support)
1415
- [Mesh triangulation issues](#mesh-triangulation-issues)
1516
- [OgreNext Tips](#ogrenext-tips)
@@ -67,6 +68,15 @@ The active object selection is when there is an object with a yellow outline (in
6768

6869
Check out all the exporter and importer options in the [Options Document](Options.md)
6970

71+
### Materials
72+
Materials are exported as RTSS OGRE 1.x materials (unless "Fixed Function Parameters" is selected).
73+
The following textures are exported: Base Color, Metallic and Roughness, Normal Map and Emission. Baked Ambient Occlusion is not supported for the moment.
74+
75+
Your material will be best exported if you follow the GLTF2 guidelines: [glTF 2.0 - Exported Materials](https://docs.blender.org/manual/en/2.80/addons/io_scene_gltf2.html#exported-materials).
76+
Except for the Emission texture, where the Emission input of the Principled BSDF node is used as the Emission texture.
77+
78+
A good example of how the material should be setup for best results is the "Damaged Helmet" model found here: https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0/DamagedHelmet
79+
7080
### Blender Modifiers Support
7181
Blender has some very useful modifiers, and most of them are supported by `blender2ogre` but not all of them.
7282
Check out the [Blender Modifiers Support Page](Modifiers.md) to check out the list and also some recommendations about them.

io_ogre/config.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'SWAP_AXIS' : 'xyz', # ogre standard is 'xz-y', but swapping is currently broken
3131
'MESH_TOOL_VERSION' : 'v2',
3232
'XML_DELETE' : True,
33-
33+
3434
# Scene
3535
'SCENE' : True,
3636
'SELECTED_ONLY' : True,
@@ -40,19 +40,19 @@
4040
'FORCE_LAMPS' : True,
4141
'NODE_ANIMATION' : True,
4242
#'NODE_KEYFRAMES' : False,
43-
43+
4444
# Materials
4545
'MATERIALS' : True,
4646
'COPY_SHADER_PROGRAMS' : True,
4747
'SEPARATE_MATERIALS' : True,
4848
'USE_FFP_PARAMETERS': False,
49-
49+
5050
# Textures
5151
'MAX_TEXTURE_SIZE' : 4096,
5252
'FORCE_IMAGE_FORMAT' : 'NONE',
5353
'TOUCH_TEXTURES' : True,
5454
'DDS_MIPS' : 16,
55-
55+
5656
# Armature
5757
'ONLY_DEFORMABLE_BONES' : False,
5858
'ONLY_KEYFRAMED_BONES' : False,
@@ -73,22 +73,22 @@
7373
'INTERFACE_TOGGLE': False,
7474
'OPTIMISE_VERTEX_BUFFERS' : True,
7575
'OPTIMISE_VERTEX_BUFFERS_OPTIONS' : 'puqs',
76-
76+
7777
# LOD
7878
'LOD_LEVELS' : 0,
7979
'LOD_DISTANCE' : 300,
8080
'LOD_PERCENT' : 40,
8181
'LOD_MESH_TOOLS' : False,
82-
82+
8383
# Pose Animation
8484
'SHAPE_ANIMATIONS' : True,
8585
'SHAPE_NORMALS' : True,
86-
86+
8787
# Logging
8888
'ENABLE_LOGGING' : False,
8989
'DEBUG_LOGGING' : False,
9090
#'SHOW_LOG_NAME' : False,
91-
91+
9292
# Import
9393
'IMPORT_NORMALS' : True,
9494
'MERGE_SUBMESHES' : True,

0 commit comments

Comments
 (0)