Commit Graph
100 Commits
Author SHA1 Message Date
curt 7c60ccfc35 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 ...
2004-11-21 03:13:54 +00:00
curt 84cba33aab FreeBSD fix. 2004-11-20 19:11:08 +00:00
curt f30c4720ae Update a few more instances of my email address. 2004-11-19 21:47:05 +00:00
curt 7fc8c02688 My old email address is no longer valid ... point to my web page. 2004-11-19 21:44:16 +00:00
curt 54a7a0d534 Ooops, fix an unintentional line wrap. 2004-11-18 19:12:17 +00:00
curt 8d73160a75 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.
2004-11-18 19:10:34 +00:00
curt 06f3cb4f8e Fix a couple bugs in openal detection. I should actually generate a new
configure and test it, rather than testing the old configure script.
2004-10-13 20:18:35 +00:00
curt 074f5ff996 Oops, missed a part of the previous change. 2004-10-13 19:52:13 +00:00
curt 8c26f32d5f Add a sanity check for the existance of OpenAL. If not there, bail from
the configure script with an appropriate/helpful message.
2004-10-13 19:51:38 +00:00
curt 9a2ee54389 Final 0.3.7 changes. 2004-10-12 14:35:42 +00:00
curt 4820d57fa8 Expose the size() method for locked and blocking thread queues. 2004-09-15 15:28:58 +00:00
curt 04e3b0b3c1 Fix another case where the direction vector is not initialized which can
lead to openal "inrange" assertions, crashing FlightGear.
2004-09-15 15:28:14 +00:00
curt a7f78b9f68 direction vector needs to be initialized, otherwise garbage data could cause
openal to generate an assertion, aborting the top level app.
2004-09-10 20:44:42 +00:00
curt f3d8eb4665 Tweaks for 0.3.7-pre1 2004-09-10 18:16:06 +00:00
curt 090f79b951 Add support for parsing an xml stream from an in memory buffer, rather than
just from a specified file name.
2004-09-10 15:57:52 +00:00
curt 461dee8657 Tweaks for official 0.3.6 release. 2004-07-29 21:36:41 +00:00
curt e2f93e6ae1 Tweaks for 0.3.6-pre3 2004-07-27 21:18:14 +00:00
curt 93314b59fb Fix a minor warning message. 2004-07-24 19:21:15 +00:00
curt 3c84b6e2f6 Tweaks for 0.3.6-pre2 2004-07-21 21:22:21 +00:00
curt 129e3c6326 Tweaks in preparation for the 0.3.6-pre1 release. 2004-07-14 22:01:15 +00:00
curt a7b35c6e22 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.
2004-07-01 19:05:37 +00:00
curt 0489ad7c62 Add a function to globally set volume (aka AL_GAIN) 2004-05-14 15:47:01 +00:00
curt c553570533 Oops, fix a typo. 2004-05-11 22:39:21 +00:00
curt bda112297f Frederic Bouvier:
I was not very happy with the size of the halo, so
I created a new animation to control it. Now we can
control the scale value with the distance from the
viewer to the object. The towers are now beginning to
look good. They might need some tuning though. If
you want to play, locate in radio-*.xml this code :

 <animation>
  <type>dist-scale</type>
  <object-name>RedLight.2</object-name>
  <interpolation>
   <entry><ind>0</ind><dep>0.1</dep></entry>
   <entry><ind>500</ind><dep>0.3</dep></entry>
   <entry><ind>16000</ind><dep>3</dep></entry>
  </interpolation>
 </animation>

You get the idea ? ind is the distance, dep is the
resulting scale value.
The medium tower appears brighter than the tall one,
because the lights are closer to each other. Maybe
they need a smaller scale factor at distance. Feel
free to modify these values if you find a better
setup.

About the code : I renamed flash to custtrans because the
ssg branch is now less specialized. It needs a callback
to compute the so called 'custom transformation'. It can
be used for the SGFlashAnimation and the new
SGDistScaleAnimation. So please cvs remove flash.[ch]xx and
add custtrans.[ch]xx. I also undo some of the code I send
you yesterday that was totally useless. It is replaced by
something simpler and that works.

