overview project page about

Material Browser
(PCSceneMaterialBrowser)



Short Description

A scene contains a list of materials that are used to render the geometric objects. Each material is identified by its index (a number). The material browser allows viewing and editing the materials stored in the scene.

Screenshot of the material browser:
screenshot


Usage

The material browser is rather simplistic, usage should be self explanatory. Double click to edit materials. You need to be familiar with CG and the internal material handling of XGRT to actually create materials (no documentation here).
Assigning materials: It is non-obvious how materials are acctually assigned to object (rather then defining materials, what this editor is about). Go to the SceneGraphEditor, open the node of the object (SGObjectNode) you wish to assign a new material to. Then go to the "SceneObject* obj" property and select to edit it ("..."). See screenshot below:


screenshot


An editor window for the object will pop up. Then edit the "card32 materialIndex" property; put the index of the material you which to employ. See screenshot below (the actual editor might be slightly different, depending on the object type, but the material index property is always present, and is always the first attribute in the list):


screenshot




overview project page about