1
0
Fork 0
Commit graph

145 commits

Author SHA1 Message Date
Stuart Buchanan
d09b61eaa8 Default number of OSG loading threads to 4 2024-02-24 21:01:23 +00:00
Fernando García Liñán
7e0b22e5b7 HDR: Add night vision effect 2024-01-26 15:19:22 +01:00
Roman Ludwicki
9242e133fd Add option to hide the aircraft on the map
As a student, I would like to be able to use the map for reading the flight plan, frequencies for VOR, NDB, ILS, but without giving away the position of my aircraft, so that I can train in IFR navigation using the instruments only in the cockpit.
2023-11-11 13:55:19 +00:00
Erik Hofman
1267e072f3 Tone down fresnel and shininess a bit 2023-11-09 11:17:42 +01:00
Fernando García Liñán
8b91f660bc HDR: Better handling of time warp when updating the envmap 2023-10-09 05:52:11 +02:00
Fernando García Liñán
b36210e141 HDR: Use properties for shadowmap and envmap sizes 2023-10-09 04:41:25 +02:00
Fernando García Liñán
e12afa0a7d HDR: Fix "floating" shadows in Screen Space Shadows 2023-10-04 02:41:22 +02:00
Stuart Buchanan
3fccf08abe WS30: Add vpb directory to suffixes for terrasync
This allows WS3.0 to sync scenery over terrasync.

At present there is no UI to enable this, as WS3.0
is not available on the main terrasync servers.  So
it needs to be manually enabled by setting

--prop:/sim/rendering/scenery-path-suffix[98]/enabled=true

Note that WS3.0 has a dependency on the airport
data that is stored under the Terrain suffix.

Thanks to merspieler for setting up a test
terrasync server to test this.
2023-07-31 21:25:51 +01:00
Fernando García Liñán
1e66c4104a HDR: Improved environment mapping
- Terrain and clouds and now rendered on the envmap, with correct aerial
  perspective.
- Each face is rendered on a separate frame to help with performance.
- All faces are updated every 1.5 minutes. This can be changed through a
  property.
2023-05-03 02:03:10 +02:00
Fernando García Liñán
691337a00e HDR: Add separate fog layer to atmosphere
Also use Nasal to feed the shaders' uniforms. Much better than running
the computations on the GPU.
2023-04-21 02:15:42 +02:00
Fernando García Liñán
82d415cbd4 HDR: Add remaining aerosol types
Now the properties of the atmospheric medium can be changed through the
property tree.
2023-04-16 07:19:22 +02:00
Fernando García Liñán
f53a170539 HDR: Better bloom effect
We also now pre-expose our lighting before writing to the HDR buffers.
This solves some precision issues and prevents the Sun from producing
infinite values.
2023-04-13 00:30:02 +02:00
Fernando García Liñán
c4d19877cf HDR: Significant update
- New atmosphering rendering technique based on my own work.
- Attempt to fix some remaining transparency issues.
- Use a luminance histogram for auto exposure.
- Add support for clustered shading.
- Add WS 2.0 shaders.
- Add 3D cloud shaders.
- Add orthoscenery support.
2023-04-06 00:18:29 +02:00
Erik Hofman
03a898faf9 Switch to the Noto font for authors 2023-02-22 15:59:14 +01:00
Richard Harrison
aeae504d47 emexec: rewrite rate adjust logic
Change to calculate the frame rate ourselves because /sim/frame-rate doesn't take into account freeze and has a transient ridiculous value after a pause. Instead we calculate the average rate over a period and then LP filter this.

This also removes the annoying frame rate update messages

Cofiguration now comes from /sim/emexec

* /sim/emexec/monitor-period is the period to reset the average; the LP filter isn't reset.
* /sim/emexec/max-rate-hz is the upper limit on the emexec update rate. defaults to 50 and a model can override this. It's probably not a user setting

output of

* current emexec rate into /sim/emexec/rate-hz
* smoothed / LP filtered frame rate into /sim/emexec/frame-rate
2023-01-29 14:31:51 +00:00
James Turner
aef16be4f0 Revert "Add option to read upper winds from simbrief"
As requested by Lars, revert these commits since they don't
work as hoped, reliably.

This reverts commit 55b17f4c5e.
This reverts commit 91401a95b0.
2022-11-24 12:17:49 +00:00
Stuart Buchanan
319c12a9d4 WS30 - Remove separate water mesh option
Separate water mesh is no longer required due to
shader changes to include water shader in main
ws30 shader.
2022-11-08 21:46:21 +00:00
Chris Ringeval
deb7947709 Set default value of shaders/model to 3 to match gui default settings 2022-11-06 12:24:31 +00:00
James Turner
10a31e1f3c Add defaults.xml entry for GUI module 2022-09-05 13:13:22 +01:00
Lars Toenning
91401a95b0 Add option to read upper winds from simbrief 2022-08-16 08:33:35 +01: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
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
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
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
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
Stuart Buchanan
e6d6813ba8 WS30: Add property to control separate water mesh 2022-02-01 17:10:08 +00:00
James Turner
d1ff92fe54 Add POIs checkbox to map 2022-01-10 11:14:06 +00:00
Julian Smith
0395b916c9 defaults.xml: added sim/replay/record-continuous-compression 2021-12-09 23:19:53 +00:00
Julian Smith
f2a724adcb defaults.xml: added sim/time/simple-time/enabled. 2021-12-09 23:19:53 +00:00
Julian Smith
05f7b034d0 Added user interface for video encoding.
Translations/default/menu.xml
defaults.xml
    Added /sim/video/ items.
