]> git.mxchange.org Git - simgear.git/log
simgear.git
16 years agoCleanup of particles contribution
timoore [Fri, 15 Feb 2008 06:44:24 +0000 (06:44 +0000)]
Cleanup of particles contribution

Put particles classes inside simgear namespace

Refactored some redundant code

Reworked local frame math to use OSG math classes as much as possible

16 years agoparticles from Tiago_G
timoore [Fri, 15 Feb 2008 06:44:05 +0000 (06:44 +0000)]
particles from Tiago_G

16 years agoSmall cleanup of tree shader
timoore [Thu, 7 Feb 2008 23:01:32 +0000 (23:01 +0000)]
Small cleanup of tree shader

16 years agoMinor cleanup of Stuart Buchanan's tree patch.
timoore [Thu, 7 Feb 2008 23:01:16 +0000 (23:01 +0000)]
Minor cleanup of Stuart Buchanan's tree patch.

Separate random objects and random trees for real.

16 years agoSecond trees patch from Stuart Buchanan
timoore [Thu, 7 Feb 2008 23:00:23 +0000 (23:00 +0000)]
Second trees patch from Stuart Buchanan

Adds random variation of tree texture maps

16 years agoCleanup and performance tuning of the random trees code.
timoore [Sat, 2 Feb 2008 23:01:27 +0000 (23:01 +0000)]
Cleanup and performance tuning of the random trees code.

The QuadTreeBuilder class was completely revamped as a templated class
to support flexible creation of scene graph quad trees, and a major
bug was fixed as well. Now it actually generates quadtrees instead of
some weird striped thing.

One StateSet is shared among all the "forests." The trees are drawn
after normal terrain objects to minimize some of the transparency
related artifacts.

Lighting was implemented in the ShaderGeometry shader (for both
polygon sides). Ambient-diffuse values for trees are hard-coded in
TreeBin.cxx.

DotOsg wrappers were added for ShaderGeometry so it can be output in
the scene graph dump.

16 years agoRandom trees from Stuart Buchanan
timoore [Sat, 2 Feb 2008 23:01:05 +0000 (23:01 +0000)]
Random trees from Stuart Buchanan

Stuart's new file SGTreeBin.hxx has been split into 4 files:
TreeBin.[ch]xx and ShaderGeometry.[ch]xx.

16 years agoMemory leak fixes from Till Busch
timoore [Thu, 24 Jan 2008 23:05:18 +0000 (23:05 +0000)]
Memory leak fixes from Till Busch

16 years agoUpdate MSVC 7.1 projects
fredb [Thu, 17 Jan 2008 21:41:48 +0000 (21:41 +0000)]
Update MSVC 7.1 projects

16 years agofix memory leaks in random object code
timoore [Thu, 17 Jan 2008 08:28:15 +0000 (08:28 +0000)]
fix memory leaks in random object code

Don't allocate mt structures (for the random number generator) on the heap.

16 years agoAvoid spitting gazillion 'Cannot find image file "" ' message on the console while...
fredb [Sat, 12 Jan 2008 08:50:21 +0000 (08:50 +0000)]
Avoid spitting gazillion 'Cannot find image file "" ' message on the console while loading random objects

16 years agoModified Files:
frohlich [Mon, 7 Jan 2008 22:05:48 +0000 (22:05 +0000)]
Modified Files:
simgear/scene/model/animation.cxx:
Change factor/offset order for texture animations.
Fixes remaining bug with texture animations.

16 years agoRandom object support from Stuart Buchanan
timoore [Sun, 6 Jan 2008 15:04:43 +0000 (15:04 +0000)]
Random object support from Stuart Buchanan

In addition to Stuart's changes, there's an independent quad tree
builder class for constructing loose quad trees from scene graph nodes.

Stuart also implemented changes to the random number generator suggested by
Andy Ross.

16 years agoUpdate MSVC 7.1 projects
fredb [Fri, 4 Jan 2008 21:45:41 +0000 (21:45 +0000)]
Update MSVC 7.1 projects

16 years agoRemove warnings
fredb [Fri, 4 Jan 2008 21:45:14 +0000 (21:45 +0000)]
Remove warnings

