Tim Moore
23d0601d82
Add support for blend functions and alpha test functions in effects
2009-11-13 22:41:11 +01:00
Tim Moore
6db9138eeb
wip for effects in models
...
multi-index for effect attributes
2009-11-13 22:41:10 +01:00
Tim Moore
6a7c200002
remove CopyPolicy from ModelRegistry
...
Put the responsibility for copying a loaded model directly in
SGReaderWriterXML.
2009-11-13 22:41:10 +01:00
ehofman
e3f70b7125
temporarily remove listener (viewer) and source offsets. they mess things up
2009-11-12 22:59:43 +01:00
Tim Moore
a25e859fa7
fix typo
2009-11-10 22:10:57 +01:00
ehofman
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)
2009-11-10 16:29:16 +01:00
ehofman
59df72c4b0
allow sound effects in the configuration file to be added to the 'avionics' sample group by setting '<type>avionics</type>'.
2009-11-10 06:42:26 +01:00
Tim Moore
4e2eb2f24c
Move propertyExpression code from flightgear to simgear
...
Also add a function (possibly redundant) to access the global property
root.
2009-11-09 15:53:10 +01:00
Tim Moore
b905f4b8aa
Property system optimizations
...
Profiling startup with the new effects code exposed some performance
gotchas. The objective is to reduce allocation of std::string
temporaries, especially when looking up node path names. Also, I
changed some paths to initialize strings with strings instead of char *;
this causes less allocation, at least with glibc. Also, eliminate
the old version of find_node and its helper functions by writing the
template version of find_node_aux to handle an explicit index
parameter.
Also, add const char[] as an internal property type
This doesn't actually add a new type to the property system, but allows using
character arrays as arguments to certain templates.
2009-11-09 15:52:54 +01:00
ehofman
fefe87ed1e
Remove old MSVC6.0 files that doen't work anymore
2009-11-09 10:45:15 +01:00
ehofman
b66905c2f6
Oops, it was the scenery up vector, not the viewer up vector
2009-11-07 08:52:16 +01:00
ehofman
39472e4d81
Save a costly SGVec3d::fromGeod() calculation
2009-11-07 08:52:16 +01:00
ehofman
85fba1325a
pass the geodetic position and view orientation to the sky reposition function
2009-11-05 16:17:29 +01:00
ehofman
0f39f05fa1
small fixes
2009-11-04 23:05:22 +01:00
ehofman
8d551c2664
fix directional sound orientation
2009-11-04 23:05:21 +01:00
ehofman
346a22f684
adjust to recent changes
2009-11-04 23:05:21 +01:00
ehofman
b1571e4437
some small fixes
2009-11-04 23:05:21 +01:00
ehofman
5ac2abe3ab
Remove more unneeded code and properly set relative position and sound direction
2009-11-02 23:20:59 +01:00
ehofman
5b15426cc6
Small code reorganization, mostly removing unneeded code
2009-11-02 23:20:59 +01:00
ehofman
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.
2009-11-02 23:20:58 +01:00
ehofman
fd90dbb123
silently clip pitch and gain to their maximum values
2009-11-01 21:52:37 +01:00
ehofman
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
2009-11-01 21:52:37 +01:00
ehofman
c89db53ebf
another attempt at getting something useful without any result.
2009-10-31 22:55:32 +01:00
ehofman
4ffd70a42a
fix a typo
2009-10-31 22:55:26 +01:00
ehofman
bbeb48a60d
fix a gcc version test
2009-10-31 22:55:18 +01:00
ehofman
aefe9bc116
MacOS X fix
2009-10-31 22:54:46 +01:00
ehofman
bcb95f647d
add relative pos back in
2009-10-31 00:03:27 +01:00
ehofman
145a7fa146
pass the float pointer to the isNaN function instead of the SGVec3 type
2009-10-29 23:04:17 +01:00
ehofman
06f0b6030a
multiply quats in the right order
2009-10-29 23:04:17 +01:00
ehofman
191ee3a0ed
Commit the current state of affairs to see if it fixes the position code for others
2009-10-29 23:04:17 +01:00
ehofman
f6358694ae
another test program, using real world locations
2009-10-29 23:04:17 +01:00
ehofman
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).
2009-10-28 23:16:19 +01:00
ehofman
9fe75dc521
also test for NaN in listener code
2009-10-27 22:15:11 +01:00
ehofman
0051bea034
small code reorganization and addition of debugging tests.
2009-10-27 22:15:11 +01:00
ehofman
76c79dba8e
FGViewer::recalcLookFrom turned out to be an excellent source of information for prosition and orientation
2009-10-26 23:07:47 +01:00
ehofman
84dc82506a
re-enable sound positioning and velocity, test for NaN's and print a message when it happens (debugging, should be removed later on).
2009-10-26 18:50:00 +01:00
ehofman
ae1625734c
move all isnan() declarations from sample_group.cxx to compiler.h since it's too important not to have available everywhere.
2009-10-26 18:49:57 +01:00
Tim Moore
e2ce4c0fa9
More include SGMath.hxx to keep MSVC happy
2009-10-26 18:37:27 +01:00
ehofman
a06a15e769
Use shared pointers for any reference to SGSoundSample, fix the constructor of SGSoundSample where data is supplied by the calling program.
2009-10-24 19:29:41 +02:00
ehofman
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.
2009-10-24 19:29:41 +02:00
ehofman
5f9befebae
.. and remove some debugging code
2009-10-22 22:52:05 +02:00
ehofman
6a7b885891
revert some test code
2009-10-22 22:52:05 +02:00
ehofman
cd8e7bbdca
should use free instead of delete for malloced data.
2009-10-22 22:52:05 +02:00
ehofman
5d731ad8c3
a few more temporarty debugging statements
2009-10-22 22:52:05 +02:00
ehofman
7964270929
fix a memory leak and add some temporary debugging statements.
2009-10-22 22:52:05 +02:00
ehofman
ea513d392e
Updates to the test utilies.
2009-10-22 22:52:05 +02:00
ehofman
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.
2009-10-21 16:25:29 +02:00
ehofman
b3e16ce8e0
use auto_ptr instead
2009-10-19 23:50:17 +02:00
ehofman
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
2009-10-19 23:50:17 +02:00
ehofman
ae58f89fbf
sigh, forgot another alut* at the wrong place.
2009-10-19 23:50:17 +02:00