1
0
Fork 0
Commit graph

10365 commits

Author SHA1 Message Date
Fernando García Liñán
8af67bfb2f HDR: Complete refactoring of shader style and naming
See https://wiki.flightgear.org/Shader_Style_Guide.
2023-04-11 15:53:47 +02:00
Erik Hofman
c64130fc4c Remove all wave features from water textures. let shaders handle it. 2023-04-09 14:20:50 +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
Fernando García Liñán
85771b2863 Use different vertex attribute for orthoscenery
See related SimGear commit e8ffe461

Now the orthophoto texture coordinates are contained in gl_TexCoord[2],
so no need to pass any custom vertex attributes to Effects that use
photoscenery.
2023-04-05 23:13:51 +02:00
Benedikt Wolf
eb9508ed56 ILEC-SC7: Correct size, various small model improvements 2023-03-13 11:22:05 +01:00
Erik Hofman
534c859cdb Revert to 8e3ef0d2e4 as Nasal OOP doesn't work 2023-03-10 09:21:54 +01:00
Erik Hofman
c9dda8b418 Reinstate a line which was commented out for debugging purposes 2023-03-08 15:15:18 +01:00
Erik Hofman
6357b7b629 Do not show the canvas display at startup 2023-03-08 12:55:17 +01:00
Erik Hofman
93f974de1e Make cDefaultGroup a class member 2023-03-08 11:29:46 +01:00
Erik Hofman
61664836a4 Fold used shaders into the main shader 2023-03-08 11:27:55 +01:00
Erik Hofman
cfef45c93b Introduce a view-matrix for ShaderVG 2023-03-04 14:11:18 +01:00
Benedikt Wolf
a90b331ce1 Fix some instrument installation instructions to prevent spamming MP properties 2023-03-02 15:47:41 +01:00
Erik Hofman
8e3ef0d2e4 Add some descriptive labels to the test pattern 2023-02-28 14:19:10 +01:00
TheFGFSEagle
921df08a61 Check for each key passed to Shortcut.match whether it is contained in the shortcut's keys, instead of comparing the first argument key to the first member key, the second to the second, etc. 2023-02-28 12:47:00 +00:00
TheFGFSEagle
372d68a775 Canvas slider widget:
Added value display
Add ticks, round mouse dragging result to nearest multiple of step size,
implement scroll handler
Add keybindings for adjusting slider value
2023-02-28 12:47:00 +00:00
TheFGFSEagle
be80d67754 Added option to make tabs closeable 2023-02-28 12:47:00 +00:00
Erik Hofman
a18808fae6 Add a Canvas test pattern dialog 2023-02-28 13:31:23 +01:00
Stuart Buchanan
71bdd9e99b WS30 - Improved coastline shader
Make the coastline shader consistent between
the coastline texture and the underlying landclass
texture, irrespective of materials.
2023-02-27 22:02:34 +00:00
Roman Ludwicki
bc2f4b4c80 Update Polish translation 2023-02-27 01:05:25 +01:00
Roman Ludwicki
b6b8e10d69 Update Polish translations 2023-02-27 00:42:34 +01:00
Erik Hofman
50b3f3913e Move the shaders from ShaderVG to fgdata 2023-02-26 10:30:07 +01:00
Erik Hofman
03a898faf9 Switch to the Noto font for authors 2023-02-22 15:59:14 +01:00
Erik Hofman
3b282843eb Remove unused DDS texture files. They'll get moved to the FGAddon attic. 2023-02-21 09:58:01 +01:00
Erik Hofman
21a5d6de00 Remove a stale README file about DDS textures which where replaced with the DDS cache 2023-02-21 09:37:49 +01:00
Erik Hofman
16d277e5c4 Add the Noto font:
https://en.wikipedia.org/wiki/Noto_fonts

Noto is a font family comprising over 100 individual fonts, which are together designed to cover all the scripts encoded in the Unicode standard.
2023-02-21 09:17:53 +01:00
Erik Hofman
f92170dcb6 Colin Geniet:
There are 3 relevant render bins for aircraft models:
- 0: default
- 10: depth sorted, automatically selected for transparent objects.
- 111: depth sorted, explicitly set by some transparent effects (hud, glass)

The model-default effect does not set <render-bin> on purpose, to allow
automatic selection of bin 0 or 10. So my second patch which added <render-bin>
to model-default is wrong.
It is only model-transparent which should explicitly set bin 111
to interact well with hud/glass effects.
2023-02-20 09:03:02 +01:00
Erik Hofman
4cb01f0ee7 Demonstrate the new machwave effect 2023-02-20 09:03:02 +01:00
TheFGFSEagle
8277a6d608 LineEdit: selection work
Implemented line edit selection highlighting and Shift+arrow keys,
mouse dragging, and mouse double-clicking text selection
2023-02-13 11:11:42 +00:00
TheFGFSEagle
8b0da63e7c Make list items align to the top properly 2023-02-13 11:05:48 +00:00
TheFGFSEagle
00efa2d01a Make std.algorithm conditions more efficient 2023-02-13 11:05:48 +00:00
TheFGFSEagle
a5f2e19c12 Pass node in the config hash instead of as an argument 2023-02-10 13:01:20 +00:00
TheFGFSEagle
06dc27d631 Added method to find a list item by its data 2023-02-10 13:01:20 +00:00
TheFGFSEagle
305d88f601 Added more property-synced widgets 2023-02-10 13:01:20 +00:00
TheFGFSEagle
da894c87c5 Add popup border, added option to enable popups taking focus (disabled by default) 2023-02-10 13:01:20 +00:00
TheFGFSEagle
0f1ac87cae Added methods to set, get and clear radio button data 2023-02-10 13:01:20 +00:00
TheFGFSEagle
6f5581ac50 Added method to get all tabs of the TabWidget 2023-02-10 13:01:20 +00:00
Benedikt Wolf
51ede47c5a Cleanup some canvas instruments 2023-02-10 10:40:36 +01:00
Benedikt Wolf
1be001a18c Fix wingflex shader to use current effect code. A better way would probably be to just keep the wing flexing part there and then include model-combined, but I couldnt get that to work unfortunately 2023-02-10 10:40:36 +01:00
Benedikt Wolf
13b24e5290 Improve hitch.nas, work in progress 2023-02-10 10:40:35 +01:00
TheFGFSEagle
3e4b6ff9c8 Make combo box menu work 2023-02-03 11:28:29 +00:00
TheFGFSEagle
8a1192c918 Added Switch class, added group-checked-radio-changed signal for radio buttons 2023-02-03 11:28:29 +00:00
Erik Hofman
e700c54ece Move exclude-from-gui inder /sim 2023-02-02 12:33:53 +01:00
Florent Rougon
4dd2b09d5f aisim-set.xml: use ASCII quotes for XML attribute---not UTF-8 curly quotes 2023-02-01 14:19:04 +01:00
Erik Hofman
661e46e85f exclude-from-gui 2023-02-01 14:07:19 +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
TheFGFSEagle
7274ec886a Added some utility functions (all, any, map and filter) 2023-01-24 19:03:52 +00:00
James Turner
b3b2871523 GUI style: make sizes parametric 2023-01-24 18:49:32 +00:00
TheFGFSEagle
7dd431cbbd Implemented canvas radio button 2023-01-24 14:09:22 +00:00
TheFGFSEagle
f569a5ac29 Added property tree widget and browser dialog 2023-01-24 13:59:47 +00:00
TheFGFSEagle
f1e099641f Center canvas windows on screen upon creation, add methods to center canvas window on screen and to get their current position 2023-01-24 13:58:52 +00:00