There is also a patch to matmodel.cxx. This is not related
and was something I forgot. Its purpose is to set the
alpha test on material billboard models that are likely to
be trees to lessen a transparency weird effect with clouds.
2004-05-11 22:21:24 +00:00
curt 331a4e4406 I had overlooked a few memory allocation/deallocation issues for audio buffers.
Hopefully this helps clean those up.
2004-05-10 21:22:50 +00:00
curt a9faf8ceff Frederic Bouvier:
I modified the included animation.cxx to have a randomly displaced
time origin, to break the unison. And the flashing period is also
random as you noticed. I also put all the flashing light of the pole
in the same animation so they flash in the same rhythm.
2004-05-10 20:27:30 +00:00
curt 2866d1ace9 Frederic Bouvier:
Fix a memory leak, and brownian animation, if not motion.

I have 2 new files : personality.[ch]xx . They store the personality
data that would be deleted when the object is destroyed, instead
of staying in the animation maps. I also manage the current animation
step better and the towers are not flashing randomly now.
Makefile.am is updated.
2004-05-10 14:59:02 +00:00
curt 11a74f7a31 Frederic Bouvier:
modellib.cxx :
  Add a branch between the model and its transformation to add
 a unique identifier for the model. I called it "personality
 branch" and it maintains a "current_object" in SGAnimation.
 Animations specifically written to support it ( currently only
 the timed animation ) can add a degree of variety among the
 occurrences of the same model that would look otherwise cloned.

flash.[ch]xx :
  Better compute the view vector. The flash is now syncronized with
 its axis even at the edge of the screen.

animation.[ch]xx :
  Lots of changes :
 - add a condition to 'rotate', 'spin', 'translate' and 'range'.
  When a condition is specified *and* it evaluates to false, the
  animation becomes a no-op. Possible usage : no rotation during
  daylight, LOD range variable along the day, ...

 - use different durations for each branch in the timed animation.
  Enable the use of multiple <branch-duration-sec>, one for each
  <object-name> specified. Usage : strobes with flash light.

 - allow randomization of the <branch-duration-sec>, by using
  <random><min>_min_value_</min><max>_max_value_</max></random>.
  The value computed once is between _min_value_ and _max_value_.

 - implement model personality in timed animation. If
  <use-personality type="bool">true</use-personality> is specified,
  a different set of duration is created for every model in the
  scenegraph using this animation. Best if used with randomization.
  When using strobes where the population of the same object is
  dense, it avoids the "cheasy" clone effect.
