Layout Editor

Editing Track Colours & Textures

The track section colours and textures are described using a specific syntax in the track palette editor Texture field, and similarly in the text file. If no texture is specified then the default black plastic track texture is used.

Library editor

Ultimate Racer manages the following track section textures:

  • track section filling texture
  • rectangle chess texture
  • curve chess texture
  • bitmap rectangle texture
  • bitmap curve texture

There is one line per texture applied on the track section.

The textures are applied in the same order as their description order. The first texture is applied first (at the bottom level), then the second one (on top of the first texture), and so on…

Track section filling texture

Syntax :- there are two syntaxes available:

F, texture bitmap file name

F, <red>, <green>, <blue>

The track section is filled with a texture bitmap or by a set of RGB colors. Ultimate Racer allows the use of texture bitmap (bmp, jpg) available in the folder .Racer30\media\textures.

The red, green and blue values range from 0 to 255. The F filling texture has the highest priority to the other textures it's the first track section applied texture.

Examples:

F, IDB_TRACK_WOOD: fills this track with the IDB_TRACK_WOOD texture. There should be a texture file IDB_TRACK_WOOD.bmp or IDB_TRACK_WOOD.jpg available in .\media\textures folder, otherwise UR30 uses the default black plastic texture.

F, 255, 255, 255: fills this track section in white.

Rectangle chess texture

Applies a bicolor bitmap chess texture on the track. Useful to create track section with colored starting lines or colored lane separator lanes.

Syntax: c, r, color1, color2, horizontal number of cells, vertical number of cells, horizontal size of cell, vertical size of cells, left, top, right, bottom (in shape reference)

  • c: stands for “chess” texture
  • r: rectangle – mandatory
  • color1 & color2: texture bitmap file names (see texture bitmap folder above). At least one color is mandatory.
  • horizontal number of cells OR horizontal size of cells: number of horizontal cell OR size of horizontal cells in library units
  • number of vertical cells OR size of vertical cell size in library units
  • left, top, right, bottom: texture location in shape coordinates, in library units

Curve chess texture

Applies a bicolor chess texture on the track. Useful to create track section with colored starting lines or colored lane separator lanes.

Syntax: c, c, color1, color2, horizontal number of cells, vertical number of cells, horizontal size of cell, vertical size of cells, start angle, inner radius, end angle, outer radius (in shape reference)

  • c: stands for “chess” texture
  • c: curve – mandatory
  • color1 & color2: texture bitmap file names (see texture bitmap folder above). At list one color is mandatory.
  • horizontal number of cells
  • vertical number of cells
  • size of horizontal cells in library units (exclusive with number of horizontal cells)
  • size of vertical cells in library units (exclusive with number of vertical cells)
  • start: angle in degrees from where the texture starts (optional)
  • curve chess texture inner radius
  • end: angle in degrees from where the texture ends (optional)

- curve chess texture outer radius in library units

Rectangle picture texture

Applies a rectangle metafile texture on the track section. This texture is useful to apply sophisticated drawings on a track section or a border.

UR30 allows the use of following picture described in the .\media\folder

Syntax: e, rectangle, texture name, x direction, y direction, left, top, right, bottom (in shape reference)

  • e: stands for metafile texture (can be replaced either by "w" or "b" for reverse compatibility reasons)
  • metafile texture name (wmf or emf extension): stored in .\media\textures.
  • r: rectangle – mandatory

- x and y direction: 0 or 1. 1 horizontally (x) or vertically (y) inverts the mapped texture

- left, top, right, bottom: rectangle in which the mapped picture will be stretched or compressed if necessary. The rectangle coordinates are given relatively to the shape coordinates in library units

Curve picture texture

Maps a metafile texture on a curve track section. This texture is useful to apply sophisticated drawings on a track section or a border.

Syntax: e, texture name, curve, x direction, y direction, angle, radius, width

  • e: stands for metafile texture (can be replaced either by "w" or "b" for reverse compatibility reasons)
  • metafile texture name (wmf or emf extension): stored in .\media\textures
  • c: curve: the picture will be curved to fit the mapping parameters – mandatory
  • x and y direction: 0 or 1. 1 horizontally (x) or vertically (y) inverts the mapped texture
  • angle: angle to curve the picture in degrees
  • radius: inner radius of the curved picture in library units
  • width: curved picture width in library units

The picture will be curved to fit the crown defined by the specified angle, its inner radius and its width.