1
0
Fork 0
Commit graph

244 commits

Author SHA1 Message Date
mfranz
601f1c14c4 Stuart BUCHANAN: fix METAR cloud interpolation
"I've managed to fix this by differentiating rebuilding the 3D layers
(e.g. due to METAR updates) from rebuilding the entire environment (due to a
change in scenario)."

/me: property-browser.xml: drop a redundant line
2008-12-21 15:54:18 +00:00
mfranz
a75f1de1dd - n.getAttribute("children") instead of size(n.getChildren()), which is
way faster to determine whether a node has children
- cosmetics
2008-12-21 08:52:49 +00:00
fredb
b41afb94c6 Stuart Buchanan :
Attached is yet another 3D clouds patch, to fix the following:
1) The 3D clouds were not modified by the cloud coverage, due to some problems with osg::Switch
2) METAR changes to cloud coverage were not obeyed.
3) Making changes via the Cloud dialog had no effect unless 3D clouds were toggled.
4) Cloud cover was too sparse.
5) 3D Stratus clouds caused performance issues on some hardware (fixed by removing 3D stratus from cloudlayers.xml - it will now be a 2D layer).
2008-12-19 07:42:29 +00:00
fredb
a9a4fc67e0 Csaba/Jester :
Reacting to a feature request,  attached patch adds support for
parkpos selection in the "location on ground" dialog, and clears any
parkpos preset in the "airports" dialog.
2008-12-12 20:09:55 +00:00
fredb
828c2069aa Stuart :
- Removes the cloud type re-use code - I think they aren't worth the graphical artefacts that they cause in light of Tim's improvements
- Changes the transparency of the clouds. Previously, the clouds were transparent at 0m distance, opaque at 200m, then gradually more transparent to the fog limits. This meant they were generally quite transparent. Now, they are opaque from 200m to 15km, then become transparent at 20km. A side effect of this is that the current textures could probably benefit from being made slightly transparent to improve the blending of the sprites against each other.
2008-12-11 08:29:36 +00:00
fredb
31977abb98 Stuart Buchanan :
This provides the following enhancements & bug fixes
- Fix the chequer-board bug.
- Add proper cloud coverage function - so scattered clouds are now truly scattered.
- Add real-time control for visibility range.
- Use a limited set of clouds rather than generating a completely new Geode for each cloud. This saves sorting and display time.
- Add controls to Rendering dialog to allow fine-tuning of the number of sprites, cloud visibility and the number of different types of cloud.
- Add some variance to the sort back-off to avoid all clouds being sorted at the same time.
- Pack attributes into vectors for performance
- Re-order the cloud type determination code so that if a cloud layer could either be stratus or cumulus, cumulus is used.
- Lowered the cloud level in the standard cloud configuration slightly so a cumulus layer is generated rather than stratus.

These last two mean that you should see some 3D cumuli if disabling real weather fetch.

