Skip to content

Commit

Permalink
Export Metal-Roughness maps
Browse files Browse the repository at this point in the history
  • Loading branch information
sercero authored and paroj committed Mar 22, 2023
1 parent 99f3110 commit 43ed412
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 75 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [Updating to new versions](#updating-to-new-versions)
- [Video Tutorials](#video-tutorials)
- [Exporting Meshes](#exporting-meshes)
- [Materials](#materials)
- [Blender Modifiers Support](#blender-modifiers-support)
- [Mesh triangulation issues](#mesh-triangulation-issues)
- [OgreNext Tips](#ogrenext-tips)
Expand Down Expand Up @@ -67,6 +68,15 @@ The active object selection is when there is an object with a yellow outline (in

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

### Materials
Materials are exported as RTSS OGRE 1.x materials (unless "Fixed Function Parameters" is selected).
The following textures are exported: Base Color, Metallic and Roughness, Normal Map and Emission. Baked Ambient Occlusion is not supported for the moment.

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).
Except for the Emission texture, where the Emission input of the Principled BSDF node is used as the Emission texture.

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

### Blender Modifiers Support
Blender has some very useful modifiers, and most of them are supported by `blender2ogre` but not all of them.
Check out the [Blender Modifiers Support Page](Modifiers.md) to check out the list and also some recommendations about them.
Expand Down
16 changes: 8 additions & 8 deletions io_ogre/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'SWAP_AXIS' : 'xyz', # ogre standard is 'xz-y', but swapping is currently broken
'MESH_TOOL_VERSION' : 'v2',
'XML_DELETE' : True,

# Scene
'SCENE' : True,
'SELECTED_ONLY' : True,
Expand All @@ -40,19 +40,19 @@
'FORCE_LAMPS' : True,
'NODE_ANIMATION' : True,
#'NODE_KEYFRAMES' : False,

# Materials
'MATERIALS' : True,
'COPY_SHADER_PROGRAMS' : True,
'SEPARATE_MATERIALS' : True,
'USE_FFP_PARAMETERS': False,

# Textures
'MAX_TEXTURE_SIZE' : 4096,
'FORCE_IMAGE_FORMAT' : 'NONE',
'TOUCH_TEXTURES' : True,
'DDS_MIPS' : 16,

# Armature
'ONLY_DEFORMABLE_BONES' : False,
'ONLY_KEYFRAMED_BONES' : False,
Expand All @@ -73,22 +73,22 @@
'INTERFACE_TOGGLE': False,
'OPTIMISE_VERTEX_BUFFERS' : True,
'OPTIMISE_VERTEX_BUFFERS_OPTIONS' : 'puqs',

# LOD
'LOD_LEVELS' : 0,
'LOD_DISTANCE' : 300,
'LOD_PERCENT' : 40,
'LOD_MESH_TOOLS' : False,

# Pose Animation
'SHAPE_ANIMATIONS' : True,
'SHAPE_NORMALS' : True,

# Logging
'ENABLE_LOGGING' : False,
'DEBUG_LOGGING' : False,
#'SHOW_LOG_NAME' : False,

# Import
'IMPORT_NORMALS' : True,
'MERGE_SUBMESHES' : True,
Expand Down
Loading

0 comments on commit 43ed412

Please sign in to comment.