]> git.mxchange.org Git - simgear.git/log
simgear.git
12 years agoIntialize to prevent a 'may be used uninitialized' warning
Erik Hofman [Mon, 19 Dec 2011 14:29:25 +0000 (15:29 +0100)]
Intialize to prevent a 'may be used uninitialized' warning

12 years agoIntialize to prevent a 'may be used uninitialized' warning
Erik Hofman [Mon, 19 Dec 2011 14:28:11 +0000 (15:28 +0100)]
Intialize to prevent a 'may be used uninitialized' warning

12 years agoIntialize the center to prevent a 'may be used uninitialized' warning
Erik Hofman [Mon, 19 Dec 2011 14:25:58 +0000 (15:25 +0100)]
Intialize the center to prevent a 'may be used uninitialized' warning

12 years ago#479: avoid issues due to trailing path separators
ThorstenB [Sun, 18 Dec 2011 16:04:31 +0000 (17:04 +0100)]
#479: avoid issues due to trailing path separators
Cut trailing separators when converting from string to sgpath.
Also, SGPath::fix does NOT replace ":". It only replaces "\" with "/",
so the "i!=1" check for Windows made no sense (rule #9: never believe
a source code comment).

12 years ago#512: fix compatibility issue with boost 1.48.0
ThorstenB [Sun, 18 Dec 2011 13:06:27 +0000 (14:06 +0100)]
#512: fix compatibility issue with boost 1.48.0
Thanks to handigehansje.

12 years agoReturn ReadResult::FILE_NOT_HANDLED for unknown extensions.
Mathias Froehlich [Sat, 17 Dec 2011 18:08:18 +0000 (19:08 +0100)]
Return ReadResult::FILE_NOT_HANDLED for unknown extensions.

This fixes a problem with fonts no longer being correctly
loaded as a side effect of the spt meta object loader.
The readObject slot is obviously being called for several
unrelated file extensions. To make sure the search continues,
osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED needs to
be returned in this case.

12 years agoAdd new files in the MSVC project
Frederic Bouvier [Sat, 17 Dec 2011 15:45:19 +0000 (16:45 +0100)]
Add new files in the MSVC project

12 years agoCorrect scenery load path extension.
Mathias Froehlich [Sun, 11 Dec 2011 21:19:11 +0000 (22:19 +0100)]
Correct scenery load path extension.

12 years agoImplement osg native scenery paging.
Mathias Froehlich [Sun, 11 Dec 2011 20:11:18 +0000 (21:11 +0100)]
Implement osg native scenery paging.

Add an in memory osg scenery loader that provides
paged scenery loading using PagedLOD nodes.

12 years agoNo need to start non looping samples automatically when getting in-range.
Erik Hofman [Tue, 13 Dec 2011 10:40:08 +0000 (11:40 +0100)]
No need to start non looping samples automatically when getting in-range.

