Glass skin tutorial
Glass Skins Tutorial
- An installed image editor who can edit *.dds file, for this tutorial we will use Paint.net (http://www.getpaint.net/download.html), it's free open source image editor .
Let's Start :
- 1. Found and make a new copy of the required glass files , on this tutorial we make this for the covet. Go on your main BeamNG.drive folder (C:\Program Files (x86)\Steam\steamapps\common\BeamNG.drive) ,
open "content" folder
then , open the "vehicles" folder and open the "hatch" folder
copy the three required files : "hatch_glass_d.dds" , "hatch_glass_da.dds" and "hatch_glass_dmg_d.dds"
- 2. Create a "hatch" folder on you BeamNG.drive document folder if you have not one already : \DOCUMENTS\BeamNG.drive\vehicles\hatch
and create a folder for your skin on the "hatch" folder , i named mine "glass_skin_sample"
- 3. Copy the three glass files on this new folder
and renamed it, for this example i had skin-sample to the file name : "hatch_glass_d_skin_sample.dds and hatch_glass_da_skin_sample.dds
- 4. Open the file on paint.net
in order to edit the three file in one time, i use the "layers" feature of paint.net,
click on layer :
and "import from file"
and then select the second glass file, do same for the third and should now look like this :
You can now import a new layer with the skin or image you want to put on glasses , i choose the BeamNG logo :
- 5. After , we can save and overwrite the images on our skin folder
- 6. Create a materials.cs file on the skin folder (i create a new txt file and rename it to materials.cs)
If you would combine the glass skin to a car skin , you can use the materials.cs file of your skin , just add the following lines
We can use the materials.cs file located on the game's hatch folder , and copy the line related to glass ("hatch_glass" , "hatch_glass_int" and "hatch_windshield_dmg" to our new materials file:
Now we have to edit the materials in order to make our skin work :
First step add the skin parameter and skin name to the material name and "Map To=":
Then add the path to our skin folder and modify the skin file name:
You can now save your materials file
7. Create a new jbeam file file on the skin folder (i create a new txt file and rename it to skin_glass_sample.jbeam)
If you would combine the glass skin with a skin you not need to add a new jbeam file
You can now start BeamNG.drive and then you can found your skin on the part selector
Now your have your own skin, enjoy it :)
Combine a skin and a glass skin:
If keep the exact same "Global Skin" name , you can combine the glass skin and a car skin , for example with the Simple Skin Tutorial , you don't need a new jbeam , just change the glass skin name on the materials by the same exact name of the "Simple Skin Tutorial" :
And now you have a nice skin ;)