Commit Graph

  • b3bc36b253 restore some part of the code to prevent an untwanted segmentationf fault. ehofman 2009-10-18 13:55:21 +00:00
  • 7287509fef Start the sound manager in a deactived state. This means the code now has to activate it explicitly when desired. A non active state means the update function will no be executed. ehofman 2009-10-18 13:44:38 +00:00
  • b1c49045a8 forward declare Point3D in sg_types.hxx Tim Moore 2009-10-18 12:08:42 +02:00
  • 0d5634475c Don't delete the sample data if it wasn't constructed as a file. It's now deleted when calling free_data() by the owner or in the destructor. ehofman 2009-10-18 09:34:24 +00:00
  • e6bfe7d40c revert to previous version ehofman 2009-10-18 08:48:34 +00:00
  • 811cd0653f make sure update_late isn't executed when dt=0 ehofman 2009-10-17 13:09:27 +00:00
  • e2b8a21ff5 documentation, licensing, copyright and small api updates. ehofman 2009-10-17 12:36:48 +00:00
  • 24c7941f65 convert _relative_pos to a vector of doubles and set the relative offset ehofman 2009-10-16 13:19:36 +00:00
  • 600a9ee4c5 _data is not an array of pointer ehofman 2009-10-16 11:37:52 +00:00
  • fdfdfedf01 Alut < 1.0 fixes and finaly fix the sound orientation ehofman 2009-10-16 09:45:00 +00:00
  • a67688322d Initialization was done much earlier than expected resulting in some sample groups not being activated (and sample loading using OpenAL/ALUT functions to be scheduled before OpenAL was initilialized). ehofman 2009-10-15 17:08:45 +00:00
  • 6fe057e277 add a debugging statement ehofman 2009-10-15 12:33:32 +00:00
  • f23e8bfb02 fix for latest changes ehofman 2009-10-15 12:00:20 +00:00
  • eab9da98f2 give the sample class as much info as possible to properly position and orientate the sounds. unfortunately at this time orientation seems to be from straight behind which means that sounds that have outer-gain set to 0.0 will not be heard yet. ehofman 2009-10-15 09:18:21 +00:00
  • f161992836 Alex Buzin: I got an error with the Sunday CVS - FG crashed while exiting . gdb reports SIGSEGV error at file soundmgr_openal.cxx, line 159. ehofman 2009-10-12 17:22:41 +00:00
  • 40e13b91fe Merge branches 'toresten/geofix', 'jmt/lcase', 'stuart/clouds' and 'jmt/dump' Tim Moore 2009-10-12 10:03:00 +02:00
  • af6824605b proper naming is everything ehofman 2009-10-11 08:47:49 +00:00
  • babf58f8d2 Correct (and verrified) position, orientation and velocity vector. Todo: proper sound orientation (the all face forward using the airplane orientation now) and disabling doppler effect when tied to the listener ehofman 2009-10-11 13:38:27 +00:00
  • 968f5d7693 OpenAL buffer management; add a buffer cache to prevent loading the same sample in memory twice. Especially useful to save memory for multi-aircraft configurations and (later) for AI models. ehofman 2009-10-09 09:00:53 +00:00
  • 4cc6bd69ae add the option to tie a SampleGroup to the listener position and orientation ehofman 2009-10-07 12:54:47 +00:00
  • 199437e859 alut pre-1.0 doesn't support aletGetError but then again, this function doesn't get called in that case either so just comment it out at build time ehofman 2009-10-07 07:31:14 +00:00
  • e5fac0a01d Update the screen-dump code to use osgDB, and hence write out files in more common formats (PNG, JPEG, etc). The PPM writing code is retained for the moment, in case someone other than FG is relying upon it. jmt 2009-10-06 20:05:46 +00:00
  • 5d14b84969 fix a typo ehofman 2009-10-06 12:11:33 +00:00
  • bcccd06cee (try to) properly align model and viewer ehofman 2009-10-06 12:09:28 +00:00
  • 6b0ab9a49a default listener (master volume) default to 0.0 to save some ugly code in FlightGear ehofman 2009-10-05 13:42:12 +00:00
  • 023002ae73 add the alc.h header file vor OpenAL context related code ehofman 2009-10-05 11:10:40 +00:00
  • 579d384c04 Rename update() to update_late() for the sound manager to be able to initialize it before any other class that uses it. This will allow the SoundManager to be safely accessed in the constructor of those classes. ehofman 2009-10-05 08:56:40 +00:00
  • e2e1524454 Initial commit of the new sound system, expect more updates to follow ehofman 2009-10-04 13:52:27 +00:00
  • 4a5853c1c2 Stuart Buchanan: Improvements to the cloudsystem: - A new xml format - Texture indexing based on the position of the sprite in the cloud mass, allowing more control over the texture set. - Improved fog and shading - Better sprite distribution - A more natural distribution of clouds, so no more obvious grids. durk 2009-10-02 05:44:25 +00:00
  • 64756d14d0 Back out convertToLowerCase function Tim Moore 2009-10-01 00:31:36 +02:00
  • bac2ef601d Merge branch 'jmt/lcase' into next Tim Moore 2009-09-28 23:51:07 +02:00
  • cf3bab89f9 Merge branch 'master' into next Tim Moore 2009-09-28 23:50:56 +02:00
  • dfe41ad984 Extend simgear::strutils with convertToLowerCase helper - currently a proxy for osgDB helper of the same name. jmt 2009-09-26 11:44:33 +00:00
  • b784bebaa9 just small fixes ehofman 2009-09-24 07:07:36 +00:00
  • bcf727cf58 Catch a possible floating point error in SGGeodesy::SGCartToGeod() for cartesian coordinates close to the geocenter region. torsten 2009-09-22 14:17:45 +00:00
  • ecd0a53412 Add writeLocalData functions for internal scenegraph classes Tim Moore 2009-07-28 06:39:55 +02:00
  • 3456434e37 check for null effect in EffectCullVisitor Tim Moore 2009-09-18 15:43:46 +02:00
  • 454c5b1ed2 Merge branch 'tat/configure' into next Tim Moore 2009-09-17 12:25:19 +02:00
  • dc2c437a1a Tatsuhiro Nishioka: Patches for configure.ac and Makefile.am files in FG/SG so Mac developers can build these in a unix way. These also enables Mac developers to choose either PLIB framework or PLIB static libs. torsten 2009-09-16 17:01:47 +00:00
  • 819d3f5ded Merge branch 'topic/projection' into next Tim Moore 2009-09-17 12:22:06 +02:00
  • 4f802689f2 Correct finite precision issues. Use consistent function names. Implement changes consistently over the different vector sizes. frohlich 2009-09-16 05:06:56 +00:00
  • 9cbbe55598 Merge branch 'frohlich/weak' into next Tim Moore 2009-09-17 12:18:33 +02:00
  • 7e2dafdcb8 Make the weak pointer work. Some bits were left when importing. frohlich 2009-09-16 05:04:05 +00:00
  • c7873d68f7 Logging:less verbose sound loading. jmt 2009-09-14 12:36:35 +00:00
  • 939ec526a8 Logging: quiet down STG parsing. jmt 2009-09-14 12:30:35 +00:00
  • b20a635db0 Logging: quiet down model/image loading policy. jmt 2009-09-14 12:20:03 +00:00
  • a656bee0df Logging: quiet the BVH building policy. jmt 2009-09-14 12:18:20 +00:00
  • 42f07e3f14 Logging: quiet material loading. jmt 2009-09-14 12:09:49 +00:00
  • 5803b05bd5 Logging - downgrade play/stop messages to debug. jmt 2009-09-14 12:08:02 +00:00
  • ccf0ba50c4 Implement vector _projection_ functions. John Denker 2009-01-10 18:16:58 -07:00
  • f3bc977d32 Make "repeat" start slower on pick-animation mouse events; John Denker 2009-01-07 04:22:13 -07:00
  • 80609e0816 Dont execute code in case the soundmanager isn't properly initialized ehofman 2009-09-08 13:50:55 +00:00
  • 795d481ca6 Switch to new vector conversion functions. frohlich 2009-09-07 21:42:50 +00:00
  • 1b936b9af8 Fix problem with ocean files not recognized as water. Move dynamic casts to EffectGeode into the findMaterial method. frohlich 2009-09-07 20:37:19 +00:00
  • f141cc28b0 Add some comments. Make sure floating point constants do not introduce useless upcasts. Remove now unused and not really usefull method. frohlich 2009-09-05 12:25:51 +00:00
  • 4cb64b58be Also install coremag.hxx since it is being used by JSBSim now ehofman 2009-09-05 11:56:53 +00:00
  • 028af34d3d Remove unused member. frohlich 2009-09-05 06:54:16 +00:00
  • ce54997be5 Should be now more easy to make use of SGMath without having osg. frohlich 2009-09-05 06:53:52 +00:00
  • 3d213fa713 Return a osg::Vec value instead of a non const reference. frohlich 2009-09-03 20:14:32 +00:00
  • e71f3790ce Avoid the non const SGVec*::osg() method. frohlich 2009-09-03 20:13:24 +00:00
  • 67b9cba4d3 Use const refs for const data. frohlich 2009-09-03 20:10:42 +00:00
  • 78a471f684 Spare one node in the scenegraph if there is no <offsets> torsten 2009-08-29 13:38:32 +00:00
  • d4289c5d54 Change trees code to use a faster OpenGL path timoore 2009-08-25 07:19:39 +00:00
  • 0c17c5440a support osgText in models torsten 2009-08-24 17:30:42 +00:00
  • c4116da564 support osgText in models. See docs/README.osgtext for details torsten 2009-08-24 17:29:38 +00:00
  • d0821953bb Don't load materials without a name torsten 2009-08-21 15:55:23 +00:00
  • e782adef94 Avoid NAN due to floating point rounding errors torsten 2009-08-21 12:10:50 +00:00
  • d3572c2562 prevent division by zero ehofman 2009-08-21 07:43:01 +00:00
  • 1f3838b155 Alan Teeder: fix incomplete dbg_printf for non-gcc. torsten 2009-08-20 15:24:32 +00:00
  • 6aa459073e don't build tabbed_value_test, swap_test, openal_test1 and openal_test2 by default. torsten 2009-08-20 13:10:56 +00:00
  • 0932c33185 warning fix: unused variables torsten 2009-08-20 13:09:29 +00:00
  • 5e542aa841 extinguish many warnings (at least for gcc) torsten 2009-08-20 13:09:00 +00:00
  • 6d53abd5af warning fix: initializing members in the order they are declared keeps gcc happy torsten 2009-08-20 13:08:03 +00:00
  • 3ea58bf8db warning fixes torsten 2009-08-20 11:53:58 +00:00
  • 71a4c2c3d2 extinguish many warnings (at least for gcc) torsten 2009-08-20 11:44:37 +00:00
  • a3e391a523 warning fix: abort program and spit out a message if getNumPrims() is called with unknown mode. (Shouldn't happen anyway) torsten 2009-08-20 11:09:37 +00:00
  • 9cb15b302c warning fix: unused variable torsten 2009-08-20 11:02:42 +00:00
  • 15c1a28d37 warning fix, unused code torsten 2009-08-20 11:02:00 +00:00
  • d3a500e54e don't use uninitialized variables torsten 2009-08-20 10:55:24 +00:00
  • a0a5eb8aef warning fixes torsten 2009-08-20 10:55:01 +00:00
  • a92955eade warning fixes torsten 2009-08-20 09:17:01 +00:00
  • f043f3d4f9 warning fixes torsten 2009-08-20 09:00:12 +00:00
  • 992a057a1b warning fix (multiline comment) torsten 2009-08-20 08:51:53 +00:00
  • 07da1e7e1a warning fix torsten 2009-08-20 08:43:15 +00:00
  • 2c07222ef6 warning fixes torsten 2009-08-20 08:41:21 +00:00
  • 918e315d47 Warning fix: array subscript is above array bounds torsten 2009-08-20 08:32:31 +00:00
  • c824731bc6 Expose the color of the sun (which is not the scene specular color anymore) ehofman 2009-08-16 19:33:58 +00:00
  • 0c39caa622 Differentiate between sun color (based in visibility) and scene color (based on humidity) ehofman 2009-08-16 08:42:23 +00:00
  • 1f1e28baf8 Stuart Buchanan: I've been working on a small patch to allow trees to be grouped together into woods. This allows what seems to me to be a more realistic grouping of trees for farmland in particular. torsten 2009-08-09 10:49:20 +00:00
  • 0c303389d6 Compile under MSVC9 fredb 2009-08-08 12:26:36 +00:00
  • 01a896ef5b New effects from Till Busch: crops, water, landmass timoore 2009-08-08 10:19:56 +00:00
  • 0e5e760135 Allow multiple <button> elements for <action> elements in pick animations. Nice to have to have a single action for mouse-button and mouse-wheel. torsten 2009-07-28 14:33:44 +00:00
  • 7e7d877874 Fix case typo fredb 2009-07-27 09:50:55 +00:00
  • 57ccb6fd6b Suppress warnings fredb 2009-07-26 20:24:57 +00:00
  • efa2876e29 Compile latest SimGear under MSVC9 fredb 2009-07-26 18:53:29 +00:00
  • 59ef7d8fd1 Create a singleton for the parser table Tim Moore 2009-07-19 23:05:04 +02:00
  • 1f308c9ec3 Move definition of SGRawBase<...>::printOn out of simgear namespace Tim Moore 2009-07-19 22:39:16 +02:00
  • 4943d3aa53 Add missing return statements Tim Moore 2009-07-18 10:12:59 +02:00
  • 828d561113 Store material data with Effect Tim Moore 2009-07-17 16:16:25 +02:00
  • fcf72a7123 Change references to property types Tim Moore 2009-07-17 14:52:58 +02:00