16 years agoGive the sky a BACKGROUND_BIT nodemask
timoore [Fri, 4 Jan 2008 07:33:42 +0000 (07:33 +0000)]
Give the sky a BACKGROUND_BIT nodemask

Add a MODEL_BIT and tag clouds with that.

Remove vestigial post_root from sky code.

16 years agobackground node mask
timoore [Fri, 4 Jan 2008 07:33:23 +0000 (07:33 +0000)]
background node mask

16 years agoModified Files:
frohlich [Mon, 31 Dec 2007 15:49:01 +0000 (15:49 +0000)]
Modified Files:
simgear/scene/model/SGClipGroup.cxx
simgear/scene/model/SGClipGroup.hxx Update the clip group.

16 years agoModified Files:
frohlich [Mon, 31 Dec 2007 15:48:02 +0000 (15:48 +0000)]
Modified Files:
simgear/scene/model/animation.cxx: Create animation inputs if not
already there. Fixes broken texture animations from past checkin.

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 19:19:51 +0000 (19:19 +0000)]
Modified Files:
Makefile.am SGPickCallback.hxx: add proirities for pick callbacks.

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 19:12:04 +0000 (19:12 +0000)]
Modified Files:
animation.cxx animation.hxx: Make use of the expression stuff.
Factors out common code with other animations stuff in flightgear.

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 19:10:40 +0000 (19:10 +0000)]
Modified Files:
Makefile.am
Added Files:
SGExpression.cxx SGExpression.hxx: Add not yet complete but already
usable expression tree. Will be used with the panel code.

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 19:08:45 +0000 (19:08 +0000)]
Modified Files:
scene/model/SGClipGroup.cxx: Oops, add missing simgear_config.h

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 19:05:06 +0000 (19:05 +0000)]
Modified Files:
Makefile.am
Added Files:
SGClipGroup.cxx SGClipGroup.hxx: Add helper group node for reuse
of clipping planes. Will be used for the panel code.

16 years agoModified Files:
frohlich [Wed, 26 Dec 2007 19:03:21 +0000 (19:03 +0000)]
Modified Files:
simgear/props/props.hxx: Add a bunch of convinience functions.

16 years agoPass ReaderWriter options to SGMaterialAnimation
timoore [Sun, 23 Dec 2007 23:33:04 +0000 (23:33 +0000)]
Pass ReaderWriter options to SGMaterialAnimation

It needs to grab the path list from options in order to support the texture
change animation.

16 years agoFix tiny bugs in sun constructor and repaint code
timoore [Sat, 22 Dec 2007 23:01:36 +0000 (23:01 +0000)]
Fix tiny bugs in sun constructor and repaint code

16 years agoAdd StateAttributeFactory files to VS project file
timoore [Fri, 21 Dec 2007 06:29:36 +0000 (06:29 +0000)]
Add StateAttributeFactory files to VS project file

16 years agooptimize groups from .AC file optimizer run
timoore [Fri, 21 Dec 2007 06:25:40 +0000 (06:25 +0000)]
optimize groups from .AC file optimizer run

16 years agoRepaint 2D cloud layers using texture combiner
timoore [Fri, 21 Dec 2007 06:25:13 +0000 (06:25 +0000)]
Repaint 2D cloud layers using texture combiner

Don't change the color in the cloud layer geometry

16 years agoFix cloud layer - point lights visibility issue
timoore [Fri, 21 Dec 2007 06:24:53 +0000 (06:24 +0000)]
Fix cloud layer - point lights visibility issue

Move point lights to render bin 8, clouds to render bin 9. Turn on
AlphaFunc for cloud layers.

Create a StateAttributeFactory object to create and share common state
objects.

16 years agoUpdate MSVC 7.1 projects
fredb [Tue, 18 Dec 2007 22:25:24 +0000 (22:25 +0000)]
Update MSVC 7.1 projects

16 years agoUse node masks and shared state sets to manage ground lights
timoore [Thu, 13 Dec 2007 23:30:24 +0000 (23:30 +0000)]
Use node masks and shared state sets to manage ground lights

Do away with the switch in each terrain tile for the ground lights. They are
turned on by node masks now.

Share state sets among all the light nodes and manage the fog values through a
"GroundLightManager" instead of having separate state sets and callback
functions for each group in each tile.

