Texture syntax
The Texture edit box is used to describe how textures
are applied on a track:
UR30 manages following track section textures:
-
track section filling texture
There is one line per texture applied on the track
section.
The textures are applied in the same order than their
description order. The first texture is applied first, then the second one, and
so on…
● Track section
filling texture
Syntax:
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. UR30 allows the use of texture
bitmap (bmp, jpg) available in folder .\media\textures. The textures folder:
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.
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 list 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
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
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
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.