1
0
Fork 0
Commit graph

10269 commits

Author SHA1 Message Date
James Turner
fe7c87b21a Nasal glue for building widgets from XML compat 2022-06-30 12:41:10 +02:00
Josh Davidson
918b5fd72f Canvas: Add an option for Canvas dialogs to not take focus from the simulator 2022-06-30 11:33:40 +02:00
Roman Ludwicki
cb5ecad1ec i18n: update Polish translation 2022-06-09 21:03:30 +02:00
Stuart Buchanan
dc167d0656 WS30: Improved coastlines
Modify the ws30 shader to build a coastline using
a high resolution overlay texture mixed with the
landclass texture.
2022-05-28 20:44:25 +01:00
Erik Hofman
141aad7901 Merge branch 'next' of ssh://git.code.sf.net/p/flightgear/fgdata into next 2022-05-15 10:41:47 +02:00
Erik Hofman
b169d59c01 Fix too flat shadowing by not completely removing diffuse light but by toning it down instead. There's almost always reflective light bouncing around. 2022-05-15 10:41:37 +02:00
Florent Rougon
fcbbe4b3ab i18n: update Turkish translation for 'next'
Translation provided by Serkan ÖNDER. The previous commit had the
translations for 2020.3, my mistake.
2022-05-03 14:14:51 +02:00
Serkan ÖNDER
d8e7e55580 i18n: add Turkish translation 2022-05-02 00:18:49 +02:00
Roman Ludwicki
fcadca63a3 Fix range slider for Apply to close mp in Lag Settings 2022-04-24 00:12:03 +02:00
Roman Ludwicki
efe0b52674 Fix autopilot multikey commands
Replace `AoA Hold` to `FPA Hold`
2022-04-22 23:04:21 +02:00
Julian Smith
c55c17dd64 Nasal/multiplayer.nas: always enable multiplayer chat when replaying.
This is an additional fix for bug 2731, ensuring that replay includes chat
messages even if we are not connected to an MP server.
2022-04-22 20:38:00 +01:00
Julian Smith
e0070501e6 Nasal/multiplayer.nas: always enable multiplayer menu items when replaying.
This fixes bug 2731, where MP menu items were greyed out if we are not
connected to MP server, even if we are replaying a recording with MP aircraft.
2022-04-22 00:27:54 +01:00
Stuart Buchanan
e4f578a842 Control: UFO Autopilot from Josh Davidson 2022-04-09 17:26:31 +01:00
Stuart Buchanan
7ee03dd9da WS30: Clean up unused Uniforms 2022-04-09 17:17:15 +01:00
Stuart Buchanan
fc8342887a WS30: Coastline beaches and cliffs
Landclass information is typically not high enough resolution
to render small beaches and coastline features.

This commit uses the steepness of the elevation mesh
to procedurally generate:
a) sea-cliffs (poorly - just a texture at present)
b) beaches, which mix into translucent shallow water
c) breaking waves (poorly - uses the wind direction rather than the
slope normal)
2022-04-09 16:26:00 +01:00
James Turner
e945dafca3 Props: add defaultValue to getInt|Double Value
Simplify handling where the property value might be nil.
2022-04-06 07:49:39 +01:00
Richard Harrison
a395423f27 Nsasl: Added Exec Scheduler
see also https://wiki.flightgear.org/Nasal_Optimisation#Emesary_real_time_executive

Using a scheduler to manage the invocation of Nasal modules provides a more predictable and efficient way to replace update loops and also optimises property tree access to one access per property per frame by using a hash that contains the property values.

There is a default global object created (emexec.ExecScheduler) that should be used in most circumstances.

Each Nasal object simply has to have an update(notification) method. This will be called on a schedule and the notification will contain any requested property values.

The exec will also adapt the rate to the frame rate; with a maximum of 50hz, but this will drop to as low as 4hz based on the frame rate to optimise workload.

The modules will be called in the order in which they were added; so it is possible to have modules in the right sequence (i.e. an earlier module calculates values that are used by a later module)

A simple example is below. The VSD_device has the update method
------

# list of prooperties to include in the notification hash
var properties_to_monitor = {
                                OrientationHeadingDeg  : "orientation/heading-deg",
                                OrientationPitchDeg    : "orientation/pitch-deg",
                                OrientationRollDeg     : "orientation/roll-deg",
                                GroundspeedKts         : "velocities/groundspeed-kt",
                                radar2_range           : "instrumentation/radar/radar2-range",
                                target_display         : "sim/model/f15/instrumentation/radar-awg-9/hud/target-display",
                                vc_kts                 : "instrumentation/airspeed-indicator/true-speed-kt",
                            };
# create Canvas based device (that has an update method)
VSD = VSD_Device.new(designation, textureImage, notification.Ident, root_node);

# register with the exec;
# - ident
# - proprties to include in notification hash
# - object (with an .update(notification) method
# - rate (4 = 1/4)
emexec.ExecModule.register("F15-VSD", properties_to_monitor, VSD, 4);
2022-04-04 17:23:12 +02:00
Richard Harrison
304836f41a Nasal: optimises properties in lp filter
Use geNode instead of getprop
2022-04-03 18:30:17 +02:00
Fahim Imaduddin Dalvi
f3b455b699 Bugfix: Terrain quality taken into account in model shaders.
Objects like OSM buildings using the `model-combined` effect ignored
the Terrain quality. Rayleigh Fog is computed for the terrain only
at "Ultra" level, but was computed for models at all quality levels,
which led to a visual disparity. The shader now takes into account
the terrain quality before computing rayleigh fog for objects.
The `road` effect also had the same issue and is fixed now.
2022-04-02 21:20:20 +03:00
Josh Davidson
6fd8a92b2f Control: Fix bug with invalid FDM 2022-04-02 14:01:28 +01:00
Josh Davidson
d07b892737 Control: Quick cleanup of generic AP V/S filtering 2022-04-02 14:01:21 +01:00
Josh Davidson
25c46a69bc Control: Add reworked Generic Autopilot
Rework of the generic autopilot