2004-05-10 14:35:58 +00:00
curt 9f06c8df76 Hopefully fix a chicken/egg linking problem for people who've never built
or installed simgear before.
2004-04-29 21:14:44 +00:00
curt 6e511de7db Add support for specifying a positional offset relative to the listener.
This allows us to "place" cockpit sounds.  For example, we can make left
engine sound come out of the left speaker, right engine out the right
speaker, etc.
2004-04-28 20:37:49 +00:00
curt e34aae9982 Add default openal libs for cygwin. 2004-04-28 19:19:05 +00:00
curt 675b388b8e Lower verbosity level. 2004-04-28 03:59:10 +00:00
curt 7d239fe4ac Expose the ability to specify how the sound volume fades relative to
distance from the listener.  This let's us configure "interior" cockpit
sounds versus "exterior" engine type sounds.
2004-04-28 03:57:13 +00:00
curt edd92caba1 Tweak default source audio parameters. 2004-04-27 21:11:21 +00:00
curt 5c3b4abf42 Expose some of the positional components of the OpenAL API. 2004-04-27 20:45:58 +00:00
curt 4399383781 Oops, one addtional tweak. 2004-04-26 22:07:19 +00:00
curt bb383998bb Update the SoundSample api so we can request that a copy of the sample be
kept in memory and accessible.
2004-04-26 22:02:14 +00:00
curt ffeb174ca1 Give these two methods slightly less misleading names. 2004-04-26 16:17:21 +00:00
curt a90d74dde8 David Luff:
Fix comments for two functions.
2004-04-26 15:55:29 +00:00
curt 9d7fd79e76 Missed one fix for Mac OS. 2004-04-26 14:55:27 +00:00
curt 6f29d234eb Lower the verbosity in a couple other spots. 2004-04-25 02:30:52 +00:00
curt 6f5517f602 Lower verbosity. 2004-04-25 02:02:35 +00:00
curt cc43c745b2 Add support for the MacOS variations of OpenAL. 2004-04-25 01:48:08 +00:00
curt db8d961b27 Add correct openal libs for MacOS. 2004-04-25 01:41:24 +00:00
curt a0bdec2846 Clamp pitch values rather than just dumping an error message. 2004-04-24 19:47:42 +00:00
curt 5bbcd386fa Rewrite the entire audio support library on top of OpenAL rather than plib's
sound manager.  The interface was simplified and cleaned up a bit, and I
haven't back ported these changes to the plib sound wrappers ... we could
I suppose if someone really had a problem, but I haven't seen anything so
far that would indicate the extra effort is worth it.
2004-04-24 19:02:29 +00:00
curt 7657632024 Bernie Bright:
gcc 3.4 has changed the rules for unqualified template name lookup.  This
affects SGQueue.hxx.  The changes I've made are backwards compatible with
earlier gcc versions.  Everything else compiles pretty much okay except for a
few warnings.  The resultant executable seems a bit faster too.
2004-04-22 12:39:16 +00:00
curt 5c26faa20e Clean up several stray warnings that have accumulated. 2004-04-01 13:47:02 +00:00
curt bd85fa2457 Final 0.3.5 tweaks. 2004-03-26 21:07:15 +00:00
curt 430136fdc9 0.3.5.pre2 tweaks. 2004-03-24 00:19:59 +00:00
curt 488efa2316 Tweaks for 0.3.5.pre1 release. 2004-03-22 19:12:23 +00:00
curt 44551dad2d Better color component sanity checking. 2004-03-22 19:12:07 +00:00
curt 25d7705379 Various changes in preparation for the 0.3.5 release. 2004-03-17 04:22:09 +00:00
curt a460c753e7 Work around a limitation of gc_calc_course_dist(). When the start and end
points are too close together, this routine can return a course of "nan"
but the distance is valid.  Someday someone who understands the math should
rewrite the gc_calc_course_dist() routine so it is more robust, but for now
it's easiest to simply check for a nan result and code around the limitation.
2004-03-03 21:37:41 +00:00
curt 9f59e956fa #define isnan _isnan for MSVC and Mingwin. 2004-03-03 21:35:38 +00:00
curt 79d72b6292 Add front() methods SGQueue, SGLockedQueue, and SGBlockingQueue so that the
can be used more interchangably with a regular STL queue.
2004-02-28 18:51:20 +00:00
curt 99bf2c6f9e Comment out an improperly written constructor. 2004-02-23 01:34:31 +00:00
curt 828e10773c Fix a slight ambiguity in variable names. 2004-01-31 19:50:35 +00:00
curt b2a7975493 Frederic BOUVIER:
Win32 serial port communication fixes.
2004-01-27 15:55:47 +00:00
curt 65a49bb6e4 Oops, I originally had ramped the vasi/papi color transition the wrong way.
So as you passed through the target glide slope from low to high it would
be colored: red -> white -> small range of transition to red -> white.
Now it goes the right way so you get: red -> smooth transition to -> white.
You can tell you are getting high if you see the bottom vasi start to turn
pink ... etc. etc. hopefully just like in real life.
2004-01-16 17:37:05 +00:00
curt 84fd7a49ad The emissive values just don't seem like the right thing to do. You suddenly
see the dark side of the moon quite clearly, which usually isn't the case.

The rest of the moon still seems a bit oversaturated right now ...
2004-01-14 18:02:58 +00:00
curt 24b5f05522 Make the vasi lights slightly larger/brighter. 2004-01-09 16:49:13 +00:00
curt 7bee5f1ab6 Smarter vasi coloring. 2003-12-30 07:04:05 +00:00
curt a43f5c8d21 Track some additional data required for computing vasi/papi colors. 2003-12-30 05:53:50 +00:00
curt 8361069344 Go with an all white texture for vasi/papi lights. We will vary the
background color externally to change from white to red.
2003-12-30 05:53:03 +00:00
curt 5812571df4 Attempt to fix a bug in SGSocket::read() affecting TCP style sockets. 2003-11-27 13:24:26 +00:00
curt 983685fde3 rename libnasal.a to libsgnasal.a to match the existing SimGear library
naming convention.
2003-11-25 22:49:02 +00:00
curt 34e2a9dc37 Nasal and event manager updates from Andy Ross. 2003-11-25 21:26:01 +00:00
curt 1786692406 Version 1.3 of Andy Ross's "NASAL" embedded scripting language. 2003-11-25 20:16:28 +00:00
curt d915ccec6e Updates for the official 0.3.4 version. 2003-10-22 19:21:24 +00:00
curt db928ea1ae Various updates for the upcoming 0.3.4 release. 2003-10-15 20:15:29 +00:00
curt bb002356b4 Fix a stragling left over reference to metakit. 2003-10-15 20:01:41 +00:00
curt e0ba803ca9 A couple changes to allow separate handling of VASI/PAPI lights which
generally are turned on all the time.
2003-09-24 19:56:51 +00:00
curt f3eeeb760f Various tweaks to handling taxiway lighting. 2003-09-23 23:06:50 +00:00
curt 1cf13a7c1a Fix some lighting values. 2003-08-31 03:12:27 +00:00
curt 699909f808 Remove metakit from src-libs, remove metakit check from configure script,
remove README.metakit.
2003-08-29 04:19:56 +00:00
curt c0a633ea1d Give calc_tex_coords() a more conformant name: sgCalcTexCoords() 2003-08-19 02:08:16 +00:00
curt 110e01a861 Remove extraneous/unneeded dependencies on glut. SimGear should no longer
have any glut dependies.
2003-08-11 21:16:53 +00:00
curt 578e774778 Remove "glut" dependency.
- SkyContext.[ch]pp needs to query the window size, but apparently doesn't
  do anything with it.  We can hard wire a size and the cloud code seems to
  behave fine.

