Solved Customized warninglights

Discussion in 'Mod Support' started by MitchellKnb, Apr 17, 2017.

  1. MitchellKnb

    MitchellKnb
    Expand Collapse

    Joined:
    Dec 19, 2016
    Messages:
    207
    I made the dashboard warninglights for the Mercedes W202.
    screenshot_00125.png
    However, in real life these Mercedes' don't have icons that light up but the entire box lights up with the icon in it. So I tried replicating this.
    screenshot_00127.png
    However, the texture I made by modifying the decals_gauges.dds file from the game doesn't have a working Alpha.. I tried DXT1, DXT3 and DXT5, none of them get it done..
    Untitled-1.jpg
    Also it doesn't actually glow up, it just shows up, how do I get it to glow up?
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    Not sure if I understood correctly.
    Basically the 'off' ones should be invisible?
    If so, why don't you just make a fully transparent texture (and material) that the game uses for the 'off' state?
     
  3. MitchellKnb

    MitchellKnb
    Expand Collapse

    Joined:
    Dec 19, 2016
    Messages:
    207
    I inverted the alpha. so not the icon, but the area around it should show. however, the game does not see the alpha for some reason and the glow is gone.
     

    Attached Files:

  4. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    Sorry, but I need to figure out what you want to achieve yet :p

    By inverting the alpha, you are basically making the actual icon transparent, and the background (previously transparent), visible.
    Or something on that line.

    By the way, in your screenshot it shows orange, which is probably a 'NO TEXTURE' thing, meaning the game is probably not evening finding that texture.
    What your console/log says?
     
  5. MitchellKnb

    MitchellKnb
    Expand Collapse

    Joined:
    Dec 19, 2016
    Messages:
    207
    exactly! That is what I want. because the entire "box" lights up on these cars

    I am confident in saying that it is not, notice the red part in the right of the picture where it previously said BRAKE. Also, I tried the multiple dds types and one of them showed the alpha printed in black, so I saw the exclamationmark. (!) The orange texture is definetly not the issue. I PM'ed you the files.
     
  6. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    Funky.
    Not sure how useful those would be in reality, if they are all just boxes with no visible icons? :p

    I will take a look at the files.
     
  7. MitchellKnb

    MitchellKnb
    Expand Collapse

    Joined:
    Dec 19, 2016
    Messages:
    207
    Thank you!

    The picture is too bright, maybe this is a better example:
     
  8. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    To start, your materials.cs is very, very messy.
    A lot of random materials that you don't use.
    I suggest to clean it up before starting. The console won't help you if your error is buried in 80 other errors related to them.
    It took me way to long to figure this out due the messy materials.cs


    1)
    In your Jbeam you are indicating directly the texture to use.
    That will bypass any material option, such as 'glow' and etc.

    Instead of writing your texture path in the Jbeam, write a new material (name it how you want).

    Note that I haven't changed the 'lowbeam' one, as it's being used also for your dashboard background (You probably named that mesh material 'lowbeam'?)

    Then create the material in your materials.cs.
    I took the one official vehicle uses (decals_gauge in common/materials.cs).


    VoilĂ .
    You need that, as your texture contains transparency. If you don't indicate in the material that the thing is trasparent (traslucency in the materials.cs), the game will not work with the alpha-channel.

    You can now continue from there pretty much.
     
  9. MitchellKnb

    MitchellKnb
    Expand Collapse

    Joined:
    Dec 19, 2016
    Messages:
    207
    Amazing! Thank you Nadeox1! :D
    screenshot_00129.png screenshot_00130.png screenshot_00131.png
     
    • Like Like x 2
  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