Commit Graph

  • dca07c5634 Merge branch 'timoore/effects' v2.0.0-rc1 Tim Moore 2009-12-20 16:07:00 +01:00
  • fd42294faf Merge branch 'ehofman/sound' Tim Moore 2009-12-20 10:40:26 +01:00
  • c1246e8c4e proper typecasting ehofman 2009-12-14 19:43:19 +00:00
  • 59fc902cfb don't render an EffectGeode if there is no valid technique Tim Moore 2009-12-14 06:52:00 +01:00
  • 1fe9755d01 fix a typo. ehofman 2009-12-09 13:56:12 +00:00
  • 1da09a4706 Don't assign the buffer data to the sample in case it is a file. Test for result when calling load() ehofman 2009-12-09 10:09:41 +00:00
  • f3c591469b Fix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time ehofman 2009-12-09 09:38:07 +00:00
  • b1200f9f59 add alcSuspendContext and alcProcessContext again to prevent sound artifacts on hardware accelerated soundcards. ehofman 2009-12-06 09:56:01 +00:00
  • 47617d6c04 check if suspend, resume and volume changed much from the previous value before setting them. ehofman 2009-12-02 09:32:20 +00:00
  • 4794ab6095 Fix runtime switching of sound devices. ehofman 2009-12-02 08:32:59 +00:00
  • bc85767f19 Updates to allow runtime chaning of the sound device ehofman 2009-11-30 14:22:40 +00:00
  • e37c218c2a take locks out of ModelRegistry Tim Moore 2009-11-29 22:54:02 +01:00
  • a0aaa23904 Add a function to retreive all available playback devices. ehofman 2009-11-28 13:31:04 +00:00
  • 27a6c72091 initialize volume to a proper value ehofman 2009-11-28 12:59:40 +00:00
  • 2dcc66f03e Small bugfix ehofman 2009-11-28 10:48:17 +00:00
  • d70a05a088 Make it possible to specify a different device name ehofman 2009-11-28 10:37:02 +00:00
  • c2317edf8a Revert boost requirement to 1.37 Tim Moore 2009-11-29 12:42:10 +01:00
  • cb7ac404d9 Merge branch 'ehofman/sky' Tim Moore 2009-11-26 23:28:34 +01:00
  • 5abc6c995f fix a memory leak in newcloud.cxx Tim Moore 2009-11-26 16:30:46 +01:00
  • 0f21c39e49 a slightly more readable version of the test ehofman 2009-11-26 13:05:44 +00:00
  • f6513127ce Also test for older versions of OpenAL-Sample ehofman 2009-11-26 12:19:57 +00:00
  • ddd72b2b37 Use an effect for 3d clouds Tim Moore 2009-11-26 11:40:41 +01:00
  • 7f5df1fb66 Support for shader program attributes in effects Tim Moore 2009-11-26 11:39:34 +01:00
  • 2e71b64de1 Better error reporting for effects Tim Moore 2009-11-26 11:32:00 +01:00
  • 45f1f9263f add a property debugging function Tim Moore 2009-11-26 10:38:31 +01:00
  • 878288f06a Don't forget to apply the doppler adjustment factor to the listener velocity also ehofman 2009-11-23 11:54:33 +00:00
  • 406cdf8d16 test for implementations with 'bad' doppler effects and adjust for it. ehofman 2009-11-23 10:32:26 +00:00
  • 5b28b024ae fix test programs ehofman 2009-11-23 10:31:53 +00:00
  • 7c693d8107 proper listener velocity calculation, this has no effect yet but is required when other models start emitting sounds. ehofman 2009-11-23 09:35:12 +00:00
  • b8a6d1ac4d add depth attribute to Effect Tim Moore 2009-11-23 09:15:47 +01:00
  • 40533f50df Drop required Boost version from 1.37 to 1.34 Tim Moore 2009-11-22 22:55:56 +01:00
  • 539ced191b Move tree shaders to an effect Tim Moore 2009-11-22 00:32:51 +01:00
  • 1a400b890b Effect file support for GL_VERTEX_PROGRAM_TWO_SIDE and POINT_SIZE Tim Moore 2009-11-22 00:27:53 +01:00
  • ebe5a5579c shader language predicate Tim Moore 2009-11-20 22:58:59 +01:00
  • afb18ca75b the wrong name also mislead me: rotate velocity to the proper quat ehofman 2009-11-19 15:29:34 +00:00
  • 01c62932bd make the relative positions fixed against the body again. ehofman 2009-11-18 13:49:25 +00:00
  • 6cd8db7b28 Set to default distance attenuation function but change the parameters a but for better sound effects (and most of all quieter sounds at greta distance ehofman 2009-11-17 13:06:32 +00:00
  • bb46d91bc6 What do you know, the real problem turned out to be the distance attenuation function.. ehofman 2009-11-16 13:32:34 +00:00
  • 3cd5322496 descend into Effects to find default material animation values Tim Moore 2009-11-16 22:43:41 +01:00
  • cadecdcab7 add a transparent texture for effects Tim Moore 2009-11-16 22:42:46 +01:00
  • cd4030b7db Make MultiChangeListener derive publicly from SGPropertyChangeListener Tim Moore 2009-11-16 22:39:56 +01:00
  • 0a2264cad4 When instantiating effects, copy user data of any created nodes. Tim Moore 2009-11-15 23:51:08 +01:00
  • bb2a02daa8 Bump boost version to 1.37 Tim Moore 2009-11-15 01:17:34 +01:00
  • 5991195062 optimize creation and sharing of effects Tim Moore 2009-11-13 14:59:29 +01:00
  • 54c4055af3 Effects in models working for transparent materials and chrome animation Tim Moore 2009-10-16 12:54:46 +02:00
  • cb07210bc7 Move Texture unit builder into TexBuilder.cxx Tim Moore 2009-10-16 12:55:44 +02:00
  • 3e40d624a8 Effects for models Tim Moore 2009-09-08 13:09:05 +02:00
  • 63ce675914 Splicing visitor for rewriting scene graphs with a minimum of copying Tim Moore 2009-11-09 16:57:19 +01:00
  • 14e5e87a4d Dump texture attributes of StateSet into effect property tree Tim Moore 2009-09-08 12:59:58 +02:00
  • e7e81c6639 getStateAttribute utility function Tim Moore 2009-09-08 12:53:33 +02:00
  • 23d0601d82 Add support for blend functions and alpha test functions in effects Tim Moore 2009-08-25 16:01:11 +02:00
  • 6db9138eeb wip for effects in models Tim Moore 2009-08-15 14:00:51 +02:00
  • 6a7c200002 remove CopyPolicy from ModelRegistry Tim Moore 2009-09-20 09:29:05 +02:00
  • e3f70b7125 temporarily remove listener (viewer) and source offsets. they mess things up ehofman 2009-11-12 20:41:19 +00:00
  • a25e859fa7 fix typo Tim Moore 2009-11-10 22:10:57 +01:00
  • 5b2af1f6b3 also recalculate the velocity in update_pos_and_orienation, so pass the north-east-down velocity directly and orientate position, orientation and velocity to OpenGL/OpenAL frames (x-right, y-up and z-back) ehofman 2009-11-10 14:28:28 +00:00
  • 59df72c4b0 allow sound effects in the configuration file to be added to the 'avionics' sample group by setting '<type>avionics</type>'. ehofman 2009-11-09 10:28:21 +00:00
  • 4e2eb2f24c Move propertyExpression code from flightgear to simgear Tim Moore 2009-11-09 13:28:11 +01:00
  • b905f4b8aa Property system optimizations Tim Moore 2009-11-05 09:06:18 +01:00
  • fefe87ed1e Remove old MSVC6.0 files that doen't work anymore ehofman 2009-11-09 09:23:00 +00:00
  • b66905c2f6 Oops, it was the scenery up vector, not the viewer up vector ehofman 2009-11-05 16:58:48 +00:00
  • 39472e4d81 Save a costly SGVec3d::fromGeod() calculation ehofman 2009-11-05 13:46:15 +00:00
  • 85fba1325a pass the geodetic position and view orientation to the sky reposition function ehofman 2009-11-05 12:48:16 +00:00
  • 0f39f05fa1 small fixes ehofman 2009-11-04 10:25:59 +00:00
  • 8d551c2664 fix directional sound orientation ehofman 2009-11-03 11:42:32 +00:00
  • 346a22f684 adjust to recent changes ehofman 2009-11-03 10:16:46 +00:00
  • b1571e4437 some small fixes ehofman 2009-11-03 09:59:19 +00:00
  • 5ac2abe3ab Remove more unneeded code and properly set relative position and sound direction ehofman 2009-11-02 21:38:39 +00:00
  • 5b15426cc6 Small code reorganization, mostly removing unneeded code ehofman 2009-11-02 11:39:37 +00:00
  • 1ac944b7c1 Position and orientation fixes thanks to Tim Moore (finaly). Code optimizations by moving code over from SGSoundSample to SGSampleGroup which means it will only run once for every sample group instead of once for every sample. ehofman 2009-11-02 10:31:05 +00:00
  • fd90dbb123 silently clip pitch and gain to their maximum values ehofman 2009-11-01 17:34:25 +00:00
  • 6ccad91537 proper orientation(?) and comment out relative position and direction code since it messes with OpenAL in such a way that volume doesn't work properly anymore ehofman 2009-11-01 14:51:10 +00:00
  • c89db53ebf another attempt at getting something useful without any result. ehofman 2009-10-31 14:18:41 +00:00
  • 4ffd70a42a fix a typo ehofman 2009-10-31 08:53:55 +00:00
  • bbeb48a60d fix a gcc version test ehofman 2009-10-31 08:46:46 +00:00
  • aefe9bc116 MacOS X fix ehofman 2009-10-31 08:41:07 +00:00
  • bcb95f647d add relative pos back in ehofman 2009-10-30 12:59:53 +00:00
  • 145a7fa146 pass the float pointer to the isNaN function instead of the SGVec3 type ehofman 2009-10-29 17:03:16 +00:00
  • 06f0b6030a multiply quats in the right order ehofman 2009-10-29 14:58:02 +00:00
  • 191ee3a0ed Commit the current state of affairs to see if it fixes the position code for others ehofman 2009-10-29 13:33:52 +00:00
  • f6358694ae another test program, using real world locations ehofman 2009-10-29 12:53:20 +00:00
  • af14d65a98 Fix a bug where a sample was removed from the sample list before it was stopped. Proper listener orientation when inside the airplane (need to find a good solution for outside view). ehofman 2009-10-28 14:27:47 +00:00
  • 9fe75dc521 also test for NaN in listener code ehofman 2009-10-27 12:21:56 +00:00
  • 0051bea034 small code reorganization and addition of debugging tests. ehofman 2009-10-27 12:10:42 +00:00
  • 76c79dba8e FGViewer::recalcLookFrom turned out to be an excellent source of information for prosition and orientation ehofman 2009-10-26 21:06:45 +00:00
  • 84dc82506a re-enable sound positioning and velocity, test for NaN's and print a message when it happens (debugging, should be removed later on). ehofman 2009-10-26 10:47:31 +00:00
  • ae1625734c move all isnan() declarations from sample_group.cxx to compiler.h since it's too important not to have available everywhere. ehofman 2009-10-26 09:05:19 +00:00
  • e2ce4c0fa9 More include SGMath.hxx to keep MSVC happy Tim Moore 2009-10-20 10:18:15 +02:00
  • a06a15e769 Use shared pointers for any reference to SGSoundSample, fix the constructor of SGSoundSample where data is supplied by the calling program. ehofman 2009-10-24 12:57:11 +00:00
  • 7c5de29b61 get rid of aut_ptr, it only works with objects that can destroyed with delete (and not even delete[]) which is too limited. take drastic actions to find the sound-not-playing-bug: set all positions and orientations to default all the time. ehofman 2009-10-24 08:18:09 +00:00
  • 5f9befebae .. and remove some debugging code ehofman 2009-10-22 12:11:06 +00:00
  • 6a7b885891 revert some test code ehofman 2009-10-22 12:10:35 +00:00
  • cd8e7bbdca should use free instead of delete for malloced data. ehofman 2009-10-22 12:07:56 +00:00
  • 5d731ad8c3 a few more temporarty debugging statements ehofman 2009-10-22 08:58:40 +00:00
  • 7964270929 fix a memory leak and add some temporary debugging statements. ehofman 2009-10-22 08:32:04 +00:00
  • ea513d392e Updates to the test utilies. ehofman 2009-10-21 16:52:02 +00:00
  • feba9024eb Fix a pause situation where more code was executed than expected. Unbind an OpenAL buffer from an OpenAL source when requested to stop playing. ehofman 2009-10-20 11:31:00 +00:00
  • b3e16ce8e0 use auto_ptr instead ehofman 2009-10-19 14:09:21 +00:00
  • 31dd77c694 do not yet add the relative sound position to the absolute position, it's generating NaN's at the moment. Fix a bunch of other small bugs ehofman 2009-10-19 10:40:13 +00:00
  • ae58f89fbf sigh, forgot another alut* at the wrong place. ehofman 2009-10-18 18:52:15 +00:00