The villa includes doors and windows. These objects use multiple material IDs to enable you to apply different materials to different surfaces of the object. (Some other architectural objects, and even some primitives, use the same method.)
A material ID is simply an ID number associated with certain surfaces on an object. It works with the Multi/Sub-Object material. The Multi/Sub-Object material contains multiple sub-materials, each of them linked by material ID to the object that uses the Multi/Sub-Object material.
Doors and windows use material IDs in the same general way, as shown in the following illustration.

Material IDs for a door or window
In this lesson, although doors and windows employ five different ID values, you use only two sub-materials: a solid color for the wooden parts, and a transparent material for the glazing or glass panel, which corresponds to the “inner bevel” ID.
open med_villa_mat_multisub.max.
Create the top-level multi/sub-object material:
Slate Material Editor, drag a Multi/Sub-Object material from the Browser into the active View, and drop it to the right of
the nodes that are already in the View.
Standard group.

A Multi/Sub-Object material is just a container for other materials. By default, there are 10 sub-materials.


In the small dialog that opens, reduce the number of sub-materials to 5, and then click OK.

Now the rollout shows only five sub-materials, and so does the material node, which now looks more manageable.

For the solid parts of the doors and windows, you can use the same blue material you used for the railings of the deck and the house.

That leaves only ID 3, the inner bevel, which requires glazing.
For the glazed parts of the doors and windows, you need a different sub-material that is transparent.
mental ray group) into the active View, and wire it to sub-material (3) of the Doors & Windows material. 

The default color is Clear, which is what we want, so leave these settings unchanged.
Select the doors and windows, and apply the material:
(Select Objects In Current Layer).
(Assign Material To Selection).
This applies the Multi/Sub-Object material to doors and windows: The frames turn blue, while the glazed parts (“inner bevels”) turn transparent.
(Render Production).
3ds Max Design renders the scene.

Incidentally, in this rendering you can see a small amount of the interior wall paint that you created in the previous lesson.