z order messed up for alpha-transparent objects

Discussion in 'General' started by VladK, Sep 5, 2021.

  1. VladK

    VladK New Member

    Joined:
    Aug 29, 2021
    Messages:
    16
    Likes Received:
    8
    Hi all!
    I am modding an existing track and wanted to add cardboard crowd (I hope it will look better than camera-facing ones, since they tend to catch too much diffuse and are impossible to balance. I hope to maybe gain few FPS too, since cardboards are very triangle-light (unproven).
    But since I'm new to AC modding I am confused about how to control z-order of my crowd, as it is somehow got over the alpha-transparent fence texture (see image). I've seen this to work in other tracks (e.g. gb_detroid2021), but not sure how this is done.
    zorder_issue.jpg Many thanks!
     
  2. VladK

    VladK New Member

    Joined:
    Aug 29, 2021
    Messages:
    16
    Likes Received:
    8
    Was able to solve the issue - it's always amazing how your brain start to work as soon as you asked a question :)

    [SHADER_REPLACEMENT_...]
    MATERIALS = FENCE,CROWD,SEATS
    BLEND_MODE = ALPHA_TEST
    SHADER = ksPerPixelAT
    IS_TRANSPARENT = 0 issue_solved.jpg
     
    luchian likes this.
  3. JoeK

    JoeK New Member

    Joined:
    Jan 20, 2021
    Messages:
    27
    Likes Received:
    8
    Location:
    North of 49th
    I'm glad you are posting an answer to your question. It will answer a question I'll have in a couple of months... :)
    Cheers...
     
  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