Solved Negative Chrominess

Discussion in 'Mod Support' started by LJ74, Oct 7, 2019.

  1. LJ74

    LJ74
    Expand Collapse

    Joined:
    Oct 27, 2018
    Messages:
    1,903
    At the lowest value, instead of the chrominess being none it goes to negative and inverts the reflections colours.
    BeamNGdrive-017129059-RELEASE-x647_10_20192_56_23PM.png BeamNGdrive-017129059-RELEASE-x647_10_20192_56_27PM.png
    Code:
    singleton Material(ministock)
    {
        mapTo = "ministock";
        diffuseMap[2] = "vehicles/ljministock/ministock_main_c.png";
        specularMap[2] = "vehicles/ljministock/ministock_main_s.png";
        diffuseMap[1] = "vehicles/ljministock/ministock_main_d.png";
        specularMap[1] = "vehicles/ljministock/ministock_main_s.png";
        diffuseMap[0] = "vehicles/common/null.dds";
        specularMap[0] = "vehicles/common/null.dds";
        specular[0] = "0.5 0.5 0.5 0.1";
        specular[1] = "0.5 0.5 0.5 0.1";
        specular[2] = "0.5 0.5 0.5 0.1";
        specularPower[0] = "128";
        pixelSpecular[0] = "1";
        specularPower[1] = "32";
        pixelSpecular[1] = "1";
        specularPower[2] = "128";
        pixelSpecular[2] = "1";
        diffuseColor[0] = "1 1 1 1";
        diffuseColor[1] = "1 1 1 1";
        diffuseColor[2] = "1 1 1 1";
        useAnisotropic[0] = "1";
        useAnisotropic[1] = "1";
        useAnisotropic[2] = "1";
        castShadows = "1";
        translucent = "1";
        translucentBlendOp = "None";
        alphaTest = "0";
        alphaRef = "0";
        dynamicCubemap = true;
        beamngDiffuseColorSlot = 2;
        materialTag0 = "beamng"; materialTag1 = "vehicle";
        alphaTest = "0";
        alphaRef = "0";
        dynamicCubemap = true;
        instanceDiffuse[2] = true;
        materialTag0 = "beamng"; materialTag1 = "vehicle";
    };
    Any help is appreciated :D
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    What the slider does is adding/removing 50% of the opacity from the _c texture.
    Make sure that your _c texture has an alpha of 50% where the body is, this way the slider always fall between 0% (fully chrome) and 100% (fully opaque)
     
    • Like Like x 1
    • Informative Informative x 1
  3. LJ74

    LJ74
    Expand Collapse

    Joined:
    Oct 27, 2018
    Messages:
    1,903
    Oooh right, that worked. Thanks!
     
    • Like Like x 1
  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