16 years agominor fix to ModelRegistry and syntax changes for Windows
timoore [Tue, 11 Dec 2007 11:07:21 +0000 (11:07 +0000)]
minor fix to ModelRegistry and syntax changes for Windows

Create the local path in the right order in OptionsPusher. When
OptionsPusher is used, put it inside a new code block so the order of
destruction with respect to the mutex on reader functions id clear.

Add #include <algorithm> to top of ModelRegistry.cxx.

Change include syntax in PathOptions.cxx

16 years agoCheck for null options before changing path in registry
timoore [Mon, 10 Dec 2007 08:30:43 +0000 (08:30 +0000)]
Check for null options before changing path in registry

16 years agoWork around osg Registry path list problems
timoore [Sun, 9 Dec 2007 22:38:10 +0000 (22:38 +0000)]
Work around osg Registry path list problems

The OSG reader plugins overwrite the path list passed in options with the local
directory of the file being read, forcing you to set the path list in
the Registry. I think this a bug, but in the meantime here's a workaround.

16 years agoAdd operator!= to SGBucket
timoore [Fri, 7 Dec 2007 23:35:04 +0000 (23:35 +0000)]
Add operator!= to SGBucket

16 years agoAdd option to SGLoadTexture2D to load dynamic textures
timoore [Fri, 7 Dec 2007 09:13:34 +0000 (09:13 +0000)]
Add option to SGLoadTexture2D to load dynamic textures

16 years ago- comparison: don't crash if second element is missing
mfranz [Thu, 6 Dec 2007 17:57:41 +0000 (17:57 +0000)]
- comparison: don't crash if second element is missing
- better messages ("panel"?!)

16 years agoDon't modify OSG Registry with file path
timoore [Tue, 4 Dec 2007 22:38:40 +0000 (22:38 +0000)]
Don't modify OSG Registry with file path

To set a path when loading model files, use an osg ReaderWriter::Options object.

Put locks in ModelRegistry::readNode and ModelRegistry::readImage to avoid
conflicts when files are loaded from both the pager and the main thread.

16 years agoUpdate MSVC 7.1 projects
fredb [Sun, 2 Dec 2007 12:28:30 +0000 (12:28 +0000)]
Update MSVC 7.1 projects

17 years agoChange the main ModelRegistry callback function to stash the substituted file in...
timoore [Thu, 29 Nov 2007 23:56:49 +0000 (23:56 +0000)]
Change the main ModelRegistry callback function to stash the substituted file in the cache.

17 years agoAvoid copying drawables and dirtying display lists.
timoore [Thu, 29 Nov 2007 23:56:31 +0000 (23:56 +0000)]
Avoid copying drawables and dirtying display lists.

For the alpha-test animation, use an OVERRIDE attribute on the state
set of the top level node instead of copying drawables and state sets
throughout the model.

As a temporary hack in the blend animation, don't use display lists in
the cloned drawables.

These changes are aimed at cutting down the number of display lists
that the pager needs to compile.

17 years agorewrite ModelRegistry callbacks as a template with pluggable policy classes
timoore [Thu, 29 Nov 2007 23:56:09 +0000 (23:56 +0000)]
rewrite ModelRegistry callbacks as a template with pluggable policy classes

In a big effort to improve use of the object cache, provide a
ModelRegistryCallback template class with different policies for
substitution,  caching, optimization, etc.

Change SGTexDataVarianceVistor to make StateSets static too.

17 years agoStart of cleanup of scene graph node masks
timoore [Thu, 29 Nov 2007 23:55:35 +0000 (23:55 +0000)]
Start of cleanup of scene graph node masks

17 years agoMove SGReadFileCallback from model.cxx to public class ModelRegistry
timoore [Thu, 29 Nov 2007 23:55:01 +0000 (23:55 +0000)]
Move SGReadFileCallback from model.cxx to public class ModelRegistry

Move SGReadFileCallback and all its help classes into a new
ModelRegistry class that also provides an interface to add custom
callbacks for specific file extensions. SGReaderWriterBTG uses that to
keep any further processing from being done on .btg files. Various
namespace-releated cleanup was done on this code too.

17 years agoStateSet optimizations
timoore [Sun, 18 Nov 2007 23:31:03 +0000 (23:31 +0000)]
StateSet optimizations

