Is it possible to put a Colourable Skin on the Dry Van?

Discussion in 'Content Creation' started by YellowRusty, May 18, 2018.

Tags:
  1. YellowRusty

    YellowRusty
    Expand Collapse

    Joined:
    Nov 9, 2016
    Messages:
    1,202
    So, at the moment, I'm attempting to create a colourable skin for the Randolph dry van trailer:
    upload_2018-5-17_15-26-47.png
    upload_2018-5-17_15-27-14.png

    Yet curiously, only the second colour palette (green) seems to be working, and there is the added effect of covering areas of the trailer that aren't supposed to be covered by this skin (up to and including the interior of the trailer).

    The .dds file looks like this:
    upload_2018-5-17_15-29-9.png

    And the code in the materials.cs is as follows:

    Code:
    singleton Material("dryvan.skin.dogfighter")
    {
        mapTo = "dryvan.skin.dogfighter";
        colorPaletteMap[1] = "vehicles/dryvan/Dogfighter_skins/dryvan_skin_dogfighter_uv1.dds";
        overlayMap[1] = "vehicles/dryvan/Dogfighter_skins/dryvan_skin_dogfighter.dds";
        diffuseMap[1] = "vehicles/dryvan/dryvan_d.dds";
        specularMap[1] = "vehicles/dryvan/dryvan_s.dds";
        normalMap[1] = "vehicles/dryvan/dryvan_n.dds";
        diffuseMap[0] = "vehicles/common/null.dds";
        specularMap[0] = "vehicles/common/null.dds";
        normalMap[0] = "vehicles/dryvan/dryvan_n.dds";
        specularPower[0] = "128";
        pixelSpecular[0] = "1";
        specularPower[1] = "32";
        pixelSpecular[1] = "1";
        diffuseColor[0] = "1 1 1 1";
        diffuseColor[1] = "1 1 1 1";
        useAnisotropic[0] = "1";
        useAnisotropic[1] = "1";
        castShadows = "1";
        translucent = "1";
        translucentBlendOp = "None";
        alphaTest = "0";
        alphaRef = "0";
        dynamicCubemap = true; //cubemap = "BNG_Sky_02_cubemap";
        materialTag0 = "beamng"; materialTag1 = "vehicle";
    };
    
    Am I doing something wrong, or is the Dry van currently not set up for colourable skins?
     
  2. VeyronEB

    VeyronEB
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    1,537
    Could be wrong here but I believe the reason for this is because the dryvan has no colour map (_c.dds) so it isn't colourable by default therefore the base layer is unchanged and only the highlighted skin section is colour enabled.

    You can see how it compares to a normal car skin, as you can see its got the extra colourmap and 3 material layers.



    I think the easiest way to fix it would be to create a colour map, you can use one of the official cars colour maps as a guide, but essentially its just a solid white texture with the alpha channel being light grey anywhere that paint should be applied.
     
    • Agree Agree 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