ehofman [Sun, 9 Jan 2005 10:24:54 +0000 (10:24 +0000)]
Add support for binding a thread to a specific CPU (IRIX only at this time).
ehofman [Sat, 8 Jan 2005 11:47:19 +0000 (11:47 +0000)]
Frederic Bouvier:
It comes to me that the bulk of all problem reports, especially from Windows users, have it's cause in an obsolete sound driver. These messages should direct them to the right solution before complaining.
curt [Mon, 3 Jan 2005 19:05:32 +0000 (19:05 +0000)]
Updates for 0.3.8-pre2 release.
ehofman [Thu, 23 Dec 2004 13:32:01 +0000 (13:32 +0000)]
Melchior FRANZ:
My recent fix for the load/save fgfs.sav feature was a bit too ambitious.
While aliases lead to abortion before, I tried to copy them properly,
although this wasn't a requirement. Unfortunately, this seems to have
worked for absolute aliases only, not for relative ones, and hence broke
several panel instruments. The attached patch backs most of the previous
patch out again, and goes a simpler route: just ignore aliases.
ehofman [Sun, 19 Dec 2004 10:19:14 +0000 (10:19 +0000)]
Melchior FRANZ:
fgLoadFlight() loads a property file ("fgfs.sav") to a new property tree,
and then copies that over to the main tree. copyProperties() didn't know
how to handle type SGPropertyNode::ALIAS and hence threw an exception that
made fgfs abort.
The attached patch adds support for ALIAS to copyProperties(): aliased
nodes are created in the target tree if necessary, and then linked like in
the source tree. It seemed useful to add an optional argument to
props.[ch]xx/getType() that would indeed return the property type "ALIAS"
for aliased nodes, and not the type of the node that it refers to. The patch
also fixes a bug in writeNode() that caused extra lines after alias entries.
If there's resistance to the change to getType() (David?) I can easily use
isAlias(). This just makes copyProperties() a tad uglier, but I can live with
it. It's useful for scanning a tree, though, if an alias node can be treated
exactly like all other nodes, without automatic redirection.
ehofman [Sat, 18 Dec 2004 10:53:54 +0000 (10:53 +0000)]
gcc 4.0 fix.
ehofman [Thu, 16 Dec 2004 13:15:13 +0000 (13:15 +0000)]
Initialize volume to inaudiable at startup.
curt [Wed, 15 Dec 2004 16:45:57 +0000 (16:45 +0000)]
More prerelease updates.
curt [Wed, 15 Dec 2004 16:34:14 +0000 (16:34 +0000)]
Prerelease updates.
ehofman [Mon, 13 Dec 2004 20:31:44 +0000 (20:31 +0000)]
Threads detection code cleanup and FreeBSD fixes.
ehofman [Wed, 8 Dec 2004 15:12:11 +0000 (15:12 +0000)]
This was too quick, now pthreads isn't detected on IRIX (and other platforms?) anymore. This needs some more thought.
ehofman [Wed, 8 Dec 2004 15:00:45 +0000 (15:00 +0000)]
FreeBSD fix.
ehofman [Sun, 5 Dec 2004 09:36:49 +0000 (09:36 +0000)]
AIX fix
curt [Thu, 2 Dec 2004 15:08:54 +0000 (15:08 +0000)]
Oops, 2nd try ...
curt [Thu, 2 Dec 2004 15:00:26 +0000 (15:00 +0000)]
Martin Spott: Revised handling of missing isnan() on earlier versions of
FreeBSD.
curt [Wed, 1 Dec 2004 17:37:43 +0000 (17:37 +0000)]
Fix a typo for the Mac OSX platform.
curt [Sun, 21 Nov 2004 21:46:02 +0000 (21:46 +0000)]
Fix a dumb bug.
curt [Sun, 21 Nov 2004 21:45:35 +0000 (21:45 +0000)]
Fix a dumb bug for FreeBSD.
ehofman [Sun, 21 Nov 2004 17:05:42 +0000 (17:05 +0000)]
Melchior FRANZ:
At last I've found the reason why fgfs crashed routinely for me. When I still
used KDE's artsdsp (preloads lib with OSS replacement functions) I saw
this crash only occasionally. After letting OpenAl communicate with artsd
directly (by means of ~/.openalrc setting), I got the crash always when
I left fgfs.
This bug may also have crashed fgfs when running with sound daemons other than
aRts.
curt [Sun, 21 Nov 2004 03:13:54 +0000 (03:13 +0000)]
I don't understand why FreeBSD doesn't see isnan() after including math.h
but it doesn't. Trying the apple approach to fixing isnan results in an
infinite loop (making me wonder what happens on OSX?) This is an alternative
approach to checking isnan() on freebsd ...
curt [Sat, 20 Nov 2004 19:11:08 +0000 (19:11 +0000)]
FreeBSD fix.
ehofman [Sat, 20 Nov 2004 12:35:28 +0000 (12:35 +0000)]
MSVC fix.
curt [Fri, 19 Nov 2004 21:47:05 +0000 (21:47 +0000)]
Update a few more instances of my email address.
curt [Fri, 19 Nov 2004 21:44:16 +0000 (21:44 +0000)]
My old email address is no longer valid ... point to my web page.
curt [Thu, 18 Nov 2004 19:12:17 +0000 (19:12 +0000)]
Ooops, fix an unintentional line wrap.
curt [Thu, 18 Nov 2004 19:10:34 +0000 (19:10 +0000)]
Abstract out location of gl.h, glut.h, and glu.h includes so that we can
make the Mac platform happy since they put these in a different place compared
to the rest of the world.
andy [Wed, 17 Nov 2004 19:37:45 +0000 (19:37 +0000)]
Make sure that timer delay values are positive-definite, otherwise
user code that wants to use zero delay to mean "next frame" will get
stuck in an infinite loop.
ehofman [Sun, 24 Oct 2004 09:29:56 +0000 (09:29 +0000)]
Roy Vegard Ovesen:
I've added two new debug log types for the instrumentation and systems. They
used to use the autopilot debug log, because I couldn't figure out how to
make new log types. Well, now I have figured it out. ;-)
ehofman [Sun, 17 Oct 2004 17:06:50 +0000 (17:06 +0000)]
Frederic Bouvier:
This is a patch to make display list usage optional. They are on by default.
Use --prop:/sim/rendering/use-display-list=false to use immediate mode.
There is also a change in exception handling in main.cxx and bootstrap.cxx
ehofman [Sat, 16 Oct 2004 12:23:53 +0000 (12:23 +0000)]
Roy Vegard Ovesen:
I'm working on a route manager in the GPS module. So I've added a name
parameter to the waypoint class in Simgear. I use the existing ID parameter
to store the ID, for example KLAX, and the name parameter to store the name,
San Francisco Intl.
ehofman [Thu, 14 Oct 2004 13:35:11 +0000 (13:35 +0000)]
Remove the refference to fgsg
curt [Wed, 13 Oct 2004 20:18:35 +0000 (20:18 +0000)]
Fix a couple bugs in openal detection. I should actually generate a new
configure and test it, rather than testing the old configure script.
curt [Wed, 13 Oct 2004 19:52:13 +0000 (19:52 +0000)]
Oops, missed a part of the previous change.
curt [Wed, 13 Oct 2004 19:51:38 +0000 (19:51 +0000)]
Add a sanity check for the existance of OpenAL. If not there, bail from
the configure script with an appropriate/helpful message.
curt [Tue, 12 Oct 2004 14:35:42 +0000 (14:35 +0000)]
Final 0.3.7 changes.
ehofman [Mon, 11 Oct 2004 07:56:08 +0000 (07:56 +0000)]
Fix a typo.
ehofman [Mon, 11 Oct 2004 07:37:42 +0000 (07:37 +0000)]
Frederic: Ignore display lists when using the blend animation.
ehofman [Sun, 10 Oct 2004 19:38:46 +0000 (19:38 +0000)]
Adding the panel was a step too far for Linux, causing a segfault.
ehofman [Sun, 10 Oct 2004 19:16:25 +0000 (19:16 +0000)]
Remove a phantom makeDList call (probably an old one from my code.
ehofman [Sun, 10 Oct 2004 19:05:25 +0000 (19:05 +0000)]
Check for the plib version when using display lists, just to be sure.
ehofman [Sun, 10 Oct 2004 18:43:11 +0000 (18:43 +0000)]
Frederic: Include FGPanelNode in the display list generation process.
ehofman [Sun, 10 Oct 2004 17:49:27 +0000 (17:49 +0000)]
Frederic: Use display lists for 3d models also.
ehofman [Wed, 6 Oct 2004 09:57:31 +0000 (09:57 +0000)]
Reverse the declaration order. jpgRenderFrame (formerly known as trRenderFrame) is now declared as a NULL function pointer and assignment of the proper function is now done in FlightGear (jpgRenderFrame=FGRenderer::update).
ehofman [Thu, 30 Sep 2004 09:43:11 +0000 (09:43 +0000)]
David Luff:
The one-liner removes a lot of re-definition warnings on Cygwin.
ehofman [Sun, 19 Sep 2004 09:08:12 +0000 (09:08 +0000)]
Small update for future use.
curt [Wed, 15 Sep 2004 15:28:58 +0000 (15:28 +0000)]
Expose the size() method for locked and blocking thread queues.
curt [Wed, 15 Sep 2004 15:28:14 +0000 (15:28 +0000)]
Fix another case where the direction vector is not initialized which can
lead to openal "inrange" assertions, crashing FlightGear.
curt [Fri, 10 Sep 2004 20:44:42 +0000 (20:44 +0000)]
direction vector needs to be initialized, otherwise garbage data could cause
openal to generate an assertion, aborting the top level app.
curt [Fri, 10 Sep 2004 18:16:06 +0000 (18:16 +0000)]
Tweaks for 0.3.7-pre1
curt [Fri, 10 Sep 2004 15:57:52 +0000 (15:57 +0000)]
Add support for parsing an xml stream from an in memory buffer, rather than
just from a specified file name.
ehofman [Wed, 8 Sep 2004 11:15:57 +0000 (11:15 +0000)]
Add support for audio orientation: direction and cone definition. This currently only works for internal view and tower view because those set the listener position correctly.
ehofman [Thu, 19 Aug 2004 12:18:20 +0000 (12:18 +0000)]
Remove a left over of ancient times.
ehofman [Tue, 17 Aug 2004 08:31:51 +0000 (08:31 +0000)]
this simple patch will enable the direct use of Point3D::get_n() instead of making duplications to call sgCartToGeod
ehofman [Tue, 17 Aug 2004 08:28:35 +0000 (08:28 +0000)]
this simple patch will prevent to have fog in Clear cload layers.
ehofman [Sun, 15 Aug 2004 09:24:12 +0000 (09:24 +0000)]
change the log level of the initialization of OpenAL. This prevent a console popup for no reason on Windows.
curt [Thu, 29 Jul 2004 21:36:41 +0000 (21:36 +0000)]
Tweaks for official 0.3.6 release.
ehofman [Thu, 29 Jul 2004 08:30:10 +0000 (08:30 +0000)]
Make gcc 2.95.* compile again.
ehofman [Wed, 28 Jul 2004 14:13:16 +0000 (14:13 +0000)]
Use the SimGear default notation.
ehofman [Wed, 28 Jul 2004 13:59:57 +0000 (13:59 +0000)]
IRIX fixes (at least).
ehofman [Wed, 28 Jul 2004 13:16:54 +0000 (13:16 +0000)]
IRIX fix (at least).
curt [Tue, 27 Jul 2004 21:18:14 +0000 (21:18 +0000)]
Tweaks for 0.3.6-pre3
curt [Sat, 24 Jul 2004 19:21:15 +0000 (19:21 +0000)]
Fix a minor warning message.
ehofman [Thu, 22 Jul 2004 08:04:18 +0000 (08:04 +0000)]
Correct a typo that produces segfault during cleanup on some systems.
curt [Wed, 21 Jul 2004 21:22:21 +0000 (21:22 +0000)]
Tweaks for 0.3.6-pre2
ehofman [Wed, 21 Jul 2004 10:52:40 +0000 (10:52 +0000)]
Frederic Bouvier:
I just discovered this : state() is not valid when _level==0,
because it is doing:
{ return _state_stack[_state_stack.size() - 1]; }
and is returning a wrong index fetch ( 0 - 1 ) == -1
Moreover, st is not used when _level==0 so the line can be moved
to a safer place.
ehofman [Mon, 19 Jul 2004 14:59:51 +0000 (14:59 +0000)]
Test for alutInit in libopenal.so and in libalut.so for Cygwin builds.
ehofman [Sat, 17 Jul 2004 14:01:00 +0000 (14:01 +0000)]
alut is now part of libopenal.so
ehofman [Fri, 16 Jul 2004 21:00:46 +0000 (21:00 +0000)]
Weak excuse, but it's getting late. Do clipping right this time.
ehofman [Fri, 16 Jul 2004 20:36:01 +0000 (20:36 +0000)]
Clip to volume to 1.0 if necessary.
curt [Wed, 14 Jul 2004 22:01:15 +0000 (22:01 +0000)]
Tweaks in preparation for the 0.3.6-pre1 release.
ehofman [Mon, 5 Jul 2004 16:39:02 +0000 (16:39 +0000)]
Make sure that a directory name containing a '.' doesn't screw up the ::base() and ::extension() functions.
ehofman [Mon, 5 Jul 2004 13:40:37 +0000 (13:40 +0000)]
Remove the need to append a trailing / to the texture-path string.
ehofman [Mon, 5 Jul 2004 11:42:19 +0000 (11:42 +0000)]
Allow the use of a <texture-path/> tag to specify the directory containing the textures for this model.
ehofman [Sat, 3 Jul 2004 11:16:53 +0000 (11:16 +0000)]
Use #elif instead of #else if
ehofman [Sat, 3 Jul 2004 10:59:00 +0000 (10:59 +0000)]
Frederic Bouvier:
I have 3 issues that are fixed by this set of patches.
1. In extensions.cxx
#else if !defined( WIN32 ) must be changed by
#elif !defined( WIN32 ) because the text after #else
seems to be ignored
2. banner is not available on windows, only cygwin
3. ANSI escape sequences are not interpreted on the
windows console. We just have garbage that is hard
to read.
curt [Thu, 1 Jul 2004 19:05:37 +0000 (19:05 +0000)]
If we pass in a position or velocity of nan, openal will generate an assertion.
Under rare circumstances we could encounter a non-cooperative external fdm
that could trigger this condition. This patch catches the problem and returns
rather than letting FG get killed.
ehofman [Sun, 27 Jun 2004 08:09:56 +0000 (08:09 +0000)]
Some small updates.
ehofman [Sun, 27 Jun 2004 07:49:40 +0000 (07:49 +0000)]
Work around a broken dlopen/dlclose Linux implementation.
ehofman [Fri, 25 Jun 2004 10:59:59 +0000 (10:59 +0000)]
Frederic Bouvier:
this patch correct the cloud repositionning that
made them going against the wind. Now the clouds
and the windsock show the same direction.
david [Tue, 15 Jun 2004 12:47:52 +0000 (12:47 +0000)]
Ignore generated files.
ehofman [Sun, 13 Jun 2004 11:59:36 +0000 (11:59 +0000)]
Be a bit anoying (and a tad more descriptive) about OpenAL volume errors for some time.
ehofman [Sat, 12 Jun 2004 21:03:45 +0000 (21:03 +0000)]
Frederic Bouvier:
Do state sorting by material before adding primitives
in the tile branch. I thought I could see a bit of
improvement in framerate but it is not the case on my setup.
I don't see a degradation though
ehofman [Mon, 7 Jun 2004 18:49:32 +0000 (18:49 +0000)]
Frederic Bouvier:
I am still experimenting with the
code. Here is so far the best I could achieve. The
dark aspect of clouds at dusk or dawn is far better
than the problems of transparency of the previous
version.
ehofman [Mon, 7 Jun 2004 12:43:29 +0000 (12:43 +0000)]
MingW fix.
ehofman [Mon, 7 Jun 2004 09:50:32 +0000 (09:50 +0000)]
Add an 'add(str)' function that adds a search path separator and appends the str.
ehofman [Fri, 4 Jun 2004 16:59:12 +0000 (16:59 +0000)]
Tweak the doppler effect.
ehofman [Fri, 28 May 2004 08:42:59 +0000 (08:42 +0000)]
Revert the previous patch. There was already a class availble that allows for that. It's just that the description doesn't explain too much.
ehofman [Thu, 27 May 2004 18:00:03 +0000 (18:00 +0000)]
Tweak the bump-mapped 2d cloud color a bit.
ehofman [Thu, 27 May 2004 13:03:01 +0000 (13:03 +0000)]
Add the possibillity to parse a user data pointer to getter and satter functions. This adds a convenient way to get the 'this' pointer to the static functions.
ehofman [Tue, 25 May 2004 07:58:33 +0000 (07:58 +0000)]
Use a different coloring scheme.
ehofman [Fri, 21 May 2004 16:27:16 +0000 (16:27 +0000)]
MacOSX fix that never got applied before.
ehofman [Fri, 21 May 2004 15:07:25 +0000 (15:07 +0000)]
mingw32 fix
ehofman [Fri, 21 May 2004 14:50:49 +0000 (14:50 +0000)]
Updates from Frederic to use 2 texture units and a color blend function rather than 3 texture units.
ehofman [Thu, 20 May 2004 14:18:15 +0000 (14:18 +0000)]
Frederic Bouvier:
Melchior spotted a problem where we can crash an airplane into the
beacon's beam. The patch below enable to mask out a branch from HOT
traversal, whatever the animation.
The beacon.xml file is also included. It has a
<enable-hot type="bool">false</enable-hot> in a halo branch
ehofman [Thu, 20 May 2004 14:02:40 +0000 (14:02 +0000)]
Make sure there will be no previous declaration errors.
ehofman [Thu, 20 May 2004 13:24:48 +0000 (13:24 +0000)]
Patch from Frederic. Adds support for bump-mapped (multi textured) 2d clouds, includeing support code.
ehofman [Sat, 15 May 2004 12:45:51 +0000 (12:45 +0000)]
Fred: include more check against null pointers and a raise in log level for missing objects.
ehofman [Fri, 14 May 2004 19:46:12 +0000 (19:46 +0000)]
Solve the endless loop problem for the DC-3 and prevent a potential segmentation fault.
curt [Fri, 14 May 2004 15:47:01 +0000 (15:47 +0000)]
Add a function to globally set volume (aka AL_GAIN)
curt [Tue, 11 May 2004 22:39:21 +0000 (22:39 +0000)]
Oops, fix a typo.