Glass skin tutorial

Glass skin tutorial

From BeamNG
Language: English

Glass Skins Tutorial

Glasskintut.jpg

Requirements:

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

Glasskintut01.jpg


then , open the "vehicles" folder and open the "hatch" folder

Glasskintut02.jpg


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

Glasskintut03.jpg


and create a folder for your skin on the "hatch" folder , i named mine "glass_skin_sample"

Glasskintut04.jpg


  • 3. Copy the three glass files on this new folder

Glasskintut05.jpg


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

Glasskintut06.jpg


  • 4. Open the file on paint.net

Glasskintut07.jpg


in order to edit the three file in one time, i use the "layers" feature of paint.net,

click on layer :

Glasskintut08.jpg


and "import from file"

Glasskintut09.jpg


and then select the second glass file, do same for the third and should now look like this :

Glasskintut10.jpg



You can now import a new layer with the skin or image you want to put on glasses , i choose the BeamNG logo :

Glasskintut11.jpg



  • 5. After , we can save and overwrite the images on our skin folder

​ ​Glasskintut12.jpg

Glasskintut13.jpg



  • 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

Glasskintut14.jpg

Glasskintut15.jpg


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:

Glasskintut16.jpg



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=":

Glasskintut17.jpg



Then add the path to our skin folder and modify the skin file name:

Glasskintut18.jpg


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

Glasskintut19.jpg



You can now start BeamNG.drive and then you can found your skin on the part selector

Glasskintut20.jpg



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" :

Glasskintut21.jpg

Glasskintut22.jpg



And now you have a nice skin ;)

Glasskintut23.jpg