Material commands set how the faces and primitives after them look. A script keeps a
current material, made of the settings below, and each face takes a copy of it when its
command is read: a Color after a Quad does not change that
quad. The sample files set the whole material before their faces, in this order, which
HUMAN.RWX repeats at the start of every prototype:
Surface 0.4 0.4 0.6
Color 1.0 0.0 1.0
LightSampling Facet
GeometrySampling Solid
Texture NULL
HUMAN.RWX.Colour and surface
| Command | Arguments | Meaning |
|---|---|---|
Color | red green blue | The colour of the faces after it, each from 0 to 1. The glyph files use Color 1.0 0.0 0.0; BANANA.RWX sets 0.996094 0.996094 0 (yellow) before its faces. The viewer draws faces in this colour, lit from above and the left, and reports a value outside 0 to 1. The sample files never leave it unset where it matters; with no Color the viewer uses a mid grey, which is its own choice. |
Surface | ambient diffuse specular | Three coefficients of how the surface takes light: 0.4 0.6 0.6 in the glyphs, 0.5 0.5 0.1 for the banana, 0.1 0.6 0.3 in TRIAD.RWX. The viewer does not use them: it lights every face the same way. |
Ambient, Diffuse, Specular | a number each | Active Worlds’ separate forms of the three coefficients: its command list says Ambient is how much the polygons take ambient light, Diffuse how they take diffuse light and Specular how they take specular light (“currently not used” by Active Worlds), and Surface sets all three at once. A community keyword guide gives each as 0 to 1 and warns that a model with no lighting set renders black, so set Diffuse near the top. No sample file has them; the viewer keeps the numbers and does not draw with them. |
TextureMode, AddTextureMode, RemoveTextureMode, MaterialMode, AddMaterialMode, RemoveMaterialMode | one or more words | Listed by Active Worlds as: TextureMode and MaterialMode define the mode of the current material, the Add forms add a mode to the current set and the Remove forms take one away. Active Worlds’ own example script spells the first one TextureModes Lit; this reader takes both spellings, for both the texture and the material. The viewer keeps the current set of words (shown in the materials table) and does not draw with it. |
TextureMipmapState | a word | The mipmap state of the textures that follow (Active Worlds’ command list). The words are from memory of RenderWare: on and off. Kept and not used. |
TextureDithering, TextureGammaCorrection | a word | RenderWare commands that Active Worlds lists as unsupported: it ignores them. Their arguments are not documented in anything read for these pages. |
Opacity | a number from 0 to 1 | How solid the faces are, 1 being opaque. The viewer mixes the colour with the background in that proportion; it does not see through to what lies behind. No sample file uses it. |
Textures
Texture name names a bitmap to put on the faces after it, and
Texture NULL clears it. Every sample file that uses the command writes
Texture NULL, so there are no faces with a texture on this Mac. RenderWare’s
demonstration viewer reads a texture as a file of the same name; its readme speaks of
“a texture file (or any MS Windows 3.1 bitmap (.bmp) file)”. A second form adds a mask:
Texture wall Mask wallmask, from memory of Active Worlds, where the mask
marks the transparent part of a picture. The viewer names the textures in the
overview and the number of faces that use each, and does not draw them: a textured face
is drawn in its Color. Texture coordinates come from the UV of
the Vertex commands; see
Vertices and faces.
TextureModes, MaterialModes and
TextureAddressMode take words that are not in any sample file.
The texture-mode words are Lit (the default: light affects the texture),
Foreshorten (less warping at an angle) and Filter (blur the
texture), and they combine: Active Worlds’ tutorial writes
AddTextureMode Foreshorten Filter after the default Lit, and the
command list says only Lit is supported there. The one material-mode word
Active Worlds documents is Double, which draws both sides of a face; the
RenderWare words None and Null are from memory. Address modes
are Wrap, Mirror and Clamp (from memory of RenderWare),
and Active Worlds also reads the line as an extension, #! TextureAddressMode Clamp,
which its tutorial uses to stop a texture seaming. The viewer keeps the words and ignores them.
A Texture line may name a mask: Active Worlds’ tutorial writes
Texture tree3 mask tree3m, and a community guide adds that the bitmaps may be
.bmp, .cmp or .gif (a GIF’s black is transparent).
Sampling
| Command | Words | Meaning |
|---|---|---|
LightSampling | Facet, Vertex | Whether the lighting is worked out once for each face (flat shading) or at each vertex and blended across it (smooth shading). Both occur in the sample files; the glyphs use Vertex, the banana changes from Facet to Vertex halfway. The viewer shades every face flat. |
GeometrySampling | Pointcloud, Wireframe, Solid | Whether the faces after it are drawn as their points, their edges or filled. The sample files only have Solid. The viewer draws every face filled and has its own wireframe picture. |
Scope
MaterialBegin saves the current material and
MaterialEnd sets it back, so a part can be given a colour
without the next part having it. TRIAD.RWX opens one for the ball at the origin and one for each axis, sets
Color inside and draws the arrow and the letter in it. Only the material
is saved: the transform is not.
A ClumpBegin saves the material too, and a clump’s changes end at its
ClumpEnd; that is how this viewer does it, and the files do not
show otherwise, as HUMAN.RWX gives each part its own Color
inside its clump.
A prototype instanced with ProtoInstance is drawn with the material in
force where it was defined, changed by the material commands inside it. Active Worlds’
tutorial says so: prototypes that share materials and textures should have them set once
above the first ProtoBegin and “all prototypes afterwards will use them”,
except TextureAddressMode (the author notes not every command carries over).
HUMAN.RWX opens each prototype with a full material block, which gives the same
result. With
ProtoInstanceGeometry the commands in the prototype that set a material
are ignored, and its faces take the material in force at the instance. The text of
both is how this viewer reads the two command names and the files that use them; it
is not checked against RenderWare.
Not described
Only Color, Surface, LightSampling, GeometrySampling and Texture NULL appear in the sample files.
Known, not yet covered
- Reference (checked 2026-11-18 against Active Worlds’ own command list and tutorial, as archived): the command names, the texture-mode words, Mask, Double and the Add/Remove forms are sourced; unverified, from memory of RenderWare: the words None, Null, Wrap, Mirror, Clamp, the arguments of TextureMipmapState, TextureDithering and TextureGammaCorrection, and what Opacity does with a texture mask.
- Reference: the Active Worlds
#!extension commands (#! OpacityFix on|off,#! Prelight,#! Seamless on|off,#! RandomUVs) are listed with one-line meanings only; their arguments beyond those in the tutorial (#! prelight 1 1 1after a Vertex) are not published in anything read. The viewer reads them as commands. - Reference: the exact scope rules for clumps and prototype instances are inferred.
- Viewer: textures are not drawn (a face keeps its Color), Surface is ignored, every face is flat-shaded, filled and double-sided, and Opacity is only blended toward the background.
Unknown
- Reference: the default material and what Surface’s three numbers do exactly; the viewer uses a mid grey of its own choosing when no Color is set.