Materialeffekte

Materialeffekte sind Sichteffekte, die auf eine Objektoberflächen angewendet werden können.

Unterschiedliche Arten der Materialeffekte sind vorhanden.

Eine breite Palette von Effekten ist möglich.

create matfx type=3 tex=self coef=.67

Environment mapping

Unlike geometric reflection techniques that render reflected virtual objects to appear as reflections within the actual scene, an environment map may have nothing to do with the actual surroundings of the object. Indeed, a common use of environment mapping is interactively rendering an object free-floating against an empty black background. The point of applying an environment map to such an object is not to give a true sense of the object's surroundings (it has none). Instead, the view-dependent nature of the (fake) reflected environment merely helps highlight the object's surface curvature.

Bump mapping

Bump mapping, like texture mapping, is a technique to add more realism to synthetic images without adding a lot of geometry. Texture mapping adds realism by attaching images to geometric surfaces. Bump mapping adds per-pixel surface relief shading, increasing the apparent complexity of the surface by perturbing the surface normal. Surfaces that have a patterned roughness are good candidates for bump mapping. Examples include oranges, strawberries, stucco, wood, etc.

Dual textures

Dual texture are overlayed textures using blending techniques. Blending is a mechanism for combining color already in the framebuffer with the color of the incoming primitive. The result of this combination is then stored back in the framebuffer. Blending is frequently used to simulate translucent physical materials. One example is rendering the smoked glass windshield of a car. The driver and interior are still visible, but they are obscured by the dark color of the smoked glass.

Der matfx action Befehl

Folgende triggers können für den matfx action Befehl verwendet werden:

create, activate, bump und adone

matfx [type=type] [tex=tex] [coef=coef] [tag=tag] [blend=blend] [name=name] [global]

Das type Argument [type=type] ist ein Ganzzahlwert, der entweder zwischen 0 bis 4 oder in der zwischen 10 bis 14 liegen kann. Wenn keine type Argument spezifiziert wird, wird Typ 1 als Standart verwendet.

Beispiele:

create matfx type=3 tex=gold

Dieses verursacht eine ziemlich realistische Goldoberfläche, in Verbindung mit einem glänzenden Effekt.

create matfx type=2 coef=1 tex=self

Dieses produziert ein bump map mit seiner eigenen Textur.

create matfx tex=flare1 tag=200

Dieses verursacht einen reflektierenden Effekt auf einem Bild.

create texture goldx

create texture goldx, examine, matfx type=4 blend=4:7 tex=a

create texture goldx, examine, matfx type=4 blend=4:9 tex=a