QUESTION Need help with flag displays

Discussion in 'Tracks' started by heregerezd, Sep 4, 2022.

  1. heregerezd

    heregerezd New Member

    Joined:
    Sep 4, 2022
    Messages:
    13
    Likes Received:
    1
    Hey! Im working on my first track and i want to add digital flags or flag display which is dynamic according race condition (yellow, green, red) How can i make it in AC?

    An i need help with track display where the "crowd" can see the track.
     
  2. John Harding

    John Harding Active Member

    Joined:
    Aug 5, 2021
    Messages:
    68
    Likes Received:
    127
    Hello,

    This is quite timely seen as I've just been through the process myself.

    Firstly you should go through the conditions (link) part of the wiki. Here you will see that 'FLAG_TYPE' is the thing that will control the digital flags.

    Then you need to use this condition to control the meshes in a digital flag, this is how it is done at Pinwheel. The 'LUT' is the output colour which is used by the KEY_0 later for the emissive colour, and all the options are pretty much self-explanatory and worth experimenting with.

    Code:
    [CONDITION_...]
    NAME = RACING_FLAG
    INPUT = FLAG_TYPE
    LUT = (|0=0|1=0|2=1,1,0|3=0|4=0|5=0|6=0|7=0|8=0|9=0|10=0|11=0|12=0,0,1|13=0|14=0|)
    INPUT_STAY_FOR = 1.5
    INPUT_CHANGE_DELAY = 0
    FLASHING_FREQUENCY = 16
    FLASHING_SMOOTHNESS = 0.3
    FLASHING_SKIP_OFF_STATE = 0
    FLASHING_NOISE_AMPLITUDE = 0
    FLASHING_MIN_VALUE = 0.0
    FLASHING_SYNCED = 1
     
    [MATERIAL_ADJUSTMENT_...]
    ACTIVE = 1
    VISIBILITY_LEVEL = 0
    MESHES = DigiflagGroup01, DigiflagGroup02, DigiflagGroup03, DigiflagGroup04, DigiflagGroup05, DigiflagGroup06, DigiflagPIT
    KEY_0 = ksEmissive
    VALUE_0 = 255,255,255,0.025
    VALUE_0_OFF = 0
    KEY_1 = ksAlphaRef
    VALUE_1 = -193
    VALUE_1_OFF = -193
    CONDITION = RACING_FLAG
    I learnt a lot from this post here by Stonewaiterz.

    I hope that helps,

    John
     
    heregerezd likes this.
  3. heregerezd

    heregerezd New Member

    Joined:
    Sep 4, 2022
    Messages:
    13
    Likes Received:
    1
    Thank you! Finally the flags are working :)
     
    John Harding likes this.
  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