]>
git.mxchange.org Git - simgear.git/log
James Turner [Thu, 13 Mar 2014 22:16:58 +0000 (22:16 +0000)]
Don't leak cube-map textures
- use observer_ptr so cube-map textures are released without the
builder holing a ref.
James Turner [Thu, 13 Mar 2014 22:16:00 +0000 (22:16 +0000)]
Fix leak of object-mask textures
Torsten Dreyer [Wed, 12 Mar 2014 20:10:14 +0000 (21:10 +0100)]
Partial fix of #1408, add missing throw
Thomas Geymayer [Wed, 12 Mar 2014 16:39:05 +0000 (17:39 +0100)]
cppbind: Do not derive from SGReferenced if there is no need
Thomas Geymayer [Tue, 11 Mar 2014 14:36:57 +0000 (15:36 +0100)]
cppbind: fix possible usage of expired object from Nasal
James Turner [Tue, 11 Mar 2014 08:32:33 +0000 (08:32 +0000)]
Simplify copyProperties
- with initial-state save/restore gone, all uses of
copyProperties are now simple. For selective copying, use
copyPropertiesWithAttribute.
Thomas Geymayer [Wed, 5 Mar 2014 23:29:55 +0000 (00:29 +0100)]
SGPropertyNode: do not keep list of deleted children.
Get rid of the possibilty to keep delted children. This was not
used actively, required unnecessary memory for each property node
and lead to subtile bugs, as creating a node after a node with
the same path has been deleted resulted in getting the old node
back instead of a cleanly initialized one.
James Turner [Wed, 5 Mar 2014 14:42:29 +0000 (14:42 +0000)]
Remove unused cube-map from 2D clouds.
James Turner [Wed, 5 Mar 2014 10:20:48 +0000 (10:20 +0000)]
VBO switch also controls random-buildings.
Thomas Geymayer [Tue, 4 Mar 2014 16:56:41 +0000 (17:56 +0100)]
MouseEvent: comply with DOM Level 3 and add some getter.
James Turner [Tue, 4 Mar 2014 16:05:36 +0000 (16:05 +0000)]
Code cleanups.
(no functionality change)
James Turner [Fri, 28 Feb 2014 11:06:47 +0000 (11:06 +0000)]
Allow clouds to be toggled on/off
- Change the cloud-root Group to a Switch
Stuart Buchanan [Thu, 27 Feb 2014 21:57:27 +0000 (21:57 +0000)]
Fix longstanding rent in skydome under ALS.
Thomas Geymayer [Wed, 26 Feb 2014 16:48:11 +0000 (17:48 +0100)]
animation: fix for 'textrapezoid' animation outside 'texmultiple'.
James Turner [Tue, 25 Feb 2014 09:13:16 +0000 (09:13 +0000)]
TerraSync: expose method as public
- needed for command-line terrasync util.
James Turner [Mon, 24 Feb 2014 19:41:14 +0000 (19:41 +0000)]
HTTP: improve handling of connection errors
- handle 'whole connection' errors consistently, e.g. EUNREACH
which can occur with intermittent connections.
James Turner [Mon, 24 Feb 2014 06:07:51 +0000 (22:07 -0800)]
Remove obsolete TerraSync methods.
- all scheduling is now done via paths/buckets, not lat+lon.
James Turner [Mon, 24 Feb 2014 06:07:12 +0000 (22:07 -0800)]
Sky: expose OSG branches as Groups.
- avoids creating additional groups in Renderer
James Turner [Mon, 24 Feb 2014 18:03:17 +0000 (18:03 +0000)]
Fix failing BucketBox test
- improve behaviour of floorWithEpsilon helper in bucket code, and
use in more places so that near-integral values are rounded correctly.
Stuart Buchanan [Sun, 23 Feb 2014 21:09:09 +0000 (21:09 +0000)]
Add osgUtil::Simplifier to allow terrain simplification.
James Turner [Sun, 23 Feb 2014 00:24:47 +0000 (16:24 -0800)]
Make return type from loadPagedModel explicit.
- explicitly return osg::PagedLOD instead of Node, so callers
don't need to rely on documentation + cast to get the LOD
settings on the result.
Thomas Geymayer [Sat, 22 Feb 2014 00:44:29 +0000 (01:44 +0100)]
Canvas: Fix crash on hide/show after detaching element from scenegraph.
Christian Schmitt [Fri, 21 Feb 2014 16:38:26 +0000 (17:38 +0100)]
Use the new SGBucket api
Christian Schmitt [Fri, 21 Feb 2014 10:13:32 +0000 (11:13 +0100)]
Fix new SGBucket API
James Turner [Wed, 19 Feb 2014 23:10:48 +0000 (15:10 -0800)]
Only disable display lists if using VBOs.
(Otherwise we fall back to very slow submission)
James Turner [Wed, 19 Feb 2014 22:06:48 +0000 (14:06 -0800)]
Optionally deprecate parts of SGBucket
When NO_DEPRECATED_API is set, remove portions of the
SGBucket API.
James Turner [Wed, 19 Feb 2014 22:05:26 +0000 (14:05 -0800)]
Fix GCC 4.6 / Ubuntu compile failure.
James Turner [Wed, 19 Feb 2014 18:58:39 +0000 (10:58 -0800)]
Raise required OSG version to 3.2.0
James Turner [Wed, 19 Feb 2014 03:58:19 +0000 (19:58 -0800)]
Runtime VBO option in BTG loading.
James Turner [Thu, 16 Jan 2014 20:09:21 +0000 (20:09 +0000)]
Technique selection: fix shader-language
(Also add a glsl-supported test to simplify Effect logic)
Stuart Buchanan [Tue, 18 Feb 2014 21:30:15 +0000 (21:30 +0000)]
OSG 3.2.0 compatibility and surface light effects.
James Turner [Thu, 13 Feb 2014 18:49:16 +0000 (18:49 +0000)]
Revise SGBucket::get_width_m
- remove the 0.5 degree offset away from the equator, which was
causing wrap-around at the poles
- add a new helper to get the highest latitude of a tile (which may
be +/- 90 for the polar cap tiles), and use this to compute radius
- special case the polar-caps and return a fixed, small width so
the tile-manager loads all tiles.
Thomas Geymayer [Thu, 13 Feb 2014 17:21:42 +0000 (18:21 +0100)]
Write back additional attributes to PropertyList
James Turner [Thu, 13 Feb 2014 15:31:58 +0000 (15:31 +0000)]
Some Linux platforms need <cstdio> for snprintf.
James Turner [Thu, 13 Feb 2014 13:23:43 +0000 (13:23 +0000)]
Fix MSVC build.
James Turner [Thu, 13 Feb 2014 12:36:06 +0000 (12:36 +0000)]
Revised set_bucket implementation.
- sink some inline methods into the .cxx file
- add isValid test to SGBucket
- sgGetBuckets won't return invalid buckets near the poles
- additional unit tests
James Turner [Wed, 12 Feb 2014 16:21:16 +0000 (16:21 +0000)]
SGBucket unit-testing
- test polar wrapping near the 180-meridian
- test corner points for polar tiles
- expand test-macro helpers slightly
James Turner [Wed, 12 Feb 2014 15:31:40 +0000 (15:31 +0000)]
Add new sibling() helper to SGBucket
- will replace sgBucketOffset eventually
- expand test coverage for both sibling() and offset function
(one test case is disabled since it fails)
James Turner [Tue, 11 Feb 2014 21:49:45 +0000 (21:49 +0000)]
Add unit-testing for SGBucket
- as part of looking at polar behaviour, start testing the
bucket code since the code has subtleties which it would be unwise
to change.
- remove a legacy setter on SGBucket (taking two doubles as a C-array)
James Turner [Mon, 10 Feb 2014 17:59:02 +0000 (17:59 +0000)]
Race-condition fix in get_effect.
Adapted from a fix by Jeff Biggs. (Shows up easier when using osgEarth,
and multiple osgDB pager threads)
Thomas Geymayer [Sat, 8 Feb 2014 18:15:46 +0000 (19:15 +0100)]
Minor formatting...
Thomas Geymayer [Sat, 8 Feb 2014 18:15:14 +0000 (19:15 +0100)]
SubsystemMgr: helper to remove all subsystems.
Thomas Geymayer [Sat, 8 Feb 2014 18:10:26 +0000 (19:10 +0100)]
Put unused attributes in the property tree while parsing.
Store unhandled xml attributes in a subnode named _attr_ for each
node on parsing propertylist files. This allows retrieving them at
a later stage where there is no access to the source xml file any
more.
Thomas Geymayer [Sat, 8 Feb 2014 11:39:43 +0000 (12:39 +0100)]
New textrapezoid TexTransformAnimation.
Allows trapezoid texture transformations, as needed for example to
correct for the tilt angle of HUD combiners.
Thomas Geymayer [Fri, 7 Feb 2014 23:22:36 +0000 (00:22 +0100)]
Canvas: Fix bounding box calculation for paths with subpaths.
Thomas Geymayer [Thu, 6 Feb 2014 16:55:51 +0000 (17:55 +0100)]
Canvas::Element: expose combined transformation matrix
James Turner [Thu, 6 Feb 2014 12:10:34 +0000 (12:10 +0000)]
MSVC lacks stdint.h / inttypes.h
- we can't use simgear/misc/stdint.hxx here, since it's a C++
header and md5.c is compiled as plain C (no bool type available).
James Turner [Thu, 6 Feb 2014 10:42:41 +0000 (10:42 +0000)]
Replace md5 from RSA with OpenBSD version
- no more BSD-with-advertising-license
- files from http://sources.debian.net/src/dpkg/1.17.6/lib/compat
(with SG_ prefixes to avoid collision issues)
James Turner [Tue, 28 Jan 2014 12:39:28 +0000 (12:39 +0000)]
Mac: fix static linkage
- Link against Cocoa, not CoreServices (for NSFileManager)
James Turner [Tue, 28 Jan 2014 11:16:19 +0000 (11:16 +0000)]
Apple directory helpers
- drop use of deprecated FSFindFolder (use NSFileManager)
- support Downloads and Pictures directories
Thomas Geymayer [Mon, 27 Jan 2014 23:34:21 +0000 (00:34 +0100)]
SGPath: typo...
Thomas Geymayer [Mon, 27 Jan 2014 23:32:08 +0000 (00:32 +0100)]
SGPath: generalize retrieving standard locations (and add more)
James Turner [Mon, 27 Jan 2014 09:19:11 +0000 (09:19 +0000)]
Remove jpeg-factory.
(FlightGear can now do the same, without the helper class)
James Turner [Sun, 26 Jan 2014 16:03:31 +0000 (16:03 +0000)]
Add desktop() accessor to SGPath
(Windows-only for the moment)
Torsten Dreyer [Fri, 24 Jan 2014 10:10:34 +0000 (11:10 +0100)]
fix typo
Thanks to Alex Romosan
James Turner [Thu, 23 Jan 2014 13:51:18 +0000 (13:51 +0000)]
Remove some debug log messages
- two uninformative ones in TextureBuilder
- very noisy one in tied-property-list
James Turner [Thu, 23 Jan 2014 12:49:39 +0000 (12:49 +0000)]
Fix spurious event-mgr warnings
- don't warn on removeTask if the event-manager was already shutdown,
as happens during normal FG shutdown or reset.
James Turner [Sun, 19 Jan 2014 16:45:01 +0000 (16:45 +0000)]
Crash-fix: make mat-lib reference counted.
Make SGReaderWriterOptions own the material lib it's passing to
loader code, so it cannot be freed unexpectedly.
Torsten Dreyer [Fri, 17 Jan 2014 20:59:58 +0000 (21:59 +0100)]
Version 3.1.0
Torsten Dreyer [Fri, 17 Jan 2014 20:49:13 +0000 (21:49 +0100)]
No double-zero for the version number :-/
James Turner [Fri, 17 Jan 2014 17:46:39 +0000 (17:46 +0000)]
Remove a noisy log message from the Terrasync code.
James Turner [Fri, 17 Jan 2014 17:26:29 +0000 (17:26 +0000)]
Bug-fix - short-circuit path validation.
When an SGPath is empty, don't bother stat()-ing. This avoids
an uninitialized-memory read inside the C-runtime on Windows.
James Turner [Fri, 17 Jan 2014 16:27:33 +0000 (16:27 +0000)]
Ensure type tag of contextId binding is set.
(Otherwise defaults to DOUBLE).
Torsten Dreyer [Thu, 16 Jan 2014 20:47:13 +0000 (21:47 +0100)]
Version 3.0.0
James Turner [Wed, 15 Jan 2014 21:56:16 +0000 (21:56 +0000)]
Support a 'clear' operation on SGBinding.
Needed to bug-fix a problem with the menubar on Mac - post-3.0 I will
change the behaviour of SGBinding's destructor to avoid the property
copies in other use-cases.
Thomas Geymayer [Thu, 9 Jan 2014 18:36:17 +0000 (19:36 +0100)]
CanvasMap: Expose property screen-range.
Only allowing a hardcoded screen range of 200 units
is not very flexible...
James Turner [Tue, 7 Jan 2014 16:22:10 +0000 (16:22 +0000)]
HTTP: tweak response parsing.
Signal a parse failure via an exception, instead of via a status
code, since this is hard to disambiguate from a valid server-side
status code.
James Turner [Tue, 7 Jan 2014 14:23:51 +0000 (14:23 +0000)]
Terrasync: update fixes.
- Fix a nasty issue when updating existing repositories, which could
cause repository corruption and hence repeated re-syncs.
James Turner [Tue, 7 Jan 2014 14:06:51 +0000 (14:06 +0000)]
HTTP: tweak for malformed header handling.
Thomas Geymayer [Mon, 6 Jan 2014 11:10:39 +0000 (12:10 +0100)]
Socket: do not crash on writing to broken pipe.
Writing to a closed socket on all Unix/Linux systems raises
a SIGPIPE signal which immediately closes the program. Disabling
raising of SIGPIPE allows proper error handling by checking the
return values of send/sendto and getting the EPIPE in errno.
James Turner [Mon, 6 Jan 2014 08:26:42 +0000 (08:26 +0000)]
Crash fix: use cache to find materials.
Add a thread-safe cache of the currently valid materials, to avoid
the osgDB thread making repeated SGCondition evaluations in conflict
with the main thread.
(Requires an accompanying FG change)
Thomas Geymayer [Sun, 5 Jan 2014 18:38:03 +0000 (19:38 +0100)]
Fix track-to animation basic tracking without slave object
James Turner [Fri, 3 Jan 2014 19:51:58 +0000 (19:51 +0000)]
Bugs 1207, 1301
Only apply the fix for time-zone offsetting on Windows, since Unix
is handling mktime differently. (Arguably we should also apply a
conversion for Unix systems, but the previous logic worked)
James Turner [Wed, 1 Jan 2014 21:03:24 +0000 (21:03 +0000)]
#1207: Add helper to get Unix time in GMT
On Windows, time() is returning a value which if offset by the
selected time-zone. Provide a variant which is always in GMT.
Thomas Geymayer [Mon, 30 Dec 2013 00:31:47 +0000 (01:31 +0100)]
HTTPFileRequest: only save file if status == 200
James Turner [Thu, 19 Dec 2013 17:20:06 +0000 (17:20 +0000)]
Bugfix: remove SGSky minimum distance check.
Without this, various sky rendering modes exhibit artefacts in low-
visibility conditions. The cost of always rendering the dome is
negligible. (And Rembrandt already had to work this way)
Rebecca Palmer [Wed, 27 Nov 2013 17:00:05 +0000 (17:00 +0000)]
Fix test failure on char-unsigned-by-default architectures (eg. ARM)
(from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=722115 )
Rebecca Palmer [Tue, 17 Dec 2013 17:40:33 +0000 (17:40 +0000)]
Fix buffer overflow CVE-2012-2091 (thanks to Saikrishna Arcot)
https://bugs.launchpad.net/ubuntu/+source/simgear/+bug/
1077624
(discussed in comments 65-78)
(This is already fixed in 2.12 but appears to have been forgotten in 2.99;
the other vulnerabilities described there are already fixed.)
James Turner [Thu, 19 Dec 2013 14:56:23 +0000 (14:56 +0000)]
Security: fix 0777 directory permissions to 0755.
James Turner [Sun, 15 Dec 2013 20:55:02 +0000 (20:55 +0000)]
Fix a typo breaking Mac build.
James Turner [Sun, 15 Dec 2013 20:48:07 +0000 (20:48 +0000)]
Reset: clear some property references.
Thomas Geymayer [Thu, 12 Dec 2013 20:25:13 +0000 (21:25 +0100)]
SGPath: some tweaks/fixes/typo on permission checker.
Thomas Geymayer [Thu, 12 Dec 2013 20:03:24 +0000 (21:03 +0100)]
SGPath: add support for custom PermissionChecker
Allow to add permission checks (read/write-access) for
eg. limiting access based on IORules.
James Turner [Tue, 10 Dec 2013 17:37:37 +0000 (17:37 +0000)]
Reset: alternate property copying strategy.
Search the tree for leaves / sub-trees with a particular attribute set.
This permits both sparse selection as well as selection by sub-tree.
(This is needed for PRESERVE attribute, and once new reset is switched
on, will enable 'normal' copyProperties to revert to ignoring
attributes completely)
James Turner [Mon, 9 Dec 2013 23:28:40 +0000 (23:28 +0000)]
Quiet a message.
Thomas Geymayer [Mon, 9 Dec 2013 22:05:31 +0000 (23:05 +0100)]
Canvas: one global SystemAdapter is enough.
This also fixes elements requiring a SystemAdapter without
being assigned to a Canvas (eg. because they are desktop
elements).
Thomas Geymayer [Sun, 8 Dec 2013 17:48:19 +0000 (18:48 +0100)]
Add ListDiff helper (for fast array differences).
Thomas Geymayer [Sat, 7 Dec 2013 12:43:17 +0000 (13:43 +0100)]
Fix some unused/uninitialized variables.
Thomas Geymayer [Sat, 7 Dec 2013 12:42:15 +0000 (13:42 +0100)]
SGPropertyNode: add removeAllChildren() method
Thomas Geymayer [Sat, 7 Dec 2013 12:40:22 +0000 (13:40 +0100)]
Canvas: ensure all canvasses are destroyed
- For shutdown/reset make sure all properties describing a canvas
are removed and also not restored after the reset.
Stuart Buchanan [Fri, 6 Dec 2013 22:12:52 +0000 (22:12 +0000)]
Work around apparent OSG 3.2.0 normal binding bug.
Stuart Buchanan [Fri, 6 Dec 2013 20:20:46 +0000 (20:20 +0000)]
PagedLOD for random trees, buildings and objects.
James Turner [Fri, 6 Dec 2013 18:14:48 +0000 (18:14 +0000)]
Canvas: clear elements in shutdown()
- without this change, elements aren't un-ref-ed and hence destroyed
until the actual dtor runs, which is too late (other systems may be
destroyed already)
James Turner [Fri, 6 Dec 2013 18:03:35 +0000 (18:03 +0000)]
Work around a clang/libc++ issue.
Thomas Geymayer [Wed, 4 Dec 2013 10:15:11 +0000 (11:15 +0100)]
cppbind: don't leak nasal references for Ghost methods.
James Turner [Wed, 4 Dec 2013 09:12:37 +0000 (09:12 +0000)]
Reset: hook to clear the effects cache.
James Turner [Tue, 3 Dec 2013 21:34:23 +0000 (21:34 +0000)]
Reset: don't leak EffectPropertyListener.
Track and free listeners from effect expressions.
Clément de l'Hamaide [Sun, 1 Dec 2013 17:47:49 +0000 (18:47 +0100)]
Implement UTF-8 to Latin1 converter
Thomas Geymayer [Sun, 1 Dec 2013 11:34:26 +0000 (12:34 +0100)]
cppbind: Fix detecting derived Ghosts
Thomas Geymayer [Sun, 1 Dec 2013 00:18:13 +0000 (01:18 +0100)]
cppbind: make ghost_type static to keep same pointer on reset.
Using a static naGhostType ensures that always the same
address is used for the same ghost and prevents ghost_types
from getting invalid (eg. on reset).