So, at the moment, I'm attempting to create a colourable skin for the Randolph dry van trailer: 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: 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?
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.