1
0
Fork 0
Commit graph

10460 commits

Author SHA1 Message Date
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
Erik Hofman
1012c49143 Add a copyright header and
make the heading relative to make it usefull for cockput cubemaps
2022-02-10 15:00:15 +01:00
Erik Hofman
216f3fbf0c Add a Nasal module to create a cubemap or panorama view
Inspiration taken from:
https://wiki.flightgear.org/Howto:Make_full_spherical_panorama
2022-02-09 15:49:23 +01:00
Erik Hofman
20d6299a6b Fix commit e505c79618
model-combined-transparent was replaced by calling model-transparent causing the ALS
externel canopy effects to get lost. Call model-combined instead which restores these
effects.
2022-02-07 14:06:03 +01:00
Stuart Buchanan
8bba60772f WS30: Initial shoreline shader
Using steepness to create a shoreline
2022-02-05 16:23:49 +00:00
Stuart Buchanan
98fda02e65 WS30: Combined land and water shader
Previously the water shader was separate and executed on a
different mesh.

This adds the water shader as a separate fragment function
(ws30-water.frag) and uses a material parameter passed in
as a Uniform to use it in preference to the usual texel
lookup.

Performance testing found a slight performance improvement
from having a single mesh, but a slight performance impact
from the extra fragment shader complexity.
2022-02-05 15:24:02 +00:00
Roman Ludwicki
d3b667c853 Corrections for Polish translations 2022-02-03 21:52:20 +01:00
Florent Rougon
9f25004cbc i18n: fix an ugly typo in the French translation 2022-02-03 15:52:00 +01:00
Stuart Buchanan
e6d6813ba8 WS30: Add property to control separate water mesh 2022-02-01 17:10:08 +00:00
Stuart Buchanan
a06298055a MR269 - Added the Milky Way onto the night sky
from Chris RINGEVAL

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

Squashed commit of the following:

commit 23194c0fed49609999b4da67b2990af774f7df03
Author: Chris Ringeval <eatdirt@protonmail.com>
Date:   Sun Jan 30 23:52:09 2022 +0100

    Remove CC-BY-SA 3.0 texture provided by EAS and replace it with one made by myself

commit cb30c7972ba3db6b4cb4ad5f9dcd12d7e0ddbc1a
Author: Chris Ringeval <eatdirt@protonmail.com>
Date:   Sun Dec 5 15:49:31 2021 +0100

    Optimize shaders for vram usage and use new uniforms

commit 7541e49c6757a23b08684f1c4354e84b9af3bcc3
Author: Chris Ringeval <eatdirt@protonmail.com>
Date:   Thu Dec 2 17:22:55 2021 +0100

    Reduce the oversized galaxy texture to 400kB

commit 0e6591907a9978077dc6dff1b53dea7c439a6cc4
Author: Chris Ringeval <eatdirt@protonmail.com>
Date:   Tue Nov 30 23:49:24 2021 +0100

    Add Milky Way onto the night sky
2022-02-01 16:19:35 +00:00