1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.37 Bug Reporting thread
    Solutions and more information may already be available.

white is not white in game

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ThreeDTech21, Jun 3, 2017.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    I have a texture with white in it, when the texture is applied in game the white part is not white. the black part is black, but the white part is kinda yellowish like the bus, why is the white yellow in game?


    schoolbus_school_1.png
    busnotwhite2.png


    should be white but appears yellowish
    busnotwhite.png

    This is the materials file. schoolbus ( overlayMap[2] = "vehicles/schoolbus/schoolbus_school_1.png"; is the texture. )

    Code:
    singleton Material("schoolbus.skin.school2")
    {
        mapTo = "schoolbus.skin.school2";
        overlayMap[2] = "vehicles/schoolbus/schoolbus_school_1.png";
        diffuseMap[2] = "vehicles/schoolbus/schoolbus_c.dds";
        specularMap[2] = "vehicles/schoolbus/schoolbus_s1.dds";
        normalMap[2] = "vehicles/schoolbus/schoolbus_n1.dds";
        diffuseMap[1] = "vehicles/schoolbus/schoolbus_d1.dds";
        specularMap[1] = "vehicles/schoolbus/schoolbus_s1.dds";
        normalMap[1] = "vehicles/schoolbus/schoolbus_n1.dds";
        diffuseMap[0] = "vehicles/common/null.dds";
        specularMap[0] = "vehicles/common/null.dds";
        normalMap[0] = "vehicles/schoolbus/schoolbus_n1.dds";
        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;
        instanceDiffuse[2] = true;
        materialTag0 = "beamng"; materialTag1 = "vehicle";
    };
     
    #1 ThreeDTech21, Jun 3, 2017
    Last edited: Jun 3, 2017
  2. EruptionTyphlosion

    EruptionTyphlosion
    Expand Collapse

    Joined:
    Sep 24, 2016
    Messages:
    2,927
    Change the color of the bus in game to white (Car select color picker) , and it should work.
     
  3. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    That should work but for the skin system if someone makes a texture with white in it it wont work right
     
  4. SixSixSevenSeven

    SixSixSevenSeven
    Expand Collapse

    Joined:
    Sep 13, 2013
    Messages:
    6,958
    more likely you've configured the alphas incorrectly
     
  5. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    I must have the alpha wrong on one of the textures but i dont know which one. The colored portions on the texture above is solid no alpha, everything else is 100% alpha, now for the schoolbus.c.dds texture it is solid white, I notice that the official vehicles have it as 60% transparent, but when I make the schoolbus_c.dds 60% transparent it just makes the bus more chrome

    I can post the textures files here

    schoolbus.c.dds solid white, with some black lines (schoolbus_d1.dds is the same exact texture)

    schoolbus_c.png
     
    #5 ThreeDTech21, Jun 4, 2017
    Last edited: Jun 4, 2017
  6. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,826
    from what ive been told. on the "c" (colorable texture) there should be nothing where you want a texture like that.
    like this by example
    upload_2017-6-3_19-10-48.png
     
  7. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    I put an alpha where those textures are and it just made those parts chrome

    I just tried the same texture and replaced white with red and it worked.

    red.png


    Capture.png

    It seems that Beamng is interpreting the white color as something else, sort of how the Color Pallete interpets Red, Green and Blue

    but the Overlay Map is still being treated as a regular texture because it can be changed in the color chooser which shouldn't be possible

    darkcolor.png
     
    #7 ThreeDTech21, Jun 4, 2017
    Last edited: Jun 4, 2017
  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