- SkyLight.[ch]pp depends on glut_shapes so I copied over the code so it
  can access those routines locally.  (The routines that are used are
  simply combining calls to libGLU.a
2003-08-11 21:14:48 +00:00
curt d7d13e458c Oops, it doesn't do much good to declare a function as "static" in the .hxx 2003-08-11 19:42:08 +00:00
curt 0bf579cf27 Only use the ";" delimiter under WIN32 2003-08-09 02:54:15 +00:00
curt 77cefa924c Add a routines that takes a search path (separated by sgSearchPathSep) and
seperates them into a vector of strings which it then returns.
2003-08-08 19:54:49 +00:00
curt 32067b9adf Changed "GL/glut.h" to <GL/glut.h> 2003-08-05 14:45:42 +00:00
curt 6dc243e1af Actually commit the code changes which impliment a "scale" animation type. 2003-07-25 14:48:02 +00:00
curt 1f4b55e98e Attempt to get these files back to a compilable state. 2003-07-11 17:50:32 +00:00
curt db1966c156 A couple more sanity checking tweaks for texture freeing. 2003-07-09 20:58:39 +00:00
curt 7f4f778bb1 Explicitely initialize planets. 2003-06-26 17:13:27 +00:00
curt 70f763dbe0 - Tweaks to doxygen main page.
- Added documentation for SGCloudLayer
- Updated the SGSky interface a bit to make it more sensible, flexible,
  and generic.  This requires a code tweak on the FlightGear side as well.
2003-06-11 18:55:36 +00:00
curt f8201e6478 Make sky dome scaling values sensible (i.e. the sky dome will now fill up
the dimensions provided.)  We draw the sky dome before everything else
  and draw it with depth buffer off so it really doesn't matter, but it just
  makes a little more sense this way.
Updated a few doxygen comments.
2003-06-09 20:19:52 +00:00
curt 27f98d24eb Various 0.3.3 last minute tweaks. 2003-06-03 18:48:49 +00:00
curt 51ef4568dd Various documentation tweaks and additions. 2003-06-03 18:32:51 +00:00
curt 4c731de8b7 Tweaks to doxygen comments. 2003-06-03 18:22:10 +00:00
curt cedfade08d Updated dsp/dsw files for MSVC. 2003-06-02 20:11:43 +00:00
curt eedbc7f436 Tweaks for the 0.3.2 release. 2003-06-02 19:58:49 +00:00
curt b6a683eb6e Fix a bug in cloud texture state loading which caused the cloud textures to
be loaded 5 times! for a lot of wasted texture RAM.  Thanks to Erik H. for
noticing the problem.
2003-06-02 15:23:45 +00:00
curt df677ff8aa Working on adding a top leve Doxygen docs introduction. 2003-05-30 16:41:36 +00:00
curt 1d8b352d2d Clean up a class renaming mistake. 2003-05-30 15:27:32 +00:00
curt c8432e3763 Move simgear/sky/ -> simgear/scene/sky/ as part of the consolidation of
graphics code.
2003-05-30 15:16:25 +00:00
curt b3f88735a8 Rename FGSerialPort to SGSerialPort. 2003-05-30 14:59:47 +00:00
curt 789b56872c Fix a very small oops. 2003-05-28 21:00:05 +00:00