QUESTION [CustomEmissive]

Discussion in 'Tracks' started by Ternal, Nov 21, 2020.

  1. Ternal

    Ternal Member

    Joined:
    Feb 25, 2018
    Messages:
    86
    Likes Received:
    9
    Hey everyone, here i am once again with questions ahahah

    I'm pretty ok on mastering lights on AC, but i still have some question and problems that i can't figure out.

    It is possible to have multiple [CustomEmissive] object in the same ext_config?

    I tried it, but i don't know why, if i add a second one, the first light emissive i made it went off (the illumination still present, but the emissive material it swith off. If i remove the second [CustomEmissive] everything works fine.

    For exampe

    Start semaphore light, other pitlane semaphore which uses different material names + houses windows + bulb on the pole lamp with a different material name too.

    Is possible to have all single materials with a different [CustomEmissive]?? There's a specific way to use them?
    Thanks in advance
     
  2. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    make sure you also change the material in question for second customEmissive:

    [CustomEmissive]
    MATERIALS = mat1
    ...

    [CustomEmissive]
    MATERIALS = mat2
    ...
     
    Ternal likes this.
  3. Ternal

    Ternal Member

    Joined:
    Feb 25, 2018
    Messages:
    86
    Likes Received:
    9
    Already done man, but is not working :-/

    This is how i made it:

    ;;;;;;;;;;;;;; TRACK LIGHTS ;;;;;;;;;;;;;;;

    [CustomEmissive]
    ACTIVE = 1
    DESCRIPTION = Track Lights
    MATERIALS =MATERIALNAME1,
    Resolution = 1024, 2048
    SHADER=ksPerPixelMultiMap_emissive
    @ = CustomEmissive_Rect, Channel = 1, Start = "867.3, 652.5", Size = "25.7, 55.2"

    [LIGHT_SERIES_...]
    ACTIVE=1
    DESCRIPTION= Track Lights
    VISIBILITY_LEVEL=0
    MATERIALS=MATERIALNAME1,
    CONDITION=NIGHT_SMOOTH
    OFFSET=0,5,0
    DIRECTION=NORMAL
    DIRECTION=0,-2,0
    SPOT=225
    RANGE=35
    RANGE_GRADIENT_OFFSET=0.4
    FADE_AT=700
    FADE_SMOOTH=25
    CLUSTER_THRESHOLD=16
    DIFFUSE_CONCENTRATION=0
    COLOR=255,255,200,0.015

    [MATERIAL_ADJUSTMENT_0]
    ACTIVE=1
    DESCRIPTION=
    MATERIALS=MATERIALNAME1,
    KEY_...=ksEmissive1
    VALUE_...=255,255,255,0.035
    VALUE_..._OFF=0, 0, 0
    CONDITION=NIGHT_SMOOTH
    KEY_... = ksAlphaRef
    VALUE_... = -193

    ;;;;;;;;;;;;;; TRACK LIGHTS ;;;;;;;;;;;;;;;

    [CustomEmissive]
    ACTIVE = 1
    DESCRIPTION = Track Lights
    MATERIALS =MATERIALNAME2,
    Resolution = 1024, 2048
    SHADER=ksPerPixelMultiMap_emissive
    @ = CustomEmissive_Rect, Channel = 1, Start = "867.3, 652.5", Size = "25.7, 55.2"

    [LIGHT_SERIES_...]
    ACTIVE=1
    DESCRIPTION= Track Lights
    VISIBILITY_LEVEL=0
    MATERIALS=MATERIALNAME2,
    CONDITION=NIGHT_SMOOTH
    OFFSET=0,5,0
    DIRECTION=NORMAL
    DIRECTION=0,-2,0
    SPOT=225
    RANGE=35
    RANGE_GRADIENT_OFFSET=0.4
    FADE_AT=700
    FADE_SMOOTH=25
    CLUSTER_THRESHOLD=16
    DIFFUSE_CONCENTRATION=0
    COLOR=255,255,200,0.015

    [MATERIAL_ADJUSTMENT_0]
    ACTIVE=1
    DESCRIPTION=
    MATERIALS=MATERIALNAME2,
    KEY_...=ksEmissive1
    VALUE_...=255,255,255,0.035
    VALUE_..._OFF=0, 0, 0
    CONDITION=NIGHT_SMOOTH
    KEY_... = ksAlphaRef
    VALUE_... = -193

    ;;;;;;;;;;;;;; GREEN SEMAPHORE ;;;;;;;;;;;;;;;

    [CustomEmissive]
    ACTIVE = 1
    DESCRIPTION = Track Semaphore Light
    MATERIALS =MATERIALNAME3
    Resolution = 128, 128
    SHADER=ksPerPixelMultiMap_emissive
    @ = CustomEmissive_Rect, Channel = 1, Start = "25, 33", Size = "78, 67"

    [LIGHT_SERIES_...]
    ACTIVE=1
    DESCRIPTION= Track Semaphore Light
    VISIBILITY_LEVEL=0
    MATERIALS=MATERIALNAME3
    CONDITION=ALWAYS_ON
    OFFSET=0,0,0
    DIRECTION=NORMAL
    DIRECTION_OFFSET=0,0,0
    SPOT=180
    SPOT_SHARPNESS=100
    RANGE=20
    RANGE_GRADIENT_OFFSET=0.15
    FADE_AT=1000
    FADE_SMOOTH=800
    CLUSTER_THRESHOLD=7.50
    DIFFUSE_CONCENTRATION=0.75
    COLOR=0,181,9,0.0025

    [MATERIAL_ADJUSTMENT_...]
    ACTIVE = 1
    VISIBILITY_LEVEL = 0
    DESCRIPTION = Track Semaphore Light
    MATERIALS = MATERIALNAME3
    CONDITION = ALWAYS_ON
    KEY_... = ksEmissive1
    VALUE_0 = 0,181,9,0.50
    KEY_... = ksAlphaRef
    VALUE_... = -193

    But no luck, when i add a second [CustomEmissive] the first one shuts off :-/
     
  4. fughettaboutit

    fughettaboutit aka leBluem

    Joined:
    Jul 21, 2014
    Messages:
    1,117
    Likes Received:
    379
    ahha good you posted this, you have two times [MATERIAL_ADJUSTMENT_0]

    just use [MATERIAL_ADJUSTMENT_...]
    everywhere
     
    Last edited: Nov 21, 2020
    maruto likes this.
  5. Ternal

    Ternal Member

    Joined:
    Feb 25, 2018
    Messages:
    86
    Likes Received:
    9
    So i can manage the color and intensity in the [LIGHT_SERIES_...] instead of using multiple times the [MATERIAL_ADJUSTMENT_...]? I try it immediately
     
  6. Ternal

    Ternal Member

    Joined:
    Feb 25, 2018
    Messages:
    86
    Likes Received:
    9
    @fughettaboutit

    THANK YOU SO MUCH.

    Many weeks on trying and finally i found the solution, thank you so much man, really!
    I now have only a problem with a texture, but is a minor problem which i can fix easily :)
     
    fughettaboutit 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