Released License plate model generator

Discussion in 'Utilities and programming' started by rukatsunderi, May 4, 2025.

  1. rukatsunderi

    rukatsunderi
    Expand Collapse

    Joined:
    Oct 8, 2023
    Messages:
    56
    Hi, everyone! I made a simple tool for license plate model generation that can be run in your browser. Just open the HTML file in the downloaded .zip file with your web browser of choice.
    platemodelgen.jpg
    Here is how to use it:
    1. In three text fields at the left side of UI, supply the following:
      • license plate identifier, for example: 30-15 or 52-11
      • plate width in centimeters
      • plate height in centimeters
    2. Click "Generate files". Output code will be shown in three fields at the right side of UI.
    3. Create a folder inside "licenseplates" folder of your mod (or one of its subdirectories), its name should be the plate identifier (e.g. 52-11). Inside it, create three files, their names are given above each output text field, for example for "52-11" format, the names are like following:
      • licenseplate-52-11.dae
      • 52-11.materials.json
      • materials.cs
    4. Copy and paste the content of each field into a respective file.
    5. Now, you can add support for this size to your license plate .json file or modify the car's .jbeam file (or create a new one) to make it possible to place this plate model on that vehicle.
    Notes:
    • My generator can create only rectangular plates, it's not possible to change the corner radius. More complex shapes will require use of 3D modelling software, like Blender.
    • Five curvature radii are supported: 4.0, 2.0, 1.5, 1.0 and 0.5 m.
     

    Attached Files:

    • Like Like x 2
  2. rukatsunderi

    rukatsunderi
    Expand Collapse

    Joined:
    Oct 8, 2023
    Messages:
    56
    As the texture system has been changed in version 0.35, here's an update of my generator. Because "materials.cs" file isn't longer needed (I've noticed that game files of EU license plates don't have this file anymore), now only 2 files are generated. In this version of the generator, normals have also been fixed, so plates don't look bent in the middle anymore (to reflect changes made in BeamNG.drive v0.37).

    I also added a possibility to change the rounding factor of license plate corners. Please keep in mind that this option only moves existing vertices and changes their UV mapping - no new vertices are added in the corners, because it would be way more difficult to implement (so it's not recommended to use very high values). By default, the factor is 1x, you can increase this value for more rounded corners or decrease it for sharper corners.
     

    Attached Files:

    • Like Like x 1
  3. mimolli

    mimolli
    Expand Collapse

    Joined:
    Jan 27, 2025
    Messages:
    356
    can you input pics in that ?
     
  4. rukatsunderi

    rukatsunderi
    Expand Collapse

    Joined:
    Oct 8, 2023
    Messages:
    56
    The purpose of this tool is to allow license plate mod creators to use plates of different sizes than default ones (52x11 cm for EU plates or 30x15 cm for US plates). It's not possible to input custom textures, because my tool generates only the model with given dimensions in centimeters - license plate creation must be done the same way as you make standard EU/US plates: first, inside one of subfolders of "vehicles\common\licenseplates" in your mod, create a "licenseplate_xyz.jbeam" file (instead of "xyz" you can put for example a country name) - this file contains definition of license plates, like:

    "license_plate_xyz_2_1": {
    "information":{
    "authors":"your_name",
    "name":"XYZ Plate Design",
    "value":50
    },
    "slotType" : "licenseplate_design_2_1",
    "licenseplate_path" : "vehicles/common/licenseplates/xyz/licensePlate_xyz.json"
    },


    Then, create a JSON file "licensePlate_xyz.json" at the path defined before. In order to be able to use this custom license plate size, you'll need to edit the license plate ID in the JSON file. All plate sizes with your design are located within the "format" object - in the example below it's "30-15" (I don't show the whole code, as it would be too long). You can copy the object named "30-15" (marked here with blue font) and paste it below it, changing its name (new object is marked with green font - in this example the ID of custom model is "34-20").

    {
    "name": "xyz",
    "version": 2,
    "data": {
    "gen": {
    "pattern" : []
    },
    "format": {
    "30-15": {

    },
    "34-20": {
    }

    }
    }
    }


    You'll need to include following files in the "xyz" folder too:
    - 4 PNG files: license plate background and font characters (as well with their normal mappings)
    - 2 JSON files: one with a license plate design definition and a second one with font definition
    - an HTML file with a license plate generator

    You can use game files as a reference - they're located in the following game folder:
    C:\Program Files (x86)\Steam\steamapps\common\BeamNG.drive\content\vehicles\common.zip\vehicles\common\licenseplates
     
  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