Creating Complex Structures with Solids

Overview

The creation of more complex solids (solids made with lots CSG operations like "Union", "Intersection", "Difference", similar to Boolean operations in 3dMax or CSG operations in other engines), may cause graphic bugs in Sandbox (mainly messed up UV mapping or geometry).

In the screenshot below: Solids used as basic as basic final structures (like platforms, walls, roofs, ceilings, etc.)

It is heavily recommended to replace those solids with cgf. models. However, splitting up the affected solids is a proper workaround for that issue:

UV Mapping for Solids

If complex solids are used as final assets – UV mapping has to be made! There are two ways to apply materials to solids:

1. By using assigning and using of specific MatID's (similar to cgf. asset creation)

How to set the material IDs of a solid:

  • Select solid.
  • Click the "UV Mapping" button.
  • Go to the "Face Material" field.
  • Select the sides were the material should be applied (hold control for selecting several sides).
  • Set MatID to 1 (or any other ID number) and click "Assign".
  • Go to the "Mapping" field and click "Relative Scale".
  • Modify the Offset and the Scale of the applied material (only numbers below 1 are accepted e.g. 0.1).

How to apply a material to a solid:

  • Select solid.
  • Go to Material Editor and assign a material (it has to be a Multi-Material if you have several MatID's).
  • Click the "UV Mapping" button.
  • Go to the "Face Material" field.
  • Set MatID to 1 (or any other ID number) and click "Select".
  • Go to the "Mapping" field and click "Relative Scale".
  • Modify the Offset and the Scale of the applied material (only numbers below 1 are accepted e.g. 0.1).

2. By using solids with just one single material applied on, so you likely need e.g. for every wall, roof, floor/ceiling two blocks one for the interiors and one for the exterior side!