Use only one shared StateSet to control GL_NORMALIZE. This removes
thousands of state sets from the scene graph.

Fix a typo that was causing two copies of groundLights0 to be added to
each tile.

17 years agoSome scene graph optimizations
timoore [Sun, 18 Nov 2007 23:30:34 +0000 (23:30 +0000)]
Some scene graph optimizations

When loading terrain, use DrawElementsUShort where possible.

Don't chunk unconnected triangles in the terrain into seperate
Geometry sets; make the sets as big as possible.

17 years agoMinor documentation updates.
durk [Sun, 18 Nov 2007 14:21:41 +0000 (14:21 +0000)]
Minor documentation updates.

17 years agoRefined debug timing control:
durk [Sat, 17 Nov 2007 09:16:58 +0000 (09:16 +0000)]
Refined debug timing control:
 - Added a SampleStatistic class (from the old deprecated libg++) library.
 - Make time statistics and printing conditionable
 - Added an interface function to switch time stamp collection and printing
   on and off from the application (defaults to off).

17 years agoImproove texture sharing.
frohlich [Fri, 9 Nov 2007 05:55:50 +0000 (05:55 +0000)]
Improove texture sharing.

17 years agoUpdate node masks
frohlich [Fri, 9 Nov 2007 05:52:58 +0000 (05:52 +0000)]
Update node masks

17 years agoIn the original flightgear native/binary scenery terrain data format, we
curt [Mon, 5 Nov 2007 21:42:29 +0000 (21:42 +0000)]
In the original flightgear native/binary scenery terrain data format, we
used short's extensively to represent counts of objects (number of points,
number of texture coordinates, number of traingle strips, etc.) and we used
shorts to index into larger structures.  But this capped many of our structure
sizes to a maximum of 32768.

By switching to unsigned shorts in the future, we can double the maximum
object/index counts without losing anything.  This was a pretty major
oversight in our original specification.

I have bumped up the native object file version from 6 to 7 and added code
in the reader to maintain full backwards compatibilty with version 6
scenery files (i.e. the current 0.9.10 scenery release.)

Curt.

17 years ago- A few fixes to ensure SimGear compiles again on cygwin.
durk [Mon, 15 Oct 2007 18:49:50 +0000 (18:49 +0000)]
- A few fixes to ensure SimGear compiles again on cygwin.
  * on cygwin, isnan is declared in ieeepf.h
  * CYGWIN is a special case in that it is windows based, but sometimes
    folows unix conventions. SGAtomic compilation failed on an illegal
    volatile type cast without the additional __CYGWIN__ define check.

17 years ago* Fixed memory leak in RenderTexture.cpp (tiny, but still...)
durk [Sun, 14 Oct 2007 13:46:13 +0000 (13:46 +0000)]
* Fixed memory leak in RenderTexture.cpp (tiny, but still...)
* Added Timestamping debugging code to SGSubsystems (ported from plib
  branch).

17 years agoAdd ability to override existing model files with .osg files.
timoore [Fri, 12 Oct 2007 22:46:35 +0000 (22:46 +0000)]
Add ability to override existing model files with .osg files.

This enables off-line optimization of models and other special effects.

17 years agoManage OSG object cache explicitly
timoore [Fri, 12 Oct 2007 22:46:13 +0000 (22:46 +0000)]
Manage OSG object cache explicitly

Don't have Registry::ReadNodeImplementation store its results in the
object cache; instead store the optimized model in the cache.

17 years agobetter standard compliance: allow empty top level tags (<PropertyList>)
mfranz [Wed, 10 Oct 2007 12:45:53 +0000 (12:45 +0000)]
better standard compliance: allow empty top level tags (<PropertyList>)

17 years agoDon't reset the random texture base when rebuilding a cloud layer
timoore [Thu, 4 Oct 2007 20:53:22 +0000 (20:53 +0000)]
Don't reset the random texture base when rebuilding a cloud layer
This fix removes obnoxious visuals (texture jumping) when a cloud
layer is moved due to a metar update or, more significantly, when
switching from metar to a scenario. Also, I switched to using a TexMat
to displace the cloud texture in order to avoid writing the texture
array every frame.

17 years agoOrder the cloud layers properly using OSG RenderBin
timoore [Tue, 2 Oct 2007 21:43:52 +0000 (21:43 +0000)]
Order the cloud layers properly using OSG RenderBin

