Material Preview Layer

Material Preview Layer

Class

inc/real/r3layer/r3layer.h

Description

This is a special purpose project that Realsoft 3D uses for rendering preview images for materials. Each material can have a project file name associated with them. When the material is selected, the material window loads the associated project, attaches the material to the geometric objects in the project and renders the preview image. The structure of the material preview layer is exactly the same as the structure of the user defined layers.

Examples:

To fetch the address of the material preview layer.

    R3OBJ *mplayer;

    // fetch the geom. primitive layer from te current project
    R3GetAttrs(currentlayer,
               R3T(R3LAYLA_MaterialPreviewLayer, &mplayer),
               R3TAG_END);