The Marathon Markup Language - OpenGL-Rendering Element: <opengl>

This kind of element is for modifying the OpenGL rendering. Currently, only modifications of texture rendering are implemented, with opacity control and texture substitution. This element has these kinds of child elements, <txtr_clear>, <texture>, and <fog>.

The first one, <txtr_clear>, clears the landscape options, setting them back to their defaults; if it has an attribute of "coll", it will clear the sequences for the collection specified in that attribute's value; if not, it will clear all the sequences. However, this command can be followed by commands to set up texture options, which will then be executed as if no "txtr_clear" command had been issued.

The second one, <texture>, specifies the texture options themselves. It takes these attributes:

Note: all resulting values will be pegged to the range 0 to 1. Here are the various opacity types:
  1. Crisp edges. The opacity threshold is 0.5.
  2. Fuzzy edges.
  3. Fuzzy edges with opacity = average of color channels.
  4. Fuzzy edges with opacity = maximum of color channels.
The opacities of all but the first will be scaled and shifted with opac_scale and opac_shift. The first one of these is good for objects with well-defined edges; the others are good for clouds, flames, energy-weapon bolts, and so forth, which will not have sharp boundaries. The average and maximum modes were included as a way of producing variable opacity without adding any new files; this hack was inspired by the semitransparency handling in the Tomb Raider series. The idea here is that the brighter regions are likely to be the more opaque ones in these cases. I've put both of them in because they behave somewhat differently; max has the same strength for saturated colors as for grays, while mean has less strength for saturated colors than for grays.

The third one, <fog>, has these attributes:

and a color subelement, which indicates the fog color (default: gray [red = green = blue = 0.5]).

Home