ehofman [Fri, 28 Jan 2005 09:32:57 +0000 (09:32 +0000)]
MSVC fixes
ehofman [Thu, 27 Jan 2005 17:49:22 +0000 (17:49 +0000)]
Fix an NVIDIA problem.
ehofman [Thu, 27 Jan 2005 10:56:22 +0000 (10:56 +0000)]
Add a RenderTexture test program.
ehofman [Thu, 27 Jan 2005 10:47:09 +0000 (10:47 +0000)]
Melchior FRANZ:
If alcOpenDevice( NULL ) is NULL, then context is never assigned a
value, and it's pointless to ask for it in the next "if". But as the
ALCcontext that context points to doesn't seem to be fully defined
(OpenAL bug), valgrind still complains ...
Erik Hofman:
Extend this some further and define context=0 otherwise and check for
context != 0 before using it.
ehofman [Thu, 27 Jan 2005 10:42:31 +0000 (10:42 +0000)]
Melchior FRANZ:
Trying to find the bug in tower.cxx (that crashes fgfs quite frequently
for me!), I'm playing with valgrind again. Until I'm in the ATC subsystem
there will be some other bugs and nitpicking along the way.
valgrind doesn't like that imgage->tmp is once allocated with new and
once with new[], sometimes with malloc() (via map), and sometimes freed
with delete (not delete[]!) and sometimes with free(). With simple types
such as GLubyte this shouldn't really make a difference, but anyway.
Also, I promised that I'd send patches for "if (foo) delete foo;" as
I'm making other changes to concerned files. texture.cxx is one with a
few occurrences thereof. (Remember: C++ explicitly allows to delete
null-pointers, so this check is redundant, and hence not tolerated in
other projects, such as KDE. Doesn't have to impress us, of course. :-)
Also, fixes 4 signed/unsigned warnings (gcc 3.3.4)
ehofman [Thu, 27 Jan 2005 10:39:15 +0000 (10:39 +0000)]
Add Mark Haris' RenderTexture class based on SimGear's extesion support files.
andy [Tue, 25 Jan 2005 22:37:22 +0000 (22:37 +0000)]
Move error handling in setupFuncall above the stack frame creation.
The error properly belongs to the enclosing scope, not the called
(non-)function. This bug was fixed a few months back in my private
tree, but Melchior just discovered that the new Concorde scripts
tickle it. I really need to re-synchronize SimGear with my own Nasal
tree...
ehofman [Tue, 25 Jan 2005 18:33:59 +0000 (18:33 +0000)]
Add a bunch of extensions in preparation of render-to-texture support.
curt [Mon, 24 Jan 2005 21:46:12 +0000 (21:46 +0000)]
Frederic Bouvier:
The Beaver triggered a problem ( uninitialized variable ). Here is the updated
code.
curt [Mon, 24 Jan 2005 19:49:35 +0000 (19:49 +0000)]
Frederic Bouvier:
this is the animation code that do randomisation of the spin animation. The XML tags are modified to support the syntax below :
<use-personality type="bool">true</use-personality>
<factor>
<random>
<min>1.8</min>
<max>2.2</max>
</random>
</factor>
<starting-pos-deg>
<random>
<min>0</min>
<max>360</max>
</random>
</starting-pos-deg>
instead of usual :
<factor>1.42</factor>
<starting-deg-pos>42.0</starting-deg-pos>
ehofman [Mon, 24 Jan 2005 15:51:37 +0000 (15:51 +0000)]
Erik Hofman
1. Remove the dependency on alut which (on certein platforms) might pose
some restrictuons on commercial use.
2. Create a sound source just prior to playing the sound and destroy it
again when the sound has stopped. This should greatly reduce the
error reports from Windows users.
ehofman [Thu, 20 Jan 2005 09:28:04 +0000 (09:28 +0000)]
Melchior FRANZ:
The following patches to SimGear & FlightGear ...
- create an FGMetar abstraction layer, whose purpose is:
* provide defaults for unset values
* interpolate/randomize data (GREATER_THAN)
* derive additional values (time, age, snow cover)
* consider minimum identifier (CAVOK, mil. color codes)
- add rain/hail/snow/snowcover support on the METAR side
- add max age of METAR data handling (currently set to
- add support for an external METAR cache proxy server
- add CAVOK handling
- set missing year/month in regular METAR messages
- fix a small bug in metar.cxx (wrong return value)
curt [Tue, 18 Jan 2005 14:34:13 +0000 (14:34 +0000)]
Ready for 0.3.8 release.
curt [Mon, 17 Jan 2005 21:48:05 +0000 (21:48 +0000)]
Require plib-1.8.4
ehofman [Sun, 16 Jan 2005 08:52:22 +0000 (08:52 +0000)]
Use the double precission pow() function to get Solaris compiling.
ehofman [Sat, 15 Jan 2005 14:24:28 +0000 (14:24 +0000)]
Solaris fix
ehofman [Sat, 15 Jan 2005 14:22:56 +0000 (14:22 +0000)]
Solaris fix.
ehofman [Sat, 15 Jan 2005 14:18:30 +0000 (14:18 +0000)]
MingW/MSYS fix
ehofman [Sat, 15 Jan 2005 11:57:34 +0000 (11:57 +0000)]
Eliminate some compiler warnings about converting float to int.
ehofman [Sat, 15 Jan 2005 10:48:40 +0000 (10:48 +0000)]
Add a make_bumpmap and a make_maxcolorwindow function, modify the make_normalmap function to maximize the color window before proceding.
ehofman [Fri, 14 Jan 2005 15:52:56 +0000 (15:52 +0000)]
Add support for contrast.
ehofman [Fri, 14 Jan 2005 14:27:57 +0000 (14:27 +0000)]
little endian fixes.
ehofman [Fri, 14 Jan 2005 13:36:38 +0000 (13:36 +0000)]
Add a make_grayscale function and call it from make_normalmap automatically, removing the need to do it make_grayscale prior to calling make_normalmap.
ehofman [Fri, 14 Jan 2005 13:12:44 +0000 (13:12 +0000)]
Fix a mistake.
ehofman [Fri, 14 Jan 2005 13:08:57 +0000 (13:08 +0000)]
Add a function to calculate the normalmap from a regular texture.
ehofman [Fri, 14 Jan 2005 10:12:00 +0000 (10:12 +0000)]
RGBA textures can be made monochrome also
ehofman [Fri, 14 Jan 2005 10:09:21 +0000 (10:09 +0000)]
Fix a few bugs and add a make_monochrome() function
ehofman [Thu, 13 Jan 2005 18:35:56 +0000 (18:35 +0000)]
Some small updates to the saving code.
ehofman [Thu, 13 Jan 2005 18:05:46 +0000 (18:05 +0000)]
Fix a crash situation.
ehofman [Thu, 13 Jan 2005 14:47:31 +0000 (14:47 +0000)]
Update the code a bit more, add a function to retreive the last error string and add a function to write SGI texture fils.
curt [Tue, 11 Jan 2005 16:02:39 +0000 (16:02 +0000)]
- Fix a couple oops's in cloud.cxx
- In sky.cxx blend low density cloud layers (few/scattered) into nothing (but
don't touch visibility distance) as we approach them so we can fly through
clean.
- For high density cloud layers (broken/overcast) we do not fade the layers
out, but we fade visibility to nearly nothing as we approach the layer.
curt [Tue, 11 Jan 2005 15:21:58 +0000 (15:21 +0000)]
Add a method to SGCloudLayer to set overall cloud alpha. This gives us the
capability to slowly fade a cloud layer in or out.
We use this effect in combination with lowering visibility as we approach
a cloud layer to hide the fact that it is simply a 2d textured polygon being
drawn across the sky.
david [Mon, 10 Jan 2005 23:34:52 +0000 (23:34 +0000)]
Do not reduce visibility when passing through a 'few' or 'scattered'
cloud layer (i.e. <50% coverage). This is a quick hack rather than a
proper fix, but it will at least make it possible to get above a
scattered layer VFR.
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