Why are my materials not working?

Discussion in 'Content Creation' started by Murokmakto, Jan 31, 2024.

  1. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    281
    Put multiple .dae files in the same folder + all related textures. Manually did the entries in the main.materials.json file (probably something wrong here, can´t find a tutorial)
    kerzjaerz.jpg
    Materials are not existent in game. In the material editor there should be a material called "carvillage", but there is none.
    20240131165259_1.jpg
    Texture still shows up correctly, even without material, no idea why that is...
    The materials have the same name as in blender.

    I suppose the error is in the materials.json file. But I don´t know what it is? Adding the "persistentId" entry made no difference.


    __________________________________________________________________________________________
    edit: Apparently it works in this form:
    547w57.jpg
    I don´t really get the difference between the 2 except for the order of the entries but whatever it works...
     
    #1 Murokmakto, Jan 31, 2024
    Last edited: Jan 31, 2024
  2. xnx1985

    xnx1985
    Expand Collapse

    Joined:
    Aug 7, 2014
    Messages:
    147
    The first one is suitable for the basic texture version (non-PBR) and I'm not sure why it didn't work. it can be some context or missing lines...
    The second one is PBR (version 1.5) and it works because It looks like it has the proper context and info.
    Was the second file created inside the game editor? because it's the best way to ensure the file is properly made.
     
    • Like Like x 1
  3. Murokmakto

    Murokmakto
    Expand Collapse

    Joined:
    Dec 24, 2023
    Messages:
    281
    yes it was created in the game editor. I will do it like that for the time being although I would prefer to write it by hand..
     
  4. xnx1985

    xnx1985
    Expand Collapse

    Joined:
    Aug 7, 2014
    Messages:
    147
    You can write it but it is best to use the original template.
    this is how I started, but now I find it easier in the game editor.
    tip - if you export an object and the material not show, you can create the material in the game editor and then export the object again. it will refresh in-game and will show with the new material.
     
  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