Glass skin tutorial

Glass skin tutorial

From BeamNG
Language: [[::Glass skin tutorial|English]]

Glass Skins Tutorial

Glasskintut.jpg

Requirements:

Let's Start :

  • 1. Find and make a new copy of the required glass files, in this tutorial we use the covet. Go to your main BeamNG.drive folder (C:\Program Files (x86)\Steam\steamapps\common\BeamNG.drive) ,


First open the "content" folder

Glasskintut01.jpg


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

Glasskintut02.jpg


Then copy the three required files : "hatch_glass_d.dds" , "hatch_glass_da.dds" and "hatch_glass_dmg_d.dds"


  • 2. Create a "hatch" folder in your BeamNG.drive documents folder if you have not got one already : \documents\BeamNG.drive\vehicles\hatch

Glasskintut03.jpg


Next create a folder for your skin in the "hatch" folder, I named mine "glass_skin_sample"

Glasskintut04.jpg


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

Glasskintut05.jpg


Now rename it, for this example I added "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 in paint.net

Glasskintut07.jpg


In order to edit the three files all at once, use the "layers" feature of paint.net,

First click on layer :

Glasskintut08.jpg


Then click "import from file"

Glasskintut09.jpg


Next select the second glass file and do the same for the third. It should now look like this :

Glasskintut10.jpg



The next step is to import a new layer with the skin/image you want to put onto the glass, I chose the BeamNG.drive logo :

Glasskintut11.jpg



  • 5. Save and overwrite the images in your skin folder

​ ​Glasskintut12.jpg

Glasskintut13.jpg



  • 6. Create a materials.cs file in the skin folder (I created a new .txt file and rename it to materials.cs)

If you would like to add the glass skin to a car skin, use the materials.cs file from your skin , just add the following lines

Glasskintut14.jpg

Glasskintut15.jpg


Next use the materials.cs file located in the game's hatch folder, and copy the line: ("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 your skin folder and modify the skin file name:

Glasskintut18.jpg


You can now save your materials.cs file


7. Create a new jbeam file in your skin folder (I create a new txt file and rename it to skin_glass_sample.jbeam)

If you choose to add your glass skin to a car skin, you do not need to add a new jbeam file

Glasskintut19.jpg



You can now start BeamNG.drive. You can find your skin in the part selector menu.

Glasskintut20.jpg



Now your have your own glass skin, enjoy it :)

Combine a skin and a glass skin:

If you 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 to the same exact name as the "Simple Skin Tutorial" :

Glasskintut21.jpg

Glasskintut22.jpg



And now you have a nice skin ;)

Glasskintut23.jpg