Repository navigation
Fix export fbx: Wrong Materials in LayerElementMaterial if a node contains multi meshes - #6103
Merged
kimkulling merged 5 commits intoJun 5, 2025
Conversation
…ials index should be the order of Materials in connections of the Model node.
|
Member
|
Merged, thanks a lot for your contribution. |
|
Riv1s-sSsA01
deleted the
fix-export-fbx-wrong-Materials-in-LayerElementMaterial
branch
June 25, 2025 05:36
kimkulling
added a commit
that referenced
this pull request
Jul 1, 2026
…tains multi meshes (#6103) * fix export fbx wrong Materials index in LayerElementMaterial * Refix export fbx wrong Materials index in LayerElementMaterial. Materials index should be the order of Materials in connections of the Model node. --------- Co-authored-by: Kim Kulling <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Abstract
There is a bug in current program's export of fbx file.
It is wrong that Materials in LayerElementMaterial when assimp scene includes a node that contains multi meshes.
Brief explanation of fbx format
LayerElementMaterial node position
Objects
┗Geometry
┗LayerElementMaterial
Fixed concrete problem
Symptom
Content
The rendering by the application Autodesk 3ds Max don't reflect the material of assimp scene.
Captures
Pre-fixed
Post-fixed
Output fbx file examples
Extracted relative parts
Pre-fixed
Post-fixed
Whole files
Pre-fixed
Post-fixed
Related PR
#5888