gui/dialogs/video.xml
    New, allows one to select the video container, codec, quality, speed and
    bitrate to be used when encoding videos. Radio buttons are provided for
    common containers and codecs.
gui/menubar.xml
    File menu now has 'video start' and 'video stop' items, plus an item that
    opens new 'video control' dialogue. [We use menu items for video start/stop
    to minimise the visual affect at the beginning and end of the generated
    video.]
2021-12-09 23:19:53 +00:00
Stuart Buchanan
e934445f91 WS30: Remove WS30 LoD range factor
Better handled by camera controls.
2021-10-12 21:48:12 +01:00
James Hogan
43305c09b3
defaults: Add VR visibility-mask property
Add VR visibility-mask property to defaults.xml so it initialises early
and so it is automatically saved.
2021-09-22 10:54:11 +01:00
James Hogan
3aa8691963
defaults: Add VR mirror properties
Add important VR mirror properties to defaults.xml so that they
initialise early and so that they are automatically saved.
2021-09-11 23:43:55 +01:00
b'Fernando Garc\xc3\xada Li\xc3\xb1\xc3\xa1n
25068efaee Merge /u/amalon/fgdata/ branch vr_1 into next
https://sourceforge.net/p/flightgear/fgdata/merge-requests/238/
2021-09-03 22:23:20 +00:00
Fernando García Liñán
96a6e6c9bf HDR: Implement GTAO (Ground Truth Ambient Occlusion) 2021-09-01 04:26:03 +02:00
Fernando García Liñán
9f39644199 HDR: Optimize the G-Buffer and do not separate the occlusion texture
- The G-Buffer layout has been redesigned to be 96 bits per pixel. There are 24
unused bits that can be used for extra material parameters later (like
clearcoat).
- Add better debug views for the G-Buffer.
- Use octahedron normal encoding. This yields the same results as the previous
method but uses 16 bits less.
- Use rg11fb10f for the environment mapping cubemaps.
- Tweak the shadow mapping parameters and add a colored debug mode.
- Only render shadow maps for objects that inherit from model-default.eff or
model-pbr.eff instead of having a fallback Effect. Now transparent objects
should be ignored (if they are marked as such with model-transparent or
similar).
- Remove the separate occlusion texture. Now the PBR Effect expects a single
texture where R=occlusion, G=roughness and B=metallic.
2021-08-27 00:03:43 +02:00
Fernando García Liñán
a789c24209 HDR: Fix model-combined when not using a normal map 2021-08-25 16:49:08 +02:00
Fernando García Liñán
eea955168e HDR: Organize shadow-related files and add screen space shadows 2021-08-24 23:38:56 +02:00
Michael Danilov
249d5b6fcd defaults.xml: Save "Use Shaders" 2021-08-23 22:29:02 +02:00
James Hogan
7909da4db5
defaults: Add VR properties
Add important VR properties to defaults.xml so that they initialise
early and so that they are automatically saved.
2021-08-23 16:11:40 +01:00
Fernando García Liñán
8662ce0a86 HDR: Add SMAA as the default antialiasing technique 2021-08-23 01:05:41 +02:00
Fernando García Liñán
f16372ac7e HDR: Add property to show debug views of the GBuffer 2021-08-16 21:51:37 +02:00
Julian Smith
23374fb50e defaults.xml: enable CompositeViewer by default.
We set /sim/rendering/composite-viewer-enabled to true.
2021-08-03 09:39:50 +01:00
Fernando García Liñán
467468ef3a HDR: Improve exposure and bloom handling 2021-07-31 19:13:19 +02:00
Julian Smith
4b4410becf Allow control of whether 'b' key also cancels parking brake.
Uses new property /sim/controls/brake-cancels-parking-brake.

Default is true; it is expected that some aircraft (e.g. p51d) will set this to
false so they can implement their own brake/parking-brake interaction.

Should address bug 2589.
2021-05-26 22:37:38 +01:00
Fernando García Liñán
6950670086 Do not save the graphics preset for now
There aren't any mechanisms in the C++ side to handle custom settings yet, so don't use graphics presets unless the user enables them explicitly through a command line option.
2021-05-07 13:10:09 +02:00
Stuart Buchanan
c87798c610 WS30i: Initial coastlines 2021-05-03 15:47:13 +01:00
Erik Hofman
f4edb0e362 Keep the rendering quality settings between sessions 2021-05-02 12:56:36 +02:00