> For the complete documentation index, see [llms.txt](https://help.wifi-solver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wifi-solver.com/simulations/materials-and-images.md).

# Materials and image imports

Materials control how objects bend, reflect and absorb waves. Rectangles and circles use a predefined or custom material. Images use colours to describe several materials in one bitmap.

## Choose a material

Select a rectangle or circle, then open **Material** in the **Selection** pane.

![Object material and index controls](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FtSRGDDA4rK38KODIcZqF%2Fobject-properties.png?alt=media)

Presets include Air, Wood, Glass, Brick, Concrete, Plasterboard, Ceiling board, Chipboard, Plywood, Marble (stone), Vinyl tile, Carpet tile and Asphalt concrete. They represent material classes; a particular wall's composition, moisture and construction may differ.

Building-material presets use coefficients from [ITU-R P.2040-4](https://www.itu.int/rec/R-REC-P.2040-4-202509-I/en). Their properties are evaluated at the configured source frequency.

## Custom materials

Edit **Refractive index n** and **Absorption kappa** to override a rectangle or circle's preset.

* **n** controls the real part of the refractive index.
* **kappa** controls attenuation. Zero gives no material absorption in this model.
* Both values must be finite, with n ≥ 1, kappa ≥ 0, and n² − kappa² ≥ 1.

Changing wavelength or material indices changes the wavelength inside materials and can change the grid resolution needed. Review [Grid settings and diagnostics](https://help.wifi-solver.com/simulations/grid-settings.md) after such changes.

## Prepare a floorplan image

Convert your floorplan to the import palette before uploading it. Use flat, pure colours and an opaque black background for air.

| Image colour | RGB           | Material |
| ------------ | ------------- | -------- |
| Red          | 255, 0, 0     | Wood     |
| Green        | 0, 255, 0     | Glass    |
| Blue         | 0, 0, 255     | Brick    |
| White        | 255, 255, 255 | Concrete |
| Black        | 0, 0, 0       | Air      |

Labels, shadows, gradients and antialiased edges can create unintended material regions - please ensure your image only uses these colours. A lossless PNG with the pure palette colours is a useful starting point; JPEG compression can alter those colours.

The following is a good example to try:

![Example floorplan prepared for the image material palette](https://58776923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrRIf4SV3WFkabUWKslD7%2Fuploads%2FqQ5YnILk4HQFvxbN0rQc%2Fhouse-01-01.png?alt=media\&token=4c02f2e4-cc0b-437f-89a8-fe5f451b3577)

## Import and size the image

1. With nothing selected, choose **Add image** in **Selection**.
2. Pick the prepared image file.
3. Select the imported object and set **Width** and **Height** to its real dimensions in metres.
4. Adjust its centre position and rotation to align it with the scene.
5. Run with an object overlay visible to check the imported boundaries.

The image's pixel resolution and the simulation grid both limit the detail that can be represented. Large images can be reduced during loading; keep important walls and gaps wide enough to survive both the image conversion and the grid sampling.

Image materials come from the fixed palette. Per-object custom n and kappa controls apply to rectangles and circles, not to the individual regions within an image.