https://sourceforge.net/p/flightgear/fgdata/merge-requests/284/

Control: Improve FPA engagement smoothness

Control: Generic autopilot logical improvement
2022-03-31 16:31:32 +01:00
Yves Tolosa-Joas
7cbc34b355 Added Air Mauritius Livery for A350 AI model 2022-03-21 13:59:40 +00:00
Michael Danilov
d7658f0603 Fix f591120032 legacy multiplayer view selector: saving, stop from creating empty prop of the wrong type and always showing as result 2022-03-19 23:52:57 +01:00
Richard Harrison
2fe23785d5 Multiplayer pilot list fixes
- made it more robust so that bad data doesn't stop it from working.
- optimised to store the prop nodes that we use in the list
2022-03-17 19:27:13 +01:00
Richard Harrison
ebce3e6f27 Remove threaded Nasal garbage collection refs #2674 Nasal corruption:
Removed properties from defaults.
2022-03-13 21:36:46 +01:00
Richard Harrison
f44e1066b4 Moved main title to code. 2022-03-10 20:25:26 +01:00
Richard Harrison
3ab0324e37 Added splashscreen definitions 2022-03-10 15:05:18 +01:00
James Turner
54948c502c Location in air: Guard against missing carriers.
Since we don’t force node creation, tolerate the node being nil in
the dialog Nasal helpers
2022-03-06 18:53:41 +00:00
Yves Tolosa-Joas
55641c3727 Corrected Erroneous ICAO Airport Codes in existing JetBlue and Republic Airways trafic files 2022-03-06 18:52:09 +00:00
Yves Tolosa-Joas
dd9833c1e3 Updated AI Traffic for Air Mauritius 2022-03-06 18:52:08 +00:00
Yves Tolosa-Joas
b5e30df5fd Remapped Existing Corsair Traffic to new A330 NEO AI Model 2022-03-06 18:52:08 +00:00
James Turner
2fb18ceed6 ProperyElement: remove dependency on aircraft.nas
Make a local copy of the makeNode helper, so Canvas doesn't depend on
aircraft.nas
2022-03-06 10:59:06 +00:00
Chris Ringeval
650ab4489e Ack to ESA for providing Gaia satellite data used in making the Milky Way texture 2022-03-03 19:09:36 +00:00
Chris Ringeval
6f83fe0c34 Allows ALS filters for space shaders 2022-03-03 19:09:22 +00:00
Chris Ringeval
fe6c709214 Fix ALS gamma sliders for IR and night vision 2022-03-03 19:08:59 +00:00
Richard Harrison
ac21791b1e F-15 fallback - remove incorrect texture
Remove reference to a texture file on my disk that isn't needed.
2022-03-02 14:22:51 +01:00
Richard Harrison
8419dec54a Fix Tyre Smoke/Spray in air.
Previously it was possible that the smoke/spray would continue if the aircraft went weight off wheels whilst smoke was active.
2022-03-02 14:16:19 +01:00
Richard Harrison
09adb59959 Controls: Added trim to position for rudder and aileron 2022-03-02 14:16:18 +01:00
Yves Tolosa-Joas
1d8246f23c Remapped existing A330 NEO traffic files to new AI model 2022-03-01 18:43:32 +01:00
Yves Tolosa-Joas
64ffb8f075 Added A330 NEO AI Aircraf 2022-03-01 18:43:32 +01:00
Erik Hofman
6c61344f66 Add ctrl+F3 (make cubemap) and alt+F3 (make panorama map) 2022-02-28 09:52:34 +01:00
Erik Hofman
df2d39b905 Make sure that the viewer distance (z-offset-m) doesn´t affect the lights size 2022-02-19 23:29:01 +01:00
Erik Hofman
18ffa15107 Warn about untextured objects 2022-02-19 15:25:36 +01:00
Erik Hofman
6f53b6b2ab Support repeating normalmap-textures, so don't clamp 2022-02-17 15:36:54 +01:00
Erik Hofman
fcc83c65c3 Fix a mistake: default to civilian liveries to activate the glossy effect 2022-02-16 13:22:00 +01:00
Erik Hofman
9de823f452 Mention the effect of the shininess factory on glossyness 2022-02-16 11:59:52 +01:00
Erik Hofman
706afafb60 Add a more comprehensive standard fuselage reflection configuration
- use ALS shaders
- Add parameters to enable or disable the effect and influence the
  shininess and fresnel factor
2022-02-16 11:24:48 +01:00
Delta Echo
5c6ab27c98 Aircraft/Instruments-3d: Add a case for the AR-6201 COMM. This can be used by aircraft developers when e.g. the panel cover moves away with the canopy. 2022-02-13 18:24:52 +01:00
Erik Hofman
2184b6f284 New Cubemap images based on the curren state of affairs, not the ones from 2012 2022-02-11 15:51:09 +01:00