Submodule: RoomTextureLoader

Assign textures to your room

The room texture loader is a submodule that enables you to assign a probability to a particular element being rendered in a certain material. For example, a 25% chance that a wall will be made of bricks. The probability that a specific material category will be selected is driven by the "weight" parameter. A "weight" is a value between zero and one. For example, 1.0 is a 100% probability and 0.25 is 25%.

        "RoomTextureLoader":{
          "textures": [
            {
              "type": "Floor",
              "material": "Any",
            },
            {
              "type": "Wall",
              "material": "Drywall",
              "weight": 0.50
            },
            {
              "type": "Wall",
              "material": "Bricks",
              "weight": 0.25
            },
            {
              "type": "Wall",
              "material": "Concrete",
              "weight": 0.25
            },
          ]
        }

Material Types

The following material types are currently available.

Renaming / Creating New Material Groups

You can also create a new group of materials with a unique name. For example, if I wanted to apply the materials within "Others" to a group that would be assigned to doors, you can use the "rename" parameter. The "rename" parameter will create a new material group with a new name that can be referenced elsewhere in your simulation.

            { 
              "type": "Others",
              "rename": "Lexset_Door",
              "material": "Any"
            }

Last updated