17 years agoocean state set in osg::Geometry
timoore [Sun, 30 Sep 2007 19:51:49 +0000 (19:51 +0000)]
ocean state set in osg::Geometry

Put the ocean tile state set in osg::Geometry, not the osg::Geode, so that
is readily available during intersection testing and can be used to find the
corresponding SGMaterial.

Problem reported by grtux (gh.robin@laposte.net)

17 years agoFix material animations with only a <texture-prop>
timoore [Wed, 5 Sep 2007 22:12:00 +0000 (22:12 +0000)]
Fix material animations with only a <texture-prop>

On 8/31/07, K. Hoercher <wbhoer@gmail.com> wrote:
> > Some notes:
> > - I found that in order to make the example from model-howto.html work
> > ( starting at "To make a texture replaceable at runtime") one has to
> > specify a valid (i.e. loadable) <texture>  in the material animation.

The cause seems to be the condition in SGMaterialAnimation.cxx l.277
ignoring any texture update by the UpdateCallback (only there
<texture-prop> is looked at)  without an already existing stateSet.
That in turn will not be created with a <texture-prop> alone l. 379ff.

Unless I overlooked some compelling reason contradicting, I'd like to
suggest allowing for a stateSet to be created for those situations
too. I think that would match the behaviour of animation.cxx
(PRE_OSG_PLIB_20061029) and is imho the more expected and also
documented one.

17 years agoChange "FlightGear" to "SimGear" of course.
durk [Sat, 1 Sep 2007 12:57:53 +0000 (12:57 +0000)]
Change "FlightGear" to "SimGear" of course.

17 years agoAdded a check for OpenSceneGraph and created some basic documentation.
durk [Sat, 1 Sep 2007 12:55:46 +0000 (12:55 +0000)]
Added a check for OpenSceneGraph and created some basic documentation.

17 years agoAdd separate check for openal and ALUT, as these are now separate.
durk [Sat, 1 Sep 2007 10:04:36 +0000 (10:04 +0000)]
Add separate check for openal and ALUT, as these are now separate.

17 years agoDocumentation fixes: Updated the contents of README.plib and README.OpenAL
durk [Sat, 1 Sep 2007 09:45:21 +0000 (09:45 +0000)]
Documentation fixes: Updated the contents of README.plib and README.OpenAL
Also make sure that these files are included in the release. This is
required, since ./configure refers to these files.

17 years agoAdd curvature to ocean tiles.
timoore [Sun, 12 Aug 2007 21:03:43 +0000 (21:03 +0000)]
Add curvature to ocean tiles.

An apron around the tile hides cracks with coastal tiles.

The VectorArrayAdapter, which lives in the simgear namespace, is a useful
utility class for treating vectors as 2D arrays.

17 years agoOcean tile detail work in progress
timoore [Sun, 12 Aug 2007 21:02:54 +0000 (21:02 +0000)]
Ocean tile detail work in progress

17 years agoUpdate MSVC 7.1 projects
fredb [Sun, 12 Aug 2007 13:40:16 +0000 (13:40 +0000)]
Update MSVC 7.1 projects

17 years agoFix a typo
fredb [Sun, 12 Aug 2007 13:32:42 +0000 (13:32 +0000)]
Fix a typo

17 years agoModified Files:
frohlich [Tue, 7 Aug 2007 05:26:21 +0000 (05:26 +0000)]
Modified Files:
projects/VC7.1/SimGear.vcproj projects/VC8/SimGear.vcproj
simgear/math/Makefile.am simgear/math/SGGeoc.hxx
simgear/math/SGGeodesy.cxx simgear/math/SGGeodesy.hxx
simgear/math/polar3d.hxx simgear/math/sg_geodesy.hxx
simgear/math/sg_types.hxx
Removed Files:
simgear/math/polar3d.cxx simgear/math/sg_geodesy.cxx
simgear/math/sg_memory.h:
Remove sg_memory.h It is unused anyway and should not be required
in a c++ world. Move distance course functions to the SG* type
system. Move the implementation into SGGeodesy.cxx. Remove some of
the old Point3D Based sg* functions that are already unused.

