Merge branch 'master' of git://gitorious.org/fg/fgdata
This commit is contained in:
commit
c2f1ac2eee
77 changed files with 4581 additions and 7 deletions
|
@ -270,7 +270,7 @@ var lowpass = {
|
|||
me.value = v;
|
||||
},
|
||||
_filter_: func(v) {
|
||||
var dt = getprop("/sim/time/delta-sec");
|
||||
var dt = getprop("/sim/time/delta-sec")*getprop("/sim/speed-up");
|
||||
var c = dt / (me.coeff + dt);
|
||||
me.value = v * c + me.value * (1 - c);
|
||||
},
|
||||
|
@ -788,12 +788,31 @@ var autotrim = {
|
|||
# var tyresmoke_0 = aircraft.tyresmoke.new(0);
|
||||
# tyresmoke_0.update();
|
||||
#
|
||||
# PARAMETERS:
|
||||
#
|
||||
# number: index of gear to be animated, i.e. "2" for /gear/gear[2]/...
|
||||
#
|
||||
# auto: 1 when tyresmoke should start on update loop. 0 when you're going
|
||||
# to call the update method from one of your own loops.
|
||||
#
|
||||
# diff_norm: value adjusting the necessary percental change of roll-speed
|
||||
# to trigger tyre smoke. Default value is 0.05. More realistic results can
|
||||
# be achieved with significantly higher values (i.e. use 0.8).
|
||||
#
|
||||
# check_vspeed: 1 when tyre smoke should only be triggered when vspeed is negative
|
||||
# (usually doesn't work for all gear, since vspeed=0.0 after the first gear touches
|
||||
# ground). Use 0 to make tyre smoke independent of vspeed.
|
||||
# Note: in reality, tyre smoke doesn't depend on vspeed, but only on acceleration
|
||||
# and friction.
|
||||
#
|
||||
|
||||
var tyresmoke = {
|
||||
new: func(number, auto = 0) {
|
||||
new: func(number, auto = 0, diff_norm = 0.05, check_vspeed=1) {
|
||||
var m = { parents: [tyresmoke] };
|
||||
me.vertical_speed = props.globals.initNode("velocities/vertical-speed-fps");
|
||||
me.speed = props.globals.initNode("velocities/groundspeed-kt");
|
||||
me.rain = props.globals.initNode("environment/metar/rain-norm");
|
||||
m.vertical_speed = (!check_vspeed) ? nil : props.globals.initNode("velocities/vertical-speed-fps");
|
||||
m.diff_norm = diff_norm;
|
||||
m.speed = props.globals.initNode("velocities/groundspeed-kt");
|
||||
m.rain = props.globals.initNode("environment/metar/rain-norm");
|
||||
|
||||
var gear = props.globals.getNode("gear/gear[" ~ number ~ "]/");
|
||||
m.wow = gear.initNode("wow");
|
||||
|
@ -827,7 +846,7 @@ var tyresmoke = {
|
|||
},
|
||||
update: func {
|
||||
var rollspeed = me.get_rollspeed();
|
||||
var vert_speed = me.vertical_speed.getValue();
|
||||
var vert_speed = (me.vertical_speed) ? me.vertical_speed.getValue() : -999;
|
||||
var groundspeed = me.speed.getValue();
|
||||
var friction_factor = me.friction_factor.getValue();
|
||||
var wow = me.wow.getValue();
|
||||
|
@ -837,7 +856,8 @@ var tyresmoke = {
|
|||
var diff = math.abs(rollspeed - filtered_rollspeed);
|
||||
var diff_norm = diff > 0 ? diff / rollspeed : 0;
|
||||
|
||||
if (wow and vert_speed < -1.2 and diff_norm > 0.05
|
||||
if (wow and vert_speed < -1.2
|
||||
and diff_norm > me.diff_norm
|
||||
and friction_factor > 0.7 and groundspeed > 50
|
||||
and rain < 0.20) {
|
||||
me.tyresmoke.setValue(1);
|
||||
|
|
21
README-textures-ng
Normal file
21
README-textures-ng
Normal file
|
@ -0,0 +1,21 @@
|
|||
* Several .dds files to improve ground appearance
|
||||
|
||||
* A new experimental transition effect.
|
||||
You will find examples of its usage in the effects inheriting from it.
|
||||
It's not recommended to use the effect directly, but create a new one that inherits from it and defines the number of transitions, and the textures you want to transition to.
|
||||
|
||||
* You will find more info in the transition.eff file itself.
|
||||
|
||||
|
||||
Installation notes:
|
||||
* There is an alternative materials file named materials-dds.xml included. You can activate this file by using
|
||||
|
||||
--prop:/sim/rendering/materials-file=materials-dds.xml
|
||||
|
||||
You can replace materials-dds.xml with your own version if you prefer:
|
||||
|
||||
--prop:/sim/rendering/materials-file=your-filename.xml
|
||||
|
||||
|
||||
|
||||
|
BIN
Textures/Terrain/airport.dds
Normal file
BIN
Textures/Terrain/airport.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/asphalt.dds
Normal file
BIN
Textures/Terrain/asphalt.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/builtup.dds
Normal file
BIN
Textures/Terrain/builtup.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/city1.dds
Normal file
BIN
Textures/Terrain/city1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/city2.dds
Normal file
BIN
Textures/Terrain/city2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/city3.dds
Normal file
BIN
Textures/Terrain/city3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/crop-colors.dds
Normal file
BIN
Textures/Terrain/crop-colors.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/crop.dds
Normal file
BIN
Textures/Terrain/crop.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/cropgrass-colors.dds
Normal file
BIN
Textures/Terrain/cropgrass-colors.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/cropgrass.dds
Normal file
BIN
Textures/Terrain/cropgrass.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/cropgrass1.dds
Normal file
BIN
Textures/Terrain/cropgrass1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/cropgrass2.dds
Normal file
BIN
Textures/Terrain/cropgrass2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/cropgrass3.dds
Normal file
BIN
Textures/Terrain/cropgrass3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/cropwood.dds
Normal file
BIN
Textures/Terrain/cropwood.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/dec_evergreen.dds
Normal file
BIN
Textures/Terrain/dec_evergreen.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous.dds
Normal file
BIN
Textures/Terrain/deciduous.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous1.dds
Normal file
BIN
Textures/Terrain/deciduous1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous1b.dds
Normal file
BIN
Textures/Terrain/deciduous1b.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous2.dds
Normal file
BIN
Textures/Terrain/deciduous2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous2b.dds
Normal file
BIN
Textures/Terrain/deciduous2b.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous3.dds
Normal file
BIN
Textures/Terrain/deciduous3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous3b.dds
Normal file
BIN
Textures/Terrain/deciduous3b.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/deciduous4.dds
Normal file
BIN
Textures/Terrain/deciduous4.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/desert.dds
Normal file
BIN
Textures/Terrain/desert.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/desert1.dds
Normal file
BIN
Textures/Terrain/desert1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/drycrop.dds
Normal file
BIN
Textures/Terrain/drycrop.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/drycrop1.dds
Normal file
BIN
Textures/Terrain/drycrop1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/drycrop2.dds
Normal file
BIN
Textures/Terrain/drycrop2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/drycrop3.dds
Normal file
BIN
Textures/Terrain/drycrop3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/drycrop4.dds
Normal file
BIN
Textures/Terrain/drycrop4.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/evergreen.dds
Normal file
BIN
Textures/Terrain/evergreen.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/forest-colors.dds
Normal file
BIN
Textures/Terrain/forest-colors.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/forest.dds
Normal file
BIN
Textures/Terrain/forest.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/forest1a.dds
Normal file
BIN
Textures/Terrain/forest1a.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/forest1b.dds
Normal file
BIN
Textures/Terrain/forest1b.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/forest1c.dds
Normal file
BIN
Textures/Terrain/forest1c.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/glacier.dds
Normal file
BIN
Textures/Terrain/glacier.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/glacier1.dds
Normal file
BIN
Textures/Terrain/glacier1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/glacier2.dds
Normal file
BIN
Textures/Terrain/glacier2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/glacier3.dds
Normal file
BIN
Textures/Terrain/glacier3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/grass.dds
Normal file
BIN
Textures/Terrain/grass.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/grassy.dds
Normal file
BIN
Textures/Terrain/grassy.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/gravel.dds
Normal file
BIN
Textures/Terrain/gravel.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/herbtundra.dds
Normal file
BIN
Textures/Terrain/herbtundra.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/herbtundra2.dds
Normal file
BIN
Textures/Terrain/herbtundra2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/herbtundra3.dds
Normal file
BIN
Textures/Terrain/herbtundra3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/irrcrop.dds
Normal file
BIN
Textures/Terrain/irrcrop.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/irrcrop1.dds
Normal file
BIN
Textures/Terrain/irrcrop1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/irrcrop2.dds
Normal file
BIN
Textures/Terrain/irrcrop2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/irrcrop3.dds
Normal file
BIN
Textures/Terrain/irrcrop3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/marsh1.dds
Normal file
BIN
Textures/Terrain/marsh1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/marsh2.dds
Normal file
BIN
Textures/Terrain/marsh2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/marsh3.dds
Normal file
BIN
Textures/Terrain/marsh3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/marsh4.dds
Normal file
BIN
Textures/Terrain/marsh4.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedcrop.dds
Normal file
BIN
Textures/Terrain/mixedcrop.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedcrop1.dds
Normal file
BIN
Textures/Terrain/mixedcrop1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedcrop2.dds
Normal file
BIN
Textures/Terrain/mixedcrop2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedcrop3.dds
Normal file
BIN
Textures/Terrain/mixedcrop3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedcrop3b.dds
Normal file
BIN
Textures/Terrain/mixedcrop3b.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedcrop4.dds
Normal file
BIN
Textures/Terrain/mixedcrop4.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedforest.dds
Normal file
BIN
Textures/Terrain/mixedforest.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedforest2.dds
Normal file
BIN
Textures/Terrain/mixedforest2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedforest2b.dds
Normal file
BIN
Textures/Terrain/mixedforest2b.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedforest3.dds
Normal file
BIN
Textures/Terrain/mixedforest3.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedforest3b.dds
Normal file
BIN
Textures/Terrain/mixedforest3b.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/mixedforestb.dds
Normal file
BIN
Textures/Terrain/mixedforestb.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/packice.dds
Normal file
BIN
Textures/Terrain/packice.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/packice1.dds
Normal file
BIN
Textures/Terrain/packice1.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/packice2.dds
Normal file
BIN
Textures/Terrain/packice2.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/pond.dds
Normal file
BIN
Textures/Terrain/pond.dds
Normal file
Binary file not shown.
BIN
Textures/Terrain/reservoir.dds
Normal file
BIN
Textures/Terrain/reservoir.dds
Normal file
Binary file not shown.
|
@ -225,6 +225,7 @@
|
|||
<enable-skyblend-desc>Enable sky blending</enable-skyblend-desc>
|
||||
<disable-textures-desc>Disable textures</disable-textures-desc>
|
||||
<enable-textures-desc>Enable textures</enable-textures-desc>
|
||||
<materials-file-desc>Specify the materials file used to render the scenery (default: materials.xml)</materials-file-desc>
|
||||
<texture-filtering-desc>Anisotropic Texture Filtering: values should be 1 (default),2,4,8 or 16</texture-filtering-desc>
|
||||
<disable-wireframe-desc>Disable wireframe drawing mode</disable-wireframe-desc>
|
||||
<enable-wireframe-desc>Enable wireframe drawing mode</enable-wireframe-desc>
|
||||
|
|
4525
materials-dds.xml
Normal file
4525
materials-dds.xml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -452,6 +452,12 @@
|
|||
<description>strings/enable-textures-desc</description>
|
||||
</option>
|
||||
|
||||
<option>
|
||||
<name>materials-file</name>
|
||||
<arg>file</arg>
|
||||
<description>strings/materials-file-desc</description>
|
||||
</option>
|
||||
|
||||
<option>
|
||||
<name>texture-filtering</name>
|
||||
<arg>value</arg>
|
||||
|
|
|
@ -714,6 +714,7 @@ Started September 2000 by David Megginson, david@megginson.com
|
|||
<ai>
|
||||
<enabled type="bool">true</enabled>
|
||||
<scenario>nimitz_demo</scenario>
|
||||
<groundnet-cache type="bool">true</groundnet-cache>
|
||||
<!-- <scenario>balloon_demo</scenario> -->
|
||||
<!-- <scenario>aircraft_demo</scenario> -->
|
||||
<!-- <scenario>refueling_demo</scenario> -->
|
||||
|
|
Loading…
Add table
Reference in a new issue