12 years agoAdd an out_of_range property to sound samples. If set the sound is set to non playing...
Erik Hofman [Tue, 13 Dec 2011 10:09:12 +0000 (11:09 +0100)]
Add an out_of_range property to sound samples. If set the sound is set to non playing (which allows the OpenAL sound the be free'd)

12 years agoAdd vi(m) .swp files and a [Bb]uild directory
Erik Hofman [Mon, 12 Dec 2011 12:20:49 +0000 (13:20 +0100)]
Add vi(m) .swp files and a [Bb]uild directory

12 years agoFree OpenAL sounds of objects that are farther away than the max_distance.
Erik Hofman [Mon, 12 Dec 2011 12:19:43 +0000 (13:19 +0100)]
Free OpenAL sounds of objects that are farther away than the max_distance.

12 years agoImprove logging classes.
ThorstenB [Sun, 11 Dec 2011 12:57:11 +0000 (13:57 +0100)]
Improve logging classes.
Replace SG_GENERAL by more specific log classes in many places.

12 years agoUpdate MSVC 90 project (moved files)
Frederic Bouvier [Sat, 10 Dec 2011 17:50:08 +0000 (18:50 +0100)]
Update MSVC 90 project (moved files)

12 years agoProperly handle stereo wav files; remove data buffer and set buffer to FAILED_BUFFER
Erik Hofman [Wed, 7 Dec 2011 09:41:57 +0000 (10:41 +0100)]
Properly handle stereo wav files; remove data buffer and set buffer to FAILED_BUFFER

12 years agofix sound buffer resource leak
ThorstenB [Sun, 4 Dec 2011 20:25:42 +0000 (21:25 +0100)]
fix sound buffer resource leak
Openal doesn't remove buffers unless they were disconnected form
their source.

12 years agosound: fix "source" resource leak
ThorstenB [Sun, 4 Dec 2011 19:16:36 +0000 (20:16 +0100)]
sound: fix "source" resource leak
Sound resources were eaten up when a sample could not be loaded.
Restores sound for aircraft attempting to use stereo files for sound effects.
However, when loading fails, sound code still tries to load the same file
again and again (always resulting in the same "stereo files not supported"
error), which slows down simulation.

12 years agosound manager: report a few more errors
ThorstenB [Sun, 4 Dec 2011 16:10:58 +0000 (17:10 +0100)]
sound manager: report a few more errors

12 years agoFix a copy/paste typo in Effect depth attributes
Frederic Bouvier [Thu, 1 Dec 2011 18:45:18 +0000 (19:45 +0100)]
Fix a copy/paste typo in Effect depth attributes

12 years agoFixed lib64 auto-detection (again)
ThorstenB [Wed, 30 Nov 2011 18:50:09 +0000 (19:50 +0100)]
Fixed lib64 auto-detection (again)
Reverting the "LIB_SUFFIX" change.
Assuming recent change was unintentional (otherwise let me know James! :) ).

12 years agoFix header installation for shared build
James Turner [Wed, 30 Nov 2011 09:45:32 +0000 (09:45 +0000)]
Fix header installation for shared build

12 years agoMove some OSG-dependant code into scene/util.
James Turner [Tue, 29 Nov 2011 10:23:09 +0000 (10:23 +0000)]
Move some OSG-dependant code into scene/util.

13 years agoGet all the tests linking with shared-simgear, and duplicate the awkward core functio...
James Turner [Mon, 28 Nov 2011 23:22:43 +0000 (23:22 +0000)]
Get all the tests linking with shared-simgear, and duplicate the awkward core functions into a new file, pending a proper cleanup.

13 years agoFix naming of core library, get IO tests linking shared, and exclude OSG symbols...
James Turner [Mon, 28 Nov 2011 23:05:05 +0000 (23:05 +0000)]
Fix naming of core library, get IO tests linking shared, and exclude OSG symbols from the core lib by setting headless mode.

13 years agoBuild system tweaks to support SIMGEAR_SHARED building two libraries. Work in progres...
James Turner [Mon, 28 Nov 2011 22:43:57 +0000 (22:43 +0000)]
Build system tweaks to support SIMGEAR_SHARED building two libraries. Work in progress, does not link yet.

13 years agocmake: add option to disable building tests
ThorstenB [Sat, 26 Nov 2011 15:39:40 +0000 (16:39 +0100)]
cmake: add option to disable building tests

13 years agoCMake: Proper support for lib vs lib64 installation
ThorstenB [Fri, 25 Nov 2011 11:06:54 +0000 (12:06 +0100)]
CMake: Proper support for lib vs lib64 installation
Determine name of library installation directory, i.e. "lib" vs "lib64",
which differs between all Debian-based vs all other Linux distros.
See cmake bug #11964, http://cmake.org/gitweb?p=cmake.git;a=commit;h=126c993d
Also provide a script for older (<=2.8.4) cmake

13 years agoSlightly rearrange the buffer removing code. This should make sure the source is...
Erik Hofman [Wed, 23 Nov 2011 08:41:13 +0000 (09:41 +0100)]
Slightly rearrange the buffer removing code. This should make sure the source is always stopped (required by the OpenAL spec) before a buffer is removed and added to the free source list.

13 years agoMerge branch 'next' of git://gitorious.org/fg/simgear into next
Erik Hofman [Sun, 20 Nov 2011 18:08:04 +0000 (19:08 +0100)]
Merge branch 'next' of git://gitorious.org/fg/simgear into next

13 years agoAdd another subsystem group.
ThorstenB [Sun, 20 Nov 2011 14:50:56 +0000 (15:50 +0100)]
Add another subsystem group.
Sound subsystem wants to be the last in processing - so use a
separate group.

