Is your feature request related to a problem? Please describe.
Source model has textures set, but not all of them does applied to materials automatically
Describe the solution you'd like
Automatic textures applying to materials after model import
Additional context
Replaces/close #473 — that issue is now outdated; the 3D importer has been rewritten using Silk.NET.Assimp and the original report no longer applies to current code.
Current behavior
When importing a 3D model, only three texture types are mapped to material slots:
TextureType.Diffuse → Diffuse layer
TextureType.Normals → Normal map (MaterialNormalMapFeature)
TextureType.Specular → Specular layer
All other texture types are imported into the project as assets but are not assigned to the generated material.
Unimplemented texture types
The following types contain // TODO: Add support comments in MeshConverter.cs and produce no material output:
TextureType |
Stride material slot |
Emissive |
MaterialEmissiveMapFeature |
Ambient |
Ambient occlusion |
Reflection |
? |
Opacity |
MaterialTransparencyBlendFeature |
Shininess |
? |
Displacement |
MaterialDisplacementMapFeature |
Height |
? |
Expected behavior
Each recognized TextureType should be mapped to the appropriate Stride texture type and assigned to the generated Material Asset, consistent with how Diffuse/Normals/Specular are already handled.
Steps to reproduce
- Import any PBR model (FBX or GLB) that includes emissive, opacity, or roughness textures.
- Inspect the generated
MaterialAsset in Game Studio.
- Only diffuse, normal, and specular slots are populated; all other textures appear as orphaned assets.
References
Additional info
I'm not quite sure about the correct texture types in Assimp and Stride.
Is your feature request related to a problem? Please describe.
Source model has textures set, but not all of them does applied to materials automatically
Describe the solution you'd like
Automatic textures applying to materials after model import
Additional context
Replaces/close #473 — that issue is now outdated; the 3D importer has been rewritten using
Silk.NET.Assimpand the original report no longer applies to current code.Current behavior
When importing a 3D model, only three texture types are mapped to material slots:
TextureType.Diffuse→ Diffuse layerTextureType.Normals→ Normal map (MaterialNormalMapFeature)TextureType.Specular→ Specular layerAll other texture types are imported into the project as assets but are not assigned to the generated material.
Unimplemented texture types
The following types contain
// TODO: Add supportcomments inMeshConverter.csand produce no material output:TextureTypeEmissiveMaterialEmissiveMapFeatureAmbientReflectionOpacityMaterialTransparencyBlendFeatureShininessDisplacementMaterialDisplacementMapFeatureHeightExpected behavior
Each recognized
TextureTypeshould be mapped to the appropriate Stride texture type and assigned to the generated Material Asset, consistent with how Diffuse/Normals/Specular are already handled.Steps to reproduce
MaterialAssetin Game Studio.References
sources/tools/Stride.Importer.3D/MeshConverter.csaround line 1322Additional info
I'm not quite sure about the correct texture types in Assimp and Stride.