1
0
Fork 0

WS30: Properties for lit roads

This commit is contained in:
Stuart Buchanan 2021-08-21 17:16:28 +01:00
parent a442615c68
commit 164112a8c0
3 changed files with 22 additions and 3 deletions

View file

@ -73,6 +73,14 @@ light-coverage : The coverage of a single point of light in m^2. 0 indicates no
of an object-mask. Lights are all generated 3m above the surface, and of an object-mask. Lights are all generated 3m above the surface, and
have random colour (50% yellow, 35% white, 10% orange, 5% red) have random colour (50% yellow, 35% white, 10% orange, 5% red)
light-edge-spacing-m : Spacing of lighting in m on the edge of line features in WS30.
light-edge-height-m : Height of lighting in m above the line feature surface.
light-edge-size-cm : Size of edge lighting in cm. Default 50cm
light-edge-intensity-cd : Intensity of edge lighting in candela. Default 100.
light-edge-angle-horizontal-deg : Horizontal extent of light. Default 360.
light-edge-angle-vertical-deg : Vertical extent of light. Default 360.
light-edge-color/r ... : Light colour, with r,g,b,a properties. Default 1.0, resulting in white light
ambient : The ambient light colour for the material, specified as separate ambient : The ambient light colour for the material, specified as separate
r, g, b, a components (default: all color components 0.2, alpha 1.0). r, g, b, a components (default: all color components 0.2, alpha 1.0).

View file

@ -380,11 +380,11 @@ defines building meshes, typically based on OSM data.
Example: Example:
BUILDING_ROUGH buildings.ac -122.501090 37.514830 15.5 0.00 0.00 0.00 BUILDING_ROUGH buildings.ac -122.501090 37.514830 15.5 0.00 0.00 0.00 4000.0
Syntax: Syntax:
BUILDING_ROUGH <object-path> <lon> <lat> <elev-m> <hdg-deg> <pitch-deg> <roll-deg> BUILDING_ROUGH <object-path> <lon> <lat> <elev-m> <hdg-deg> <pitch-deg> <roll-deg> <radius-m>
Note that only bare .ac files should be referenced. The material definition for Note that only bare .ac files should be referenced. The material definition for
"OSM_Building" will be used to determine the texture and Effects. "OSM_Building" will be used to determine the texture and Effects.
@ -526,7 +526,7 @@ W ATTR A B C D lon0 lat0 lon1 lat1 lon2 lat2 lon3 lat4
Where: Where:
- W is the feature width in meters. - W is the feature width in meters.
- ATTR is an integer value used to store packed attributes (e.g. lighting, currenty unused) - ATTR is an integer value used to store packed attributes (e.g. bitwise. Bit 1 is for lit)
- A,B,C,D are float values used to store attributes (currently unused) - A,B,C,D are float values used to store attributes (currently unused)
- lonN, latN are lon/lat pairs on the center of the line feature. There must be at least two pairs - lonN, latN are lon/lat pairs on the center of the line feature. There must be at least two pairs

View file

@ -538,6 +538,17 @@
<rolling-friction>0.02</rolling-friction> <rolling-friction>0.02</rolling-friction>
<bumpiness>0.01</bumpiness> <bumpiness>0.01</bumpiness>
<load-resistance>1e10</load-resistance> <load-resistance>1e10</load-resistance>
<light-edge-spacing-m>20</light-edge-spacing-m>
<light-edge-height-m>5.0</light-edge-height-m>
<light-edge-intensity-cd>50</light-edge-intensity-cd>
<light-edge-angle-horizontal-deg>360</light-edge-angle-horizontal-deg>
<light-edge-angle-vertical-deg>360</light-edge-angle-vertical-deg>
<light-edge-color>
<r>1.0</r>
<g>0.82</g>
<b>0.7</b>
<a>1.0</a>
</light-edge-color>
</material> </material>
<material n="2010"> <material n="2010">