Transparency Settings in the Material Editor

Discussion in 'Track Modding' started by redapg, Dec 21, 2022.

  1. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,024
    Likes Received:
    2,880
    @Alex Sawczuk Maybe it's me, but i don't find any Transparency Settings in the Material Editor, for IBL Standard Material for Example.
    At least the SRCAlpha/INVSRCAlpha Transparency gets detected when it is set in the gmt already.
    But Alpha Chroma gets completely ignored.
    And also the Alpha Sort Setting is not there.

    Is it planned, to integrate that into the Editor soon?
    Or can we at least get all the necessary Lines for both Transparency Methods, that we can add them manually into the JSON File?
    Or an Example JSON File for each Method?
     
    Last edited: Dec 21, 2022
  2. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    you can manually add them, check Loch Drummond crowd for chroma, fences for alpha
     
    Gilles Benoit, Brutten and redapg like this.
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,024
    Likes Received:
    2,880
    Thank you for the Hint.
     
  4. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    363
    Likes Received:
    365
    Thank you, I was looking for the way too and couldn't find it.
     
  5. Alex Sawczuk

    Alex Sawczuk Administrator Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    851
    Likes Received:
    971
    it's the chromakey you texture tag you need to add btw to the albedo texture
     
  6. Brutten

    Brutten Registered

    Joined:
    Jun 21, 2017
    Messages:
    363
    Likes Received:
    365
    Thank you @Alex Sawczuk , when I replied earlier it was because I got it.
    I was sorry I couldn't use that shader on trees, fences, etc.
    Now I know the way, more complicated, but it works.
     
  7. Luis Barata

    Luis Barata Registered

    Joined:
    Jul 15, 2020
    Messages:
    103
    Likes Received:
    100
    Maybe I didn't got the whole picture but if your Albedo texture have alpha you can add it directly in the json file

    "AnisoLevel":16,
    "ChromaColor":0,
    "Flags":[
    "CUBETF_NOREDUCEDETAIL",
    "CUBETF_AUTOMIPMAP",
    "CUBETF_TRILINEAR",
    "CUBETF_CHROMAKEY",
    "CUBETF_OWNEDBYMATERIAL",
    "CUBETF_NOZBUFFERREQUIRED"

    I guess it works even if you didn't add it in the material assignment. The JSON file material will overwrite the material assignment in the export. I presume it works nevertheless I always do the assignment before the export of gmt.
     
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,024
    Likes Received:
    2,880
    @Luis Barata You are a bit late to the Party. :)
    One of the "Problems" is, that the Material Editor doesn't detect Chroma Transparency when it's set in the Material of the Meshes already.
    And there are no Settings for Transparency at all in the Material Editor, what i would expect to be there in an Editor. ;)
     
  9. Luis Barata

    Luis Barata Registered

    Joined:
    Jul 15, 2020
    Messages:
    103
    Likes Received:
    100
    I haven't read all the posts, sorry for it, I thought you were talking of the Materials (JSON files) but obviously I was wrong.
     
  10. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    4,024
    Likes Received:
    2,880
    No, not really wrong. ;)
     

Share This Page