13 years agoMerge branch 'next' of git://gitorious.org/fg/simgear into next
Erik Hofman [Sun, 20 Nov 2011 09:19:52 +0000 (10:19 +0100)]
Merge branch 'next' of git://gitorious.org/fg/simgear into next

13 years agoUpdate VS2008 project
Frederic Bouvier [Sat, 19 Nov 2011 20:19:08 +0000 (21:19 +0100)]
Update VS2008 project

13 years agoMerge commit 'refs/merge-requests/17' of git://gitorious.org/fg/simgear into merge...
ThorstenB [Sat, 19 Nov 2011 14:25:22 +0000 (15:25 +0100)]
Merge commit 'refs/merge-requests/17' of git://gitorious.org/fg/simgear into merge-requests/17

13 years agoSeparate module to monitor (subsystem-)performance.
ThorstenB [Sat, 19 Nov 2011 14:24:43 +0000 (15:24 +0100)]
Separate module to monitor (subsystem-)performance.
Move some code from the subsystem manager to a separate module.
Add module to evaluate performance and expose statistics to properties.

13 years agoImprove error messages, report file name.
ThorstenB [Thu, 17 Nov 2011 20:26:02 +0000 (21:26 +0100)]
Improve error messages, report file name.

13 years agoAllow 6-lights VASI as well (2 bars a 3 lights).
Christian Schmitt [Thu, 17 Nov 2011 16:19:58 +0000 (17:19 +0100)]
Allow 6-lights VASI as well (2 bars a 3 lights).

13 years agoFix a std:: namespace issue on Windows.
James Turner [Sun, 13 Nov 2011 21:27:15 +0000 (21:27 +0000)]
Fix a std:: namespace issue on Windows.

13 years agostd:: namespace fixes, and sink some code from the subsystem header into the implemen...
James Turner [Sun, 13 Nov 2011 20:34:39 +0000 (20:34 +0000)]
std:: namespace fixes, and sink some code from the subsystem header into the implementation. (Hopefully more to follow)

13 years agousing std:: fix
James Turner [Sun, 13 Nov 2011 20:33:25 +0000 (20:33 +0000)]
using std:: fix

13 years agoFix MSVC build
Frederic Bouvier [Sun, 13 Nov 2011 19:06:39 +0000 (20:06 +0100)]
Fix MSVC build

13 years agoUse osgDB::read*File instead of dereferencing the osgDB Registry instance.
Mathias Froehlich [Sat, 12 Nov 2011 18:44:56 +0000 (19:44 +0100)]
Use osgDB::read*File instead of dereferencing the osgDB Registry instance.

13 years agoConsolidate the different ReaderWriterOptions classes.
Mathias Froehlich [Sat, 12 Nov 2011 18:39:48 +0000 (19:39 +0100)]
Consolidate the different ReaderWriterOptions classes.

13 years agoReplace OpenThreads with SGThread to avoid useless OSG dependency.
ThorstenB [Sun, 13 Nov 2011 14:37:49 +0000 (15:37 +0100)]
Replace OpenThreads with SGThread to avoid useless OSG dependency.
Untangle SG subsystems by replacing direct TileCache call with callback.

13 years agoFixed typo.
ThorstenB [Thu, 10 Nov 2011 21:08:23 +0000 (22:08 +0100)]
Fixed typo.

13 years agoAlso stop the source if it is paused when exit.
Erik Hofman [Thu, 10 Nov 2011 11:52:17 +0000 (12:52 +0100)]
Also stop the source if it is paused when exit.

13 years agoMerge branch 'next' of git://gitorious.org/fg/simgear into next
Erik Hofman [Thu, 10 Nov 2011 09:29:07 +0000 (10:29 +0100)]
Merge branch 'next' of git://gitorious.org/fg/simgear into next

13 years agoOpenSceneGraph 3.0 required
Martin Spott [Wed, 9 Nov 2011 12:55:49 +0000 (13:55 +0100)]
OpenSceneGraph 3.0 required

13 years agomodellib: Add method for deferred model loading.
Mathias Froehlich [Tue, 8 Nov 2011 20:11:28 +0000 (21:11 +0100)]
modellib: Add method for deferred model loading.