My thanks to Yon Uriarte for his help with performance work.
2008-12-04 20:57:55 +00:00
mfranz
f104544ef8 only enable precipitation if it's enabled in the gui
(/sim/rendering/precipitation-gui-enabled) *and* if the aircraft wants it
(/sim/rendering/precipitation-aircraft-enabled). Some aircraft model rain
on the windshield and want to turn rain off for interior views.
2008-11-23 10:37:19 +00:00
mfranz
b216aa38ca another initNode() case to convert (thanks Stewart for pointing it out) 2008-11-22 19:53:37 +00:00
stuart
2c2a67a021 Remove redundant 3D cloud controls. 2008-11-06 19:11:31 +00:00
mfranz
43394835b0 add explanation for "particles" 2008-10-20 20:24:50 +00:00
mfranz
c5fe446f58 overlay-select.xml, gui.nas: fix overlay-dialog close(); add relpath() func
aircraft.nas: remove redundant data.add()
2008-10-19 12:34:09 +00:00
mfranz
4393681be9 add flag/checkbox to enable/disable particles 2008-10-17 21:21:22 +00:00
vmmeazza
dd182cab6c Adjust format 2008-10-16 16:51:32 +00:00
vmmeazza
6c7d862a31 Bugfix 2008-10-16 16:30:41 +00:00
mfranz
943c939553 this is now done by gui.OverlaySelector using overlay-select.xml 2008-10-16 16:14:03 +00:00
mfranz
4b9f8ecb1f no longer needed; gui.OverlaySelector uses generic overlay-select.xml now 2008-10-15 18:18:14 +00:00
vmmeazza
33161d2ec0 Add switchable flightdeck lighting 2008-10-15 18:08:16 +00:00
mfranz
c350a7b6a8 s/fixpath/normpath/ (as in python) 2008-10-15 16:35:11 +00:00
mfranz
4341781968 add overlay selector dialog class (similar to the livery selector) 2008-10-14 18:41:19 +00:00
mfranz
106f6bfe77 remove runway complementation (airportinfo() returns both sides now) 2008-09-23 20:12:48 +00:00
mfranz
b360c2ad62 use <enabled>false</enabled> flag for widgets that shouldn't be drawn
instead of <hide>true</hide>. This is consistent with other places
in fgfs, like menu entries, hud elements, subsystem switches, etc.
2008-08-05 05:28:27 +00:00
mfranz
2040b96b4f s/show_widgets/enable_widgets/ (the function doesn't show anything) 2008-08-03 15:37:43 +00:00
mfranz
c404626aa8 enable hiding of widgets again, this time in a saner way :-) 2008-08-03 13:43:30 +00:00
mfranz
f76b748786 remove "devel-widgets" nasal block 2008-08-03 12:33:56 +00:00
mfranz
8e27a5d88d "var" & cosmetics 2008-07-30 21:56:18 +00:00
mfranz
0bbdaab69c add "var" keywords and other cosmetics 2008-07-30 21:54:42 +00:00
mfranz
ca13166765 fix checkbox for aircraft specific views (for some mysterious reason this
has suddenly stopped to work ... spooky!)
2008-07-30 21:54:01 +00:00
stuart
9eb46a5c67 Replace redout dialog with cockpit view dialog. Missing commit spotted by Ron Jensen. Revision 1.80 of data/gui/menubar.xml refers. 2008-07-27 20:57:38 +00:00
mfranz
abdc416f32 - remove "load flight"/"save flight" dialogs, and
- use a file selector instead
- file-select.xml: handle non-existing files correctly
2008-07-11 20:57:52 +00:00
mfranz
be7c7b0ad7 display aileron/elevator/rudder/throttle axis values 2008-06-15 22:12:47 +00:00
mfranz
219f8d9a3a - make dialog non-modal (doesn't buy us much and can cause annoying lockups)
- fix indentation/remove trailing spaces
2008-06-12 23:04:42 +00:00
mfranz
6a577072da - write last clicked entry to /sim/gui/dialogs/property-browser/selected
- darken clone button
- cleanup & cosmetics
2008-05-14 10:19:17 +00:00
stuart
b6b4b5fe77 Add additional runway selection so the runway in use doesn't change as you roll past mid-point. Also fix possible bug for north-south runways. 2008-05-03 19:46:47 +00:00
mfranz
cd31d19946 add unit suffixes -nm and -deg to /sim/presets/offset-{distance,azimuth} 2008-05-01 21:15:40 +00:00
mfranz
1544af3ab9 return negative key numbers to report key event as consumed 2008-04-26 13:27:27 +00:00
stuart
01d21c928a Add generic redout. 2008-04-23 20:44:57 +00:00
mfranz
a2982254ab add 'random vegetation' checkbox. (Note that you won't see the effect
immediately!)
2008-04-20 08:46:36 +00:00
timoore
21331892cf precipitation dialog 2008-03-04 08:46:52 +00:00
stuart
dc4ad0dc80 Update to generic blackout, incorporating feedback from Melchior FRANZ:
- Update redout level every frame
 - Replace reading of properties every iteration with listeners
 - move -onset and -complete properties into a parameters subtree
2008-02-16 20:23:27 +00:00
stuart
dd923792ec Add generic blackout/redout for all aircraft, along with a gui.
Based on previous work by vivian and myself.
2008-02-16 08:26:59 +00:00
vmmeazza
921c8a5b5e Experimental formation menu 2008-02-11 18:34:19 +00:00
mfranz
ea3148949a use the destructor (which I had totally forgotten) 2008-01-23 21:26:30 +00:00
mfranz
7948776d89 insert WP list file on selected position, or append otherwise 2008-01-22 22:25:28 +00:00
mfranz
e22b74016e what about using string.trim() correctly?! 2008-01-22 20:03:00 +00:00
mfranz
1fd9c1d8f2 delete the file dialog, not the route manager dialog 2008-01-22 20:01:08 +00:00
mfranz
31c7d5d748 add button to load waypoint file (idea by Philip COBBIN) 2008-01-22 19:45:57 +00:00
mfranz
961e91520d - allow to hide views from this dialog by setting <hide type="bool">true</hide>
- deal better with (broken!) nameless views
2007-12-13 13:57:23 +00:00
mfranz
8bf50232da replace /sim/devel by /sim/gui/devel-widgets to enable/disable devel widgets 2007-12-11 15:50:58 +00:00
martin
33277e0730 Stuart Buchanan:
1) The chat menu will now select the runway closest to the aircraft
   when the aircraft is on the ground, or very low (< 100ft). This
   handles the case where the user has selected a runway explicitly,
   e.g. 01R for KSFO take-offs for noise abatement. My thanks for
   AnMaster for pointing this out on IRC. Note that above 100 ft, the
   wind-appropriate runway will still be used.
2) Change to keyboard description for the - key, as pointed out by
   Melchior.
2007-12-11 15:20:00 +00:00
vmmeazza
4ee3367452 Stuart Buchanan:
Add chat menu
2007-12-08 19:01:03 +00:00