Overview | All Modules | Tutorial | User's Guide | Programming Guide

COVISE Online Documentation


Module category: Tools



Material

Material contains a list of different color values from witch the user can select.

MaterialModule.png

Material is available for COVISE SNAP 2000/12 and higher. It's available for all supported platforms.

Parameters

Name Type Description
group Choice A list of available pre-defined and user-defined material groups. The user-defined material group is only available if the covise.config file contains at least one user-defined material. See the section "User-defined Materials" how to add materials to your covise.config file.
material Choice The name of this choice button depends on the chosen material group. It contains all materials of a special material group.

Input Ports

Name Type Description
requiredgrid StructuredGrid
UnstructuredGrid
RectilinearGrid
UniformGrid
Points
Lines
Polygons
Required input port: structured, unstructured, rectilinear, uniform grid or a set of points, lines or polygons.
optionalcolors Structured_V3D_Colors
Unstructured_V3D_Colors
RGBA_Colors
Float
Optional input port: colors or data to be mapped.
optionalnormals Structured_V3D_Normals
Unstructured_V3D_Normals
Optional input port: structured or unstructured vector data.
optionaltextures Textures Optional input port: texture data.

Output Ports

Name Type Description
outputgeometry Geometry The outer surface of the grid.

Examples

Figure: covise/net/examples/Material.net
MaterialMap.png

In Material.net the module RWCovise reads in the computational grid of a channel with two inlets. DomainSurface computes the outer surface of the channel. At the first output port the surface polygons are available. CutGeometry cuts the surface off. With the module Material you can specify the material properties of the surface.
In addition to the pre-defined materials you can define you own color values and save them under your material name. See therefore the section "User-defined Materials".

Figure: Results of Material.net in the Renderer
MaterialRender.png
The example above can be found under covise/net/examples/Material.net.

List of available materials (overview)

The following overview shows you groups of 'Material' in order to make it easier for you to compare and select the material and color you like. The spheres shown for each material, e.g. 'metal' represent

       metal.0  metal.1  metal.2  metal.3  metal.4  metal.5
       metal.6  metal.7  metal.8  metal.9  metal.10 metal.11
       metal.12 metal.13 metal.14 metal.15 metal.16 metal.17
       metal.18 metal.19 metal.20 metal.21 metal.22 metal.23
       metal.24 metal.25 metal.26 metal.27 metal.28 metal.29
       metal.30 metal.31 metal.32 metal.33 metal.34 metal.35
Figure: metal/glass/silky/sheen
group1.png

metal/glass/silky/sheen


Figure: spring/summer/autumn/winter
group2.png

spring/summer/autumn/winter


Figure: rococo/artdeco/santafe
group3.png

rococo/artdeco/santafe


Figure: tropical/neon
group4.png

tropical/neon


User-defined Materials

To add user-defined materials, you must edit your covise.config file. At first you must add a new scope called "Material". Next, you add your materials to this scope. For each material you've one separate line which ends with a new-line character. The material-line has the following format:

materialName (string)
ambientColor[0] (float)
ambientColor[1](float)
ambientColor[2] (float)
diffuseColor[0](float)
diffuseColor[1] (float)
diffuseColor[2] (float)
specularColor[0] (float)
specularColor[1] (float)
specularColor[2] (float)
emissiveColor[0] (float)
emissiveColor[1] (float)
emissiveColor[2] (float)
shininess (float)
transparency (float)

The values are separated with a space from each other. Be sure that your material name contains no space.

This is an example for a user-defined material in your covise.config:

Material
{
    glass.0    0.187004 0.155212 0.0 0.748014 0.62085 0.0 0.860606 0.860606 0.860599 0.0 0.0 0.0 0.939394 0.34749
}

Authors: Martin Aumüller, Ruth Lang, Daniela Rainer, Jürgen Schulze-Döbold, Andreas Werner, Peter Wolf, Uwe Wössner
Copyright © 1993-2016 HLRS, 2004-2014 RRZK, 2005-2014 Visenso
COVISE Version 2016.3