Add method that schedules a ProxyNode to do
just deferred model loading instead of full scenery paging.
Add support for ProxyNodes to CheckSceneryVisitor.
Use PagedLOD instead of our own derived method.

13 years agoAdding Icecode GL's polygon-offset support for effects
PSadrozinski [Sun, 6 Nov 2011 14:47:29 +0000 (09:47 -0500)]
Adding Icecode GL's polygon-offset support for effects

13 years agoMerge branch 'next' of git://gitorious.org/fg/simgear into next
Erik Hofman [Sat, 5 Nov 2011 10:41:07 +0000 (11:41 +0100)]
Merge branch 'next' of git://gitorious.org/fg/simgear into next

13 years agoRemove automake ignores.
Mathias Froehlich [Tue, 1 Nov 2011 12:53:29 +0000 (13:53 +0100)]
Remove automake ignores.

13 years agoRemove the remaining Makefiles from the code.
James Turner [Tue, 1 Nov 2011 09:28:26 +0000 (09:28 +0000)]
Remove the remaining Makefiles from the code.

13 years agoRemove the automake / autoconf build files.
James Turner [Tue, 1 Nov 2011 09:26:22 +0000 (09:26 +0000)]
Remove the automake / autoconf build files.

13 years agoMerge branch 'next' of git://gitorious.org/fg/simgear into next
Erik Hofman [Sun, 30 Oct 2011 09:40:00 +0000 (10:40 +0100)]
Merge branch 'next' of git://gitorious.org/fg/simgear into next

13 years agoAdd a HLADataElementVisitor implementation.
Mathias Froehlich [Sun, 30 Oct 2011 09:23:59 +0000 (10:23 +0100)]
Add a HLADataElementVisitor implementation.

13 years agoMake tiedpropertylist quieter.
James Turner [Sun, 30 Oct 2011 07:55:44 +0000 (07:55 +0000)]
Make tiedpropertylist quieter.

13 years agoEnhancements to property-object support, add a default ctor and some typedefs.
James Turner [Sun, 30 Oct 2011 07:55:29 +0000 (07:55 +0000)]
Enhancements to property-object support, add a default ctor and some typedefs.

13 years agoterrasync build fix: added #include <string.h> for strlen
Csaba Halasz [Sun, 30 Oct 2011 00:14:27 +0000 (02:14 +0200)]
terrasync build fix: added #include <string.h> for strlen

13 years ago#453: Using = as Nasal function argument crashes FG
ThorstenB [Sat, 29 Oct 2011 19:20:46 +0000 (21:20 +0200)]
#453: Using = as Nasal function argument crashes FG
Keep Nasal parser from crashing when "=" function misses a left-hand
element, i.e. when parsing "sin(=)".
(Or do people writing such terrible syntax deserve a crash? ;-) ).

13 years agoterrasync improvements
ThorstenB [Sat, 29 Oct 2011 19:15:29 +0000 (21:15 +0200)]
terrasync improvements
Detach from console to make "Ctrl-C" work for fgfs on Linux.
Immediately start synchronization of current position when
starting at run-time.

13 years agoFix terrasync airport synchronization sequence
ThorstenB [Sat, 29 Oct 2011 19:13:12 +0000 (21:13 +0200)]
Fix terrasync airport synchronization sequence
Airport A-J were skipped. Thanks to James for spotting this.
Also corrects actual sync order.

13 years agoMove ALUT 1.0 variables inside the #ifdef, to avoid some compiler warnings.
James Turner [Sat, 29 Oct 2011 10:06:24 +0000 (11:06 +0100)]
Move ALUT 1.0 variables inside the #ifdef, to avoid some compiler warnings.

13 years agoRemove sg_sleep.*.
Mathias Froehlich [Fri, 28 Oct 2011 15:00:56 +0000 (17:00 +0200)]
Remove sg_sleep.*.

13 years agoFix mac build.
Mathias Froehlich [Fri, 28 Oct 2011 17:10:20 +0000 (19:10 +0200)]
Fix mac build.

13 years agoHopefully fix jenkins build.
Mathias Froehlich [Fri, 28 Oct 2011 17:05:11 +0000 (19:05 +0200)]
Hopefully fix jenkins build.

13 years agoMake use of SGTimeStamp::sleep*.
Mathias Froehlich [Fri, 28 Oct 2011 14:58:29 +0000 (16:58 +0200)]
Make use of SGTimeStamp::sleep*.

