Traffic Shader
| Started in | 11/2013 |
|---|---|
| Description | Improved autogen support for FlightGear using OSM data |
| Contributor(s) | radi, vanosten, Soitanen, portreekid |
| Status | Under active development as of 02/2016 |
| Topic branches: | |
| $FG_SRC | https://gitlab.com/osm2city/osm2city/ |
| fgdata | https://gitlab.com/osm2city/osm2city-data/ |
| OpenStreetMap use in FlightGear |
|---|
The traffic shader [1] [2] generates dynamic traffic on roads. You can enable it in the rendering options.
Videos
A few sample videos of the Boston area.
Testing the Shader
it comes with the normal install. You need to install the OSM structures to which it is applied.[4]
set F10->View->Rendering Options->Detailed Roads and Railways to enabled and use terrasync or another terrain updater to ensure that you have the OSM objects downloaded... then you need to be in an area that has the OSM roads applied... KBOS is one of those areas... go there in the UFO; parking space Gate_C42... use the [HOME] key to hover up to 1500 or so and look at the roads around the airport... use the up arrow to tip the UFO's nose down to about 45 degrees and look at the vehicles on the roads... at dusk and during the dark, they even have headlights...[5]
To see the traffic shader
- in Roads/ there's roads.eff in each subfolder (for the Bergen demo, I had just one of them... in general you need to change this in your script)
- this contains a line like <inherits-from>Effects/model-combined-deferred</inherits-from> -> change this to <inherits-from>Effects/road</inherits-from> (this itself inherits from model-combined-deferred and will not change the current behavior for classic or Rembrandt)
- switch ALS on, you may have to switch the model shader quality a bit higher than minimal To use the lightmap switch, just delete lightmap-switch.xml which contains a Nasal snippet and make the effects use /environment/lightmap-factor in the parameter section instead the property that the Nasal script wrote, it does the same thing and is always present. [6]
Related content
References
References
|