17 years agoModified Files:
frohlich [Tue, 7 Aug 2007 04:59:09 +0000 (04:59 +0000)]
Modified Files:
projects/VC8/SimGear.vcproj:
MSVC8 Build system updates from Olaf Flebbe.

17 years agoMelchior discovered that call(call) would crash due to a longstanding bug with argume...
andy [Wed, 1 Aug 2007 22:46:12 +0000 (22:46 +0000)]
Melchior discovered that call(call) would crash due to a longstanding bug with argument parsing

17 years agoFix crash in code generator for some bad lvalue expressions
andy [Wed, 1 Aug 2007 22:33:01 +0000 (22:33 +0000)]
Fix crash in code generator for some bad lvalue expressions

17 years agoAdd ppc64 to the list of supported platforms based on testing by Tom Callaway at...
andy [Tue, 31 Jul 2007 20:57:21 +0000 (20:57 +0000)]
Add ppc64 to the list of supported platforms based on testing by Tom Callaway at Red Hat

17 years agoFix ocean texture scaling problem.
timoore [Tue, 31 Jul 2007 06:39:26 +0000 (06:39 +0000)]
Fix ocean texture scaling problem.

17 years agoRemove an extern SGSky *thesky reference that isn't used in the code anyway.
curt [Tue, 31 Jul 2007 01:21:21 +0000 (01:21 +0000)]
Remove an extern SGSky *thesky reference that isn't used in the code anyway.
The original code forced a dependency in SimGear back to something that is
defined globaly in FlightGear, not a great strategy for a library with some
"general purpose" intentions.

17 years agoOSG Reader and Writer for BTG files
timoore [Sun, 29 Jul 2007 22:32:58 +0000 (22:32 +0000)]
OSG Reader and Writer for BTG files

This is part of a somewhat long road towards terrain database paging using
OSG's database pager thread.

17 years agoModified Files:
frohlich [Fri, 27 Jul 2007 19:27:24 +0000 (19:27 +0000)]
Modified Files:
simgear/math/SGGeoc.hxx: Fix unit conversion problem

17 years agoSimGear: Typo in Thanks file
timoore [Mon, 23 Jul 2007 22:00:31 +0000 (22:00 +0000)]
SimGear: Typo in Thanks file

Fix typo

Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
Committer: Tim Moore <moore@redhat.com>

17 years agoSimGear: Properly print compilers in configure.ac
timoore [Mon, 23 Jul 2007 21:45:11 +0000 (21:45 +0000)]
SimGear: Properly print compilers in configure.ac

Print $CC and $CXX using the proper configure.ac mechanism

Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
Signed-off-by: Tim Moore <timoore@redhat.com>
17 years agoAllow parallel make ("make -j2") by giving make the opportunity to
timoore [Sun, 22 Jul 2007 22:37:26 +0000 (22:37 +0000)]
Allow parallel make ("make -j2") by giving make the opportunity to
determine dependencies.

As in subdirectory foo/bar, $(top_builddir)/foo/bar is defined to be the
current directory, this does not cause any regressions.

From Hans Ulrich Niedermann (hun@n-dimensional.de)

17 years agoSupport for reading and writing nodes in .osg files, plus some new accessors.
timoore [Sun, 22 Jul 2007 20:06:20 +0000 (20:06 +0000)]
Support for reading and writing nodes in .osg files, plus some new accessors.

17 years agocoding style fixes
mfranz [Sun, 22 Jul 2007 13:58:26 +0000 (13:58 +0000)]
coding style fixes

17 years agoMaik JUSTUS: workaround for broken Doppler effect in OpenAL
mfranz [Sun, 22 Jul 2007 13:50:24 +0000 (13:50 +0000)]
Maik JUSTUS: workaround for broken Doppler effect in OpenAL

mf: this patch is meant to be removed as soon as OpenAL got fixed. (The
    OpenAL developers acknowleged the bug and announced that it'll get
    fixed.) For removal try
    $ cd simgear/sound
    $ cvs diff -rAFTER_OPENAL_DOPPLER_WORKAROUND -rBEFORE_OPENAL_DOPPLER_WORKAROUND|patch

