59fc902cfbdon't render an EffectGeode if there is no valid technique
Tim Moore
2009-12-14 06:52:00 +01:00
1fe9755d01fix a typo.
ehofman
2009-12-09 13:56:12 +00:00
1da09a4706Don'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
f3c591469bFix crash in SGSoundMgr::stop(): do not try to erase buffer items one at a time
ehofman
2009-12-09 09:38:07 +00:00
b1200f9f59add alcSuspendContext and alcProcessContext again to prevent sound artifacts on hardware accelerated soundcards.
ehofman
2009-12-06 09:56:01 +00:00
47617d6c04check if suspend, resume and volume changed much from the previous value before setting them.
ehofman
2009-12-02 09:32:20 +00:00
4794ab6095Fix runtime switching of sound devices.
ehofman
2009-12-02 08:32:59 +00:00
bc85767f19Updates to allow runtime chaning of the sound device
ehofman
2009-11-30 14:22:40 +00:00
e37c218c2atake locks out of ModelRegistry
Tim Moore
2009-11-29 22:54:02 +01:00
a0aaa23904Add a function to retreive all available playback devices.
ehofman
2009-11-28 13:31:04 +00:00
27a6c72091initialize volume to a proper value
ehofman
2009-11-28 12:59:40 +00:00
d70a05a088Make it possible to specify a different device name
ehofman
2009-11-28 10:37:02 +00:00
c2317edf8aRevert boost requirement to 1.37
Tim Moore
2009-11-29 12:42:10 +01:00
cb7ac404d9Merge branch 'ehofman/sky'
Tim Moore
2009-11-26 23:28:34 +01:00
5abc6c995ffix a memory leak in newcloud.cxx
Tim Moore
2009-11-26 16:30:46 +01:00
0f21c39e49a slightly more readable version of the test
ehofman
2009-11-26 13:05:44 +00:00
f6513127ceAlso test for older versions of OpenAL-Sample
ehofman
2009-11-26 12:19:57 +00:00
ddd72b2b37Use an effect for 3d clouds
Tim Moore
2009-11-26 11:40:41 +01:00
7f5df1fb66Support for shader program attributes in effects
Tim Moore
2009-11-26 11:39:34 +01:00
2e71b64de1Better error reporting for effects
Tim Moore
2009-11-26 11:32:00 +01:00
45f1f9263fadd a property debugging function
Tim Moore
2009-11-26 10:38:31 +01:00
878288f06aDon't forget to apply the doppler adjustment factor to the listener velocity also
ehofman
2009-11-23 11:54:33 +00:00
406cdf8d16test for implementations with 'bad' doppler effects and adjust for it.
ehofman
2009-11-23 10:32:26 +00:00
5b28b024aefix test programs
ehofman
2009-11-23 10:31:53 +00:00
7c693d8107proper 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
b8a6d1ac4dadd depth attribute to Effect
Tim Moore
2009-11-23 09:15:47 +01:00
40533f50dfDrop required Boost version from 1.37 to 1.34
Tim Moore
2009-11-22 22:55:56 +01:00
539ced191bMove tree shaders to an effect
Tim Moore
2009-11-22 00:32:51 +01:00
1a400b890bEffect file support for GL_VERTEX_PROGRAM_TWO_SIDE and POINT_SIZE
Tim Moore
2009-11-22 00:27:53 +01:00
ebe5a5579cshader language predicate
Tim Moore
2009-11-20 22:58:59 +01:00
afb18ca75bthe wrong name also mislead me: rotate velocity to the proper quat
ehofman
2009-11-19 15:29:34 +00:00
01c62932bdmake the relative positions fixed against the body again.
ehofman
2009-11-18 13:49:25 +00:00
6cd8db7b28Set 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
bb46d91bc6What do you know, the real problem turned out to be the distance attenuation function..
ehofman
2009-11-16 13:32:34 +00:00
3cd5322496descend into Effects to find default material animation values
Tim Moore
2009-11-16 22:43:41 +01:00
cadecdcab7add a transparent texture for effects
Tim Moore
2009-11-16 22:42:46 +01:00
cd4030b7dbMake MultiChangeListener derive publicly from SGPropertyChangeListener
Tim Moore
2009-11-16 22:39:56 +01:00
0a2264cad4When instantiating effects, copy user data of any created nodes.
Tim Moore
2009-11-15 23:51:08 +01:00
bb2a02daa8Bump boost version to 1.37
Tim Moore
2009-11-15 01:17:34 +01:00
5991195062optimize creation and sharing of effects
Tim Moore
2009-11-13 14:59:29 +01:00
54c4055af3Effects in models working for transparent materials and chrome animation
Tim Moore
2009-10-16 12:54:46 +02:00
cb07210bc7Move Texture unit builder into TexBuilder.cxx
Tim Moore
2009-10-16 12:55:44 +02:00
3e40d624a8Effects for models
Tim Moore
2009-09-08 13:09:05 +02:00
63ce675914Splicing visitor for rewriting scene graphs with a minimum of copying
Tim Moore
2009-11-09 16:57:19 +01:00
14e5e87a4dDump texture attributes of StateSet into effect property tree
Tim Moore
2009-09-08 12:59:58 +02:00
e7e81c6639getStateAttribute utility function
Tim Moore
2009-09-08 12:53:33 +02:00
23d0601d82Add support for blend functions and alpha test functions in effects
Tim Moore
2009-08-25 16:01:11 +02:00
6db9138eebwip for effects in models
Tim Moore
2009-08-15 14:00:51 +02:00
6a7c200002remove CopyPolicy from ModelRegistry
Tim Moore
2009-09-20 09:29:05 +02:00
e3f70b7125temporarily remove listener (viewer) and source offsets. they mess things up
ehofman
2009-11-12 20:41:19 +00:00
a25e859fa7fix typo
Tim Moore
2009-11-10 22:10:57 +01:00
5b2af1f6b3also 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
59df72c4b0allow 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
4e2eb2f24cMove propertyExpression code from flightgear to simgear
Tim Moore
2009-11-09 13:28:11 +01:00
b905f4b8aaProperty system optimizations
Tim Moore
2009-11-05 09:06:18 +01:00
fefe87ed1eRemove old MSVC6.0 files that doen't work anymore
ehofman
2009-11-09 09:23:00 +00:00
b66905c2f6Oops, it was the scenery up vector, not the viewer up vector
ehofman
2009-11-05 16:58:48 +00:00
39472e4d81Save a costly SGVec3d::fromGeod() calculation
ehofman
2009-11-05 13:46:15 +00:00
85fba1325apass the geodetic position and view orientation to the sky reposition function
ehofman
2009-11-05 12:48:16 +00:00
1ac944b7c1Position 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
fd90dbb123silently clip pitch and gain to their maximum values
ehofman
2009-11-01 17:34:25 +00:00
6ccad91537proper 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
c89db53ebfanother attempt at getting something useful without any result.
ehofman
2009-10-31 14:18:41 +00:00
4ffd70a42afix a typo
ehofman
2009-10-31 08:53:55 +00:00
bbeb48a60dfix a gcc version test
ehofman
2009-10-31 08:46:46 +00:00
aefe9bc116MacOS X fix
ehofman
2009-10-31 08:41:07 +00:00
bcb95f647dadd relative pos back in
ehofman
2009-10-30 12:59:53 +00:00
145a7fa146pass the float pointer to the isNaN function instead of the SGVec3 type
ehofman
2009-10-29 17:03:16 +00:00
06f0b6030amultiply quats in the right order
ehofman
2009-10-29 14:58:02 +00:00
191ee3a0edCommit the current state of affairs to see if it fixes the position code for others
ehofman
2009-10-29 13:33:52 +00:00
f6358694aeanother test program, using real world locations
ehofman
2009-10-29 12:53:20 +00:00
af14d65a98Fix 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
9fe75dc521also test for NaN in listener code
ehofman
2009-10-27 12:21:56 +00:00
0051bea034small code reorganization and addition of debugging tests.
ehofman
2009-10-27 12:10:42 +00:00
76c79dba8eFGViewer::recalcLookFrom turned out to be an excellent source of information for prosition and orientation
ehofman
2009-10-26 21:06:45 +00:00
84dc82506are-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
ae1625734cmove 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
e2ce4c0fa9More include SGMath.hxx to keep MSVC happy
Tim Moore
2009-10-20 10:18:15 +02:00
a06a15e769Use 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
7c5de29b61get 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
6a7b885891revert some test code
ehofman
2009-10-22 12:10:35 +00:00
cd8e7bbdcashould use free instead of delete for malloced data.
ehofman
2009-10-22 12:07:56 +00:00
5d731ad8c3a few more temporarty debugging statements
ehofman
2009-10-22 08:58:40 +00:00
7964270929fix a memory leak and add some temporary debugging statements.
ehofman
2009-10-22 08:32:04 +00:00
ea513d392eUpdates to the test utilies.
ehofman
2009-10-21 16:52:02 +00:00
feba9024ebFix 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
31dd77c694do 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
ae58f89fbfsigh, forgot another alut* at the wrong place.
ehofman
2009-10-18 18:52:15 +00:00