Fernando García Liñán
5c21df742c
Compositor no longer inherits from osg::Referenced
2020-12-17 06:35:55 +01:00
Scott Giese
39d616a0d5
Support Boost v1.75
...
Resolved a breaking change.
2020-12-15 01:41:32 -06:00
James Turner
b660061812
Fix Nasal GC errors on tests/reset
...
Ensure the Context temps are cleared, and when recycling an naCode,
ensure old values are cleared explicily.
Sentry-Id: FLIGHTGEAR-Y
2020-12-13 17:26:27 +00:00
James Turner
deda20d5bd
SGGeod: add static constructor of an invalid Geod
...
Use this to allow explicitly initializing a value which isValid
will return false for.
2020-12-13 17:26:27 +00:00
xDraconian
b9c39fd2ab
Merge /p/flightgear-photoscenery/simgear/ branch next-photoscenery-r6 into next
...
https://sourceforge.net/p/flightgear/simgear/merge-requests/88/
2020-12-12 23:13:37 +00:00
Nathaniel Warner
9e103fe7bf
Prefer DDS over PNG for orthophoto
2020-12-12 13:59:52 -08:00
Nathaniel Warner
88be307540
Gracefully handle pixel format mismatch
2020-12-12 11:44:55 -08:00
Julian Smith
89fabafa15
simgear/props/props_io.*: added class for inline calling of writeProperties().
...
E.g. allows:
SG_LOG(SG_VIEW, SG_ALERT, "returning:\n" << writePropertiesInline(config, true /*write_all*/));
2020-12-12 11:24:33 +00:00
Nathaniel Warner
4c0f6d7638
Add support for dds, avoid creating non power of two textures
2020-12-11 18:39:20 -08:00
Stuart Buchanan
8954a54e2e
WS30: Improved material atlas
...
Add
- texture size
- shininess
- diffuse
- specular
from material.xml into the fragment shader via sampler1D.
2020-12-08 21:12:01 +00:00
Fernando García Liñán
915982de85
Move makeNewProjMat somewhere public so it can be accessed by flightgear
2020-12-08 14:08:43 +01:00
Richard Harrison
aaaae0f567
Remove mutex lock on realizeTechniques
...
This was causing a deadlock - and I can't quite remember what problem it was intended to solve so it is best to remove it.
2020-12-07 15:12:15 +01:00
Nathaniel Warner
f72ff7d2a2
Fix segfault when trying to load corrupt orthophoto
2020-12-06 11:44:04 -08:00
Fernando García Liñán
00ff35cdb7
Better shadow map depth ranges
2020-12-06 14:41:09 +01:00
Stuart Buchanan
8641d3616a
WS30: Texture array texture lookup for landclass
...
- Create a Texture2DArray for a MaterialCache
- Adjust the landclass image to index into the above array
- Add the array to as a Uniform for rendering.
2020-12-05 13:09:35 +00:00
James Turner
02cf42359d
Reporting of std::bad_alloc in Subsystem::update
...
Trying to trace down our bad-alloc exception, starting with the simplest
place for now.
2020-12-03 21:37:26 +00:00
James Turner
4271b710ef
Add reporting callback option to SimGear
...
Allows us to trigger an error logging callback explicitly, which can
be used to drive Sentry.io on the FlightGear side.
2020-12-03 21:37:26 +00:00
Fernando García Liñán
f1212dfa73
Initial support for texture arrays in Effects
2020-12-03 18:36:56 +01:00
James Turner
191d546b54
TerraSync: stronger fix for handling 0-byte files
...
Change logic so we create an empty file for such cases, i.e exactly
matching the repository. This simplifies logic in downstream code,
compared with not creating a local file.
Add a test-case to cover this
Modify TerraSync to detect a failure of Airports_archive downloading,
and fall back to file-by-file updating.
2020-12-03 16:40:48 +00:00
James Turner
57a4dc53f2
HTTPRepository: don’t crash on empty files
...
Fix some additional crash cases around 0-length files
2020-12-02 21:28:37 +00:00
James Turner
e370477e4e
Unzip: adjust error reporting mechanism
...
Don’t use local exception throw+catch to report failures in extracting
a zip archive, since this generates noise in Sentry.
2020-12-02 12:12:56 +00:00
James Turner
c88b8b201a
State-machines: don’t require name for transitions
...
Allow anonymous transitions, since the name is purely informational
(unlike for states).
Sentry-Id: FLIGHTGEAR-9H
2020-11-30 16:17:59 +00:00
Nathaniel Warner
fee2c592c0
Use observer_ptr in OrthophotoManager
2020-11-29 15:02:09 -08:00
Stuart Buchanan
023a3de5f1
WS30: Landclass to material mapping
...
Using indirection in materials.xml
<landclass-mapping>
<map>
<description>111 - Continuous urban fabric</description>
<landclass>1</landclass>
<material-name>Urban</material-name>
</map>
</landclass-mapping>
2020-11-29 19:28:58 +00:00
James Turner
de268300fb
TerraSync: fix crashes with null file return
...
Not sure how this is happening, but, check for a null file object
in FileGetRequest::onDone.
2020-11-29 16:22:21 +00:00
Scott Giese
79252d889c
Merge branch 'next' of https://git.code.sf.net/p/flightgear/simgear into next
2020-11-27 17:56:52 -06:00
Nathaniel Warner
ca38d9110c
Fix orthophotos not being cleaned up on scenery reload
2020-11-27 17:54:28 -06:00
Stuart Buchanan
6ece39e34c
Set minimum expiry time on STG nodes.
2020-11-26 22:55:56 +00:00
Scott Giese
aab373ac3a
Model Loading: Overlays
...
Cannot copy overlays until the props has been read.
Ticket: #2429
2020-11-24 11:26:57 -06:00
Nathaniel Warner
d4d149f3c0
Rebase photoscenery patch on next
2020-11-23 17:49:24 -06:00
Scott Giese
59809ab61f
smell: avoid uncasting with left-shift
2020-11-23 16:17:28 -06:00
Scott Giese
7673da3832
smell: throwing heap object
...
null check.
2020-11-23 16:16:14 -06:00
Scott Giese
112c9a110b
smell: potential div-by-0
2020-11-23 16:14:37 -06:00
Scott Giese
59e62b1414
warning: unreachable code
2020-11-23 16:13:43 -06:00
Scott Giese
43bf10d803
warning: defined but not used
2020-11-23 16:12:07 -06:00
Scott Giese
20bcb0f245
warning: defined but not used
...
clean up whitespace.
2020-11-23 16:11:08 -06:00
Scott Giese
c469f072f1
warning: ‘Active’ will be initialized after 'CanWait'
2020-11-23 16:08:55 -06:00
Scott Giese
62f3923692
warning: comparison of integer expressions of different signedness
2020-11-23 16:07:39 -06:00
Scott Giese
03abb674dc
warning: unused variable ‘fd’
2020-11-23 16:06:43 -06:00
Scott Giese
f6e63e1831
warning: unused variable ‘idx’
2020-11-23 16:05:03 -06:00
Fernando García Liñán
cc8b2bbf72
Add support for anisotropic filtering in Canvas
2020-11-23 16:33:09 +01:00
Stuart Buchanan
0a37986551
Use ref_ptr for ReaderWriterSPT
2020-11-21 21:45:09 +00:00
Chris Frey
04ca40ad81
tgdb: check result of readRefNodeFile and log
2020-11-21 21:41:10 +00:00
Chris Frey
42ceb429a7
Small spelling/grammar fix in comments in ReaderWriterSPT.cxx
2020-11-21 21:39:17 +00:00
Chris Frey
6ae7eb31a6
BucketBox: fixed possibility of writing one past the end of the given array
2020-11-21 21:38:19 +00:00
Richard Harrison
5d5f1779c6
Reduce severity of ".." at model root
...
It seems more sensible to return nullptr rather than throwing an exception.
2020-11-21 14:56:16 +01:00
Richard Harrison
2cb6499f1c
Model loading; overlay properties earlier
...
This is to permit an <overlay> section in <model> to be present whilst the rest of the model is loaded - otherwise the overlay is only present after the model is loaded;
e.g. to allow a model specific registration to be applied to a shared model;
<model>
<overlay>
<texture-file>island_68.png</texture-file>
<carrier-name>Nimitz</carrier-name>
<carrier-registration>CVN-68</carrier-registration>
</overlay>
<path>nimitz-class.xml</path>
</model>
2020-11-21 14:56:16 +01:00
Julian Smith
e2596eaeea
simgear/debug/logdelta.cxx: remove initial diagnostic if SG_LOG_DELTAS uset.
2020-11-21 12:17:59 +00:00
Scott Giese
da39e30439
METAR: mitigate wind sensor failures
2020-11-20 21:13:47 -06:00
Automatic Release Builder
15c6f73136
Catalogs: fix ownership of new Catalogs
...
When doing the initial download of a Catalog, ensure we still keep
an owning ref to it.
2020-11-18 17:32:10 +00:00