13 years agoAdd sleep implementations to SGTimeStamp.
Mathias Froehlich [Fri, 28 Oct 2011 14:52:46 +0000 (16:52 +0200)]
Add sleep implementations to SGTimeStamp.

Implement sleeping to an absolute timestamp
as well as sleeping for a relative time in
SGtimeStamp.
The reason for including this into SGTimeStamp
is that the timestamps internals are required to
do accurate sleeps to and absolute timestamp
for the posix timer implementation.

13 years agoFix a bug affecting TerraGear, and extend unit-tests to cover this. (SGPath::file...
James Turner [Fri, 28 Oct 2011 11:57:07 +0000 (12:57 +0100)]
Fix a bug affecting TerraGear, and extend unit-tests to cover this. (SGPath::file returned an empty string for paths with no directory separator)

13 years agoAdd sound test programs to the CMake build.
James Turner [Fri, 28 Oct 2011 11:29:26 +0000 (12:29 +0100)]
Add sound test programs to the CMake build.

13 years agoFix assorted compiler warnings found by Clang
James Turner [Fri, 28 Oct 2011 11:07:35 +0000 (12:07 +0100)]
Fix assorted compiler warnings found by Clang

13 years agoKeep VC90 project file working with SGAtomic
Torsten Dreyer [Thu, 27 Oct 2011 06:18:54 +0000 (08:18 +0200)]
Keep VC90 project file working with SGAtomic

13 years agoChange (revert!) behaviour of SGPath::base, which broke TerraGear, when used with...
James Turner [Wed, 26 Oct 2011 18:57:57 +0000 (19:57 +0100)]
Change (revert!) behaviour of SGPath::base, which broke TerraGear, when used with multiple file suffixes (hgt.zip, for example). Test cases updated to match TG-required behaviour.

13 years agoSupport stream output by SGPath directly.
James Turner [Tue, 25 Oct 2011 20:44:57 +0000 (21:44 +0100)]
Support stream output by SGPath directly.

13 years agoAddress warnings found via Clang - especially related to destructor visibility with...
James Turner [Mon, 24 Oct 2011 17:09:42 +0000 (18:09 +0100)]
Address warnings found via Clang - especially related to destructor visibility with ref_ptrs of various kinds.

13 years agoFix SGAtomic mutex logic.
Mathias Froehlich [Sun, 23 Oct 2011 21:27:38 +0000 (23:27 +0200)]
Fix SGAtomic mutex logic.

13 years agoRework SGAtomic, move more into the implementation.
Mathias Froehlich [Sun, 23 Oct 2011 21:03:15 +0000 (23:03 +0200)]
Rework SGAtomic, move more into the implementation.

Mainly move many cases into the implementation file.

13 years agoFixes for headless mode.
James Turner [Sun, 23 Oct 2011 16:56:28 +0000 (17:56 +0100)]
Fixes for headless mode.

13 years agoUse a compile test to see if we need to provide the GCC atomic built-ins ourselves...
James Turner [Sun, 23 Oct 2011 14:59:27 +0000 (15:59 +0100)]
Use a compile test to see if we need to provide the GCC atomic built-ins ourselves, or not.

13 years agoMake lat/lon points in the ocean tile configurable at run-time. Not hooked up to...
James Turner [Sun, 23 Oct 2011 10:26:19 +0000 (11:26 +0100)]
Make lat/lon points in the ocean tile configurable at run-time. Not hooked up to a property yet, but soon.

13 years agoMerge branch 'next' of git://gitorious.org/fg/simgear into next
Erik Hofman [Sun, 23 Oct 2011 08:39:26 +0000 (10:39 +0200)]
Merge branch 'next' of git://gitorious.org/fg/simgear into next

13 years agoFixes to 3D clouds
Stuart Buchanan [Sat, 22 Oct 2011 20:28:09 +0000 (21:28 +0100)]
Fixes to 3D clouds
 - Wrap 3D clouds (e.g. Global Weather) on the surface of a sphere rather than on a plane. Cloud altitude no-longer increases with distance from the start position
 - Fix altitude of individual clouds, which where being places approx 1/2 the sprite height too high. Note that this means sprite positions in the cloud are the center of the cloud rather than the bottom.
 - Improve LOD radii, which were far too large.

13 years agoSupport for creating a source package via CPack
James Turner [Sat, 22 Oct 2011 14:37:17 +0000 (15:37 +0100)]
Support for creating a source package via CPack

13 years agoAdd FUZZY_COMPARE to me tar unit-test, tolerate lower-order imprecision in FPUs
James Turner [Fri, 21 Oct 2011 10:21:52 +0000 (11:21 +0100)]
Add FUZZY_COMPARE to me tar unit-test, tolerate lower-order imprecision in FPUs

13 years agoSGPath rename wrapper. Let's see what Win32 makes of it.
James Turner [Fri, 21 Oct 2011 08:36:33 +0000 (09:36 +0100)]
SGPath rename wrapper. Let's see what Win32 makes of it.

13 years agoRemove-on-destroy option for simgear::Dir, to help with cleaning up temporary directo...
James Turner [Fri, 21 Oct 2011 08:36:10 +0000 (09:36 +0100)]
Remove-on-destroy option for simgear::Dir, to help with cleaning up temporary directories.

13 years agoRemove using std:: from the metar header, remove HTTP support, add very basic unit...
James Turner [Fri, 21 Oct 2011 08:35:37 +0000 (09:35 +0100)]
Remove using std:: from the metar header, remove HTTP support, add very basic unit-test harness.

13 years agostring list joining, and a test case for that and splitting.
James Turner [Thu, 20 Oct 2011 10:12:54 +0000 (11:12 +0100)]
string list joining, and a test case for that and splitting.

13 years agoMerge branch 'next' of git://gitorious.org/fg/simgear into next
Erik Hofman [Tue, 18 Oct 2011 16:32:57 +0000 (18:32 +0200)]
Merge branch 'next' of git://gitorious.org/fg/simgear into next

13 years agostd:: namespace fixes.
James Turner [Mon, 17 Oct 2011 08:50:35 +0000 (09:50 +0100)]
std:: namespace fixes.

13 years agoAdd another helper to strutils, to compare version strings.
James Turner [Mon, 17 Oct 2011 08:50:21 +0000 (09:50 +0100)]
Add another helper to strutils, to compare version strings.

13 years agoCompile fix: add this-> in SGExpression.hxx due to two-phase name lookup (reported...
Csaba Halasz [Sun, 16 Oct 2011 12:00:39 +0000 (14:00 +0200)]
Compile fix: add this-> in SGExpression.hxx due to two-phase name lookup (reported by gcc 4.7)

13 years agoFix windows build
Frederic Bouvier [Sat, 15 Oct 2011 07:42:15 +0000 (09:42 +0200)]
Fix windows build

13 years agoUse mkdtemp where available, avoiding linker warnings about dangerous tempnam
James Turner [Sat, 15 Oct 2011 01:06:35 +0000 (02:06 +0100)]
Use mkdtemp where available, avoiding linker warnings about dangerous tempnam

13 years agoUnit test for SGBinObj, and fix a bug in large-indice handling the test revealed.
James Turner [Fri, 14 Oct 2011 20:57:34 +0000 (21:57 +0100)]
Unit test for SGBinObj, and fix a bug in large-indice handling the test revealed.

13 years agoAdd default constructor to simgear::Dir
James Turner [Fri, 14 Oct 2011 18:28:21 +0000 (19:28 +0100)]
Add default constructor to simgear::Dir

13 years agoWarn for stereo files.
Erik Hofman [Mon, 3 Oct 2011 06:34:20 +0000 (08:34 +0200)]
Warn for stereo files.

13 years agohla: fix typo resulting in an endless loop.
Mathias Froehlich [Sun, 2 Oct 2011 13:13:06 +0000 (15:13 +0200)]
hla: fix typo resulting in an endless loop.

13 years agohla: provide main loop capabilities for HLAFederate.
Mathias Froehlich [Sun, 2 Oct 2011 12:36:33 +0000 (14:36 +0200)]
hla: provide main loop capabilities for HLAFederate.

13 years agohla: lift the event loop logic from RTI to HLAFederate.
Mathias Froehlich [Sun, 2 Oct 2011 08:11:10 +0000 (10:11 +0200)]
hla: lift the event loop logic from RTI to HLAFederate.