This is the documentation for Enlighten.

Using textures with GeoRadiosity

To apply textures to geometry that you wish to preview in GeoRadiosity, you need to supply a .mat file next to each of your .pim files, with the same name as the corresponding .pim file. The .mat file contains mappings from material IDs in the mesh to <material> tags. The schema for the .mat file can be found in Source\Samples\Libraries\GeoEn2Support\mats.xsd.

Example

An example of a material is as follows:

<material id="1">
    <diffuse>
        <texture>..\Textures\test.tga</texture>
    </diffuse>
    <specular colour="1.0 0.5 0.5 1.0" power="2" />
</material>

Schema files

If you have trouble reading schema files:

  1. Create a new XML file in Visual Studio.
  2. Press F4 to display the Properties dialog.
  3. Attach the provided schema to the Schemas field. As you type into your XML file, the possible fields will appear as options. These are documented in the tooltips.