1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

Unsolved [Blender] Order of materials associated to a mesh doesn't stick through export

Discussion in 'Mod Support' started by FLyInG 2 YoUr SoUL, Apr 16, 2019 at 9:23 AM.

  1. FLyInG 2 YoUr SoUL

    FLyInG 2 YoUr SoUL
    Expand Collapse

    Joined:
    May 31, 2016
    Messages:
    4,484
    I have two meshes in my .DAE file for two similar spotlights to be mounted on each side of a rollcage, the right one (CRD_riilight_R) being a mirrored duplicate of the left one (CRD_riilight_L).

    I'm trying to reorder materials associated to the right emitter (CRD_riilight_R) so that the material for the light (CRD_riilight_R) goes first, while the material for the frame (CRD_riilightframes) shared with the other emitter goes second.

    While this works fine for the left light, materials keep getting switched up for the right light once I export as COLLADA, frame material being forced into first position no matter what.

    I can't figure it out. Is there a workaround for this?

    Thanks in advance! :)
     

    Attached Files:

  2. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,143
    Obviously stupid question, but did you remove related .cdae from cache folder after new try of exporting dae?

    Also, how it is arranged in materials.cs, material associated to CRD_riilight_R and CRD_riilight_L is before material that is associated with CRD_riilightframes?

    Opening .dae with notepad++ and tampering with insides might also show if it is .dae or something else that needs modifying.
     
  3. FLyInG 2 YoUr SoUL

    FLyInG 2 YoUr SoUL
    Expand Collapse

    Joined:
    May 31, 2016
    Messages:
    4,484
    Yes. Exported .DAE is yet to go in game, so no cache file is generated as of now. Purely a Blender issue so far.
    See above. Blender reorganizes materials for reasons unknown. Order in materials.cs doesn't come into play yet.
    Editing with an XML editor would work, but any manual modification would then be negated as soon as .DAE is imported in Blender again.
     
  4. FLyInG 2 YoUr SoUL

    FLyInG 2 YoUr SoUL
    Expand Collapse

    Joined:
    May 31, 2016
    Messages:
    4,484
    Well, nevermind, I gave up and accepted the imposed order for both objects.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice