b3bc36b253restore some part of the code to prevent an untwanted segmentationf fault.
ehofman
2009-10-18 13:55:21 +00:00
7287509fefStart 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
b1c49045a8forward declare Point3D in sg_types.hxx
Tim Moore
2009-10-18 12:08:42 +02:00
0d5634475cDon'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
e6bfe7d40crevert to previous version
ehofman
2009-10-18 08:48:34 +00:00
e2b8a21ff5documentation, licensing, copyright and small api updates.
ehofman
2009-10-17 12:36:48 +00:00
24c7941f65convert _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
fdfdfedf01Alut < 1.0 fixes and finaly fix the sound orientation
ehofman
2009-10-16 09:45:00 +00:00
a67688322dInitialization 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
6fe057e277add a debugging statement
ehofman
2009-10-15 12:33:32 +00:00
f23e8bfb02fix for latest changes
ehofman
2009-10-15 12:00:20 +00:00
eab9da98f2give 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
f161992836Alex 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
40e13b91feMerge branches 'toresten/geofix', 'jmt/lcase', 'stuart/clouds' and 'jmt/dump'
Tim Moore
2009-10-12 10:03:00 +02:00
af6824605bproper naming is everything
ehofman
2009-10-11 08:47:49 +00:00
babf58f8d2Correct (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
968f5d7693OpenAL 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
4cc6bd69aeadd the option to tie a SampleGroup to the listener position and orientation
ehofman
2009-10-07 12:54:47 +00:00
199437e859alut 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
e5fac0a01dUpdate 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
5d14b84969fix 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
6b0ab9a49adefault listener (master volume) default to 0.0 to save some ugly code in FlightGear
ehofman
2009-10-05 13:42:12 +00:00
023002ae73add the alc.h header file vor OpenAL context related code
ehofman
2009-10-05 11:10:40 +00:00
579d384c04Rename 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
e2e1524454Initial commit of the new sound system, expect more updates to follow
ehofman
2009-10-04 13:52:27 +00:00
4a5853c1c2Stuart 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
64756d14d0Back out convertToLowerCase function
Tim Moore
2009-10-01 00:31:36 +02:00
bac2ef601dMerge branch 'jmt/lcase' into next
Tim Moore
2009-09-28 23:51:07 +02:00
cf3bab89f9Merge branch 'master' into next
Tim Moore
2009-09-28 23:50:56 +02:00
dfe41ad984Extend simgear::strutils with convertToLowerCase helper - currently a proxy for osgDB helper of the same name.
jmt
2009-09-26 11:44:33 +00:00
b784bebaa9just small fixes
ehofman
2009-09-24 07:07:36 +00:00
bcf727cf58Catch 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
ecd0a53412Add writeLocalData functions for internal scenegraph classes
Tim Moore
2009-07-28 06:39:55 +02:00
3456434e37check for null effect in EffectCullVisitor
Tim Moore
2009-09-18 15:43:46 +02:00
454c5b1ed2Merge branch 'tat/configure' into next
Tim Moore
2009-09-17 12:25:19 +02:00
dc2c437a1aTatsuhiro 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
819d3f5dedMerge branch 'topic/projection' into next
Tim Moore
2009-09-17 12:22:06 +02:00
4f802689f2Correct finite precision issues. Use consistent function names. Implement changes consistently over the different vector sizes.
frohlich
2009-09-16 05:06:56 +00:00
9cbbe55598Merge branch 'frohlich/weak' into next
Tim Moore
2009-09-17 12:18:33 +02:00
7e2dafdcb8Make the weak pointer work. Some bits were left when importing.
frohlich
2009-09-16 05:04:05 +00:00
ccf0ba50c4Implement vector _projection_ functions.
John Denker
2009-01-10 18:16:58 -07:00
f3bc977d32Make "repeat" start slower on pick-animation mouse events;
John Denker
2009-01-07 04:22:13 -07:00
80609e0816Dont execute code in case the soundmanager isn't properly initialized
ehofman
2009-09-08 13:50:55 +00:00
795d481ca6Switch to new vector conversion functions.
frohlich
2009-09-07 21:42:50 +00:00
1b936b9af8Fix 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
f141cc28b0Add 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
4cb64b58beAlso install coremag.hxx since it is being used by JSBSim now
ehofman
2009-09-05 11:56:53 +00:00
71a4c2c3d2extinguish many warnings (at least for gcc)
torsten
2009-08-20 11:44:37 +00:00
a3e391a523warning 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
c824731bc6Expose the color of the sun (which is not the scene specular color anymore)
ehofman
2009-08-16 19:33:58 +00:00
0c39caa622Differentiate between sun color (based in visibility) and scene color (based on humidity)
ehofman
2009-08-16 08:42:23 +00:00
1f1e28baf8Stuart 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
0c303389d6Compile under MSVC9
fredb
2009-08-08 12:26:36 +00:00
01a896ef5bNew effects from Till Busch: crops, water, landmass
timoore
2009-08-08 10:19:56 +00:00
0e5e760135Allow 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
7e7d877874Fix case typo
fredb
2009-07-27 09:50:55 +00:00