17 years agoMaik JUSTUS: Doppler fixes (add option to turn off Doppler for sounds that
mfranz [Sun, 22 Jul 2007 13:33:23 +0000 (13:33 +0000)]
Maik JUSTUS: Doppler fixes (add option to turn off Doppler for sounds that
             shouldn't be affected -- marker beep, ATIS messages, etc.)

mf: this is the first part of the original patch. It is supposed to contain
    fixes that are not caused by OpenAL bugs, and thus aren't meant to be
    reverted later. The second part will contain a temprary workaround for
    OpenAL bugs. Unfortunately, I had to do the split myself as the contributor
    refused to do it.

17 years ago- close loophole through which one could sneak in illegal property names
mfranz [Tue, 17 Jul 2007 14:52:51 +0000 (14:52 +0000)]
- close loophole through which one could sneak in illegal property names
  containing slashes, colons and all sorts of evil characters. In Nasal
  this could be done via props.globals.getChild("1!@#$//[]{}", 0, 1).setValue(0);
  The cause is that getChild() hands the given name directly over to an
  alternative SGPropertyNode ("convenience") constructor which sets the
  name without any checks.
- unify exception messages: first character is lower case

17 years agoModified Files:
frohlich [Sun, 8 Jul 2007 08:43:40 +0000 (08:43 +0000)]
Modified Files:
simgear/route/route.hxx: Remove unused include.

17 years agoModified Files:
frohlich [Sun, 8 Jul 2007 08:43:15 +0000 (08:43 +0000)]
Modified Files:
simgear/route/waypoint.hxx simgear/route/waypoint.cxx: Use const
refs where possible.

17 years agoreplace exit() by throw sg_exception(). Of course, we have to be aware
mfranz [Mon, 2 Jul 2007 15:42:19 +0000 (15:42 +0000)]
replace exit() by throw sg_exception(). Of course, we have to be aware
that interdependencies between sg libs are generally unwelcome, but
sg_exception is a rather basic part, and it's already used by xml, props,
scene, sound and, of course, structure. Since props and xml are core
libs, we can assume that sg_exceptions are available.  (OK'ed by Curt)

17 years agoadd SG_ORIGIN macro that expands to a string __FILE__":"__LINE__
mfranz [Mon, 2 Jul 2007 12:55:10 +0000 (12:55 +0000)]
add SG_ORIGIN macro that expands to a string  __FILE__":"__LINE__
Note that __LINE__ is a number and can't be directly used in string
context, which makes the macro worthwhile. (IMHO :-)

17 years agoback out last changes (radar patch)
mfranz [Fri, 29 Jun 2007 22:45:37 +0000 (22:45 +0000)]
back out last changes (radar patch)

17 years agoeasyxml.cxx: add missing endXML visitor call
mfranz [Fri, 29 Jun 2007 10:46:52 +0000 (10:46 +0000)]
easyxml.cxx: add missing endXML visitor call
testEasyXML.cxx: beef it up

17 years agoVivian MEAZZA: add support for aircraft radar signatures
mfranz [Sun, 24 Jun 2007 08:09:07 +0000 (08:09 +0000)]
Vivian MEAZZA: add support for aircraft radar signatures

17 years agodon't only complain that the volume is larger than 1.0, but say how much
mfranz [Sat, 23 Jun 2007 16:48:01 +0000 (16:48 +0000)]
don't only complain that the volume is larger than 1.0, but say how much
it actually is

17 years agoMaik JUSTUS: fix/implement directional sound
mfranz [Thu, 21 Jun 2007 21:46:21 +0000 (21:46 +0000)]
Maik JUSTUS: fix/implement directional sound

17 years agod'oh ... beautify the TRACE message that we actually see! :-}
mfranz [Tue, 19 Jun 2007 18:22:32 +0000 (18:22 +0000)]
d'oh ... beautify the TRACE message that we actually see!  :-}

17 years agobeautify TRACE message
mfranz [Tue, 19 Jun 2007 18:11:06 +0000 (18:11 +0000)]
beautify TRACE message

17 years agosooner than planned: fix "scale" animation offsets (1 -> 0)
mfranz [Sun, 17 Jun 2007 21:01:40 +0000 (21:01 +0000)]
sooner than planned: fix "scale" animation offsets (1 -> 0)

17 years agoUpdate MSVC 7.1 projects
fredb [Sat, 16 Jun 2007 16:14:23 +0000 (16:14 +0000)]
Update MSVC 7.1 projects