]> git.mxchange.org Git - simgear.git/log
simgear.git
15 years agoStart the sound manager in a deactived state. This means the code now has to activate...
ehofman [Sun, 18 Oct 2009 13:44:38 +0000 (13:44 +0000)]
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.

15 years agoDon't delete the sample data if it wasn't constructed as a file. It's now deleted...
ehofman [Sun, 18 Oct 2009 09:34:24 +0000 (09:34 +0000)]
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.

15 years agorevert to previous version
ehofman [Sun, 18 Oct 2009 08:48:34 +0000 (08:48 +0000)]
revert to previous version

15 years agomake sure update_late isn't executed when dt=0
ehofman [Sat, 17 Oct 2009 13:09:27 +0000 (13:09 +0000)]
make sure update_late isn't executed when dt=0

15 years agodocumentation, licensing, copyright and small api updates.
ehofman [Sat, 17 Oct 2009 12:36:48 +0000 (12:36 +0000)]
documentation, licensing, copyright and small api updates.

15 years agoconvert _relative_pos to a vector of doubles and set the relative offset
ehofman [Fri, 16 Oct 2009 13:19:36 +0000 (13:19 +0000)]
convert _relative_pos to a vector of doubles and set the relative offset

15 years ago_data is not an array of pointer
ehofman [Fri, 16 Oct 2009 11:37:52 +0000 (11:37 +0000)]
_data is not an array of pointer

15 years agoAlut < 1.0 fixes and finaly fix the sound orientation
ehofman [Fri, 16 Oct 2009 09:45:00 +0000 (09:45 +0000)]
Alut < 1.0 fixes and finaly fix the sound orientation

15 years agoInitialization was done much earlier than expected resulting in some sample
ehofman [Thu, 15 Oct 2009 17:08:45 +0000 (17:08 +0000)]
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).

fix alutInit counter
remove left over static declaration fro SGSoundMgr::load

15 years agoadd a debugging statement
ehofman [Thu, 15 Oct 2009 12:33:32 +0000 (12:33 +0000)]
add a debugging statement

15 years agofix for latest changes
ehofman [Thu, 15 Oct 2009 12:00:20 +0000 (12:00 +0000)]
fix for latest changes

15 years agogive the sample class as much info as possible to properly position and orientate...
ehofman [Thu, 15 Oct 2009 09:18:21 +0000 (09:18 +0000)]
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.

15 years agoAlex Buzin:
ehofman [Mon, 12 Oct 2009 17:22:41 +0000 (17:22 +0000)]
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.

Error was fixed by changing lines 157-159 from:
        buffer_map_iterator buffers_current = _buffers.begin();
        buffer_map_iterator buffers_end = _buffers.end();
        for ( ; buffers_current != buffers_end; ++buffers_current ) {
to :
        buffer_map_iterator buffers_current;
        while(_buffers.size()){
            buffers_current = _buffers.begin();

15 years agoCorrect (and verrified) position, orientation and velocity vector. Todo: proper sound...
ehofman [Sun, 11 Oct 2009 13:38:27 +0000 (13:38 +0000)]
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

15 years agoOpenAL buffer management; add a buffer cache to prevent loading the same sample in...
ehofman [Fri, 9 Oct 2009 09:00:53 +0000 (09:00 +0000)]
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.

15 years agoadd the option to tie a SampleGroup to the listener position and orientation
ehofman [Wed, 7 Oct 2009 12:54:47 +0000 (12:54 +0000)]
add the option to tie a SampleGroup to the listener position and orientation

15 years agoalut pre-1.0 doesn't support aletGetError but then again, this function doesn't get...
ehofman [Wed, 7 Oct 2009 07:31:14 +0000 (07:31 +0000)]
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

15 years agofix a typo
ehofman [Tue, 6 Oct 2009 12:11:33 +0000 (12:11 +0000)]
fix a typo

15 years ago(try to) properly align model and viewer
ehofman [Tue, 6 Oct 2009 12:09:28 +0000 (12:09 +0000)]
(try to) properly align model and viewer

15 years agodefault listener (master volume) default to 0.0 to save some ugly code in FlightGear
ehofman [Mon, 5 Oct 2009 13:42:12 +0000 (13:42 +0000)]
default listener (master volume) default to 0.0 to save some ugly code in FlightGear

15 years agoadd the alc.h header file vor OpenAL context related code
ehofman [Mon, 5 Oct 2009 11:10:40 +0000 (11:10 +0000)]
add the alc.h header file vor OpenAL context related code

15 years agoRename update() to update_late() for the sound manager to be able to initialize it...
ehofman [Mon, 5 Oct 2009 08:56:40 +0000 (08:56 +0000)]
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.

15 years agoInitial commit of the new sound system, expect more updates to follow
ehofman [Sun, 4 Oct 2009 13:52:27 +0000 (13:52 +0000)]
Initial commit of the new sound system, expect more updates to follow

15 years agojust small fixes
ehofman [Thu, 24 Sep 2009 07:07:36 +0000 (07:07 +0000)]
just small fixes

15 years agocheck for null effect in EffectCullVisitor
Tim Moore [Fri, 18 Sep 2009 13:43:46 +0000 (15:43 +0200)]
check for null effect in EffectCullVisitor

An EffectGeode might not have any effect.

15 years agoMerge branch 'tat/configure' into next
Tim Moore [Thu, 17 Sep 2009 10:25:19 +0000 (12:25 +0200)]
Merge branch 'tat/configure' into next

15 years agoTatsuhiro Nishioka:
torsten [Wed, 16 Sep 2009 17:01:47 +0000 (17:01 +0000)]
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.

15 years agoMerge branch 'topic/projection' into next
Tim Moore [Thu, 17 Sep 2009 10:22:06 +0000 (12:22 +0200)]
Merge branch 'topic/projection' into next

15 years agoCorrect finite precision issues.
frohlich [Wed, 16 Sep 2009 05:06:56 +0000 (05:06 +0000)]
Correct finite precision issues.
Use consistent function names.
Implement changes consistently over the different vector sizes.

Modified Files:
SGVec2.hxx SGVec3.hxx SGVec4.hxx

15 years agoMerge branch 'frohlich/weak' into next
Tim Moore [Thu, 17 Sep 2009 10:18:33 +0000 (12:18 +0200)]
Merge branch 'frohlich/weak' into next

15 years agoMake the weak pointer work. Some bits were left when importing.
frohlich [Wed, 16 Sep 2009 05:04:05 +0000 (05:04 +0000)]
Make the weak pointer work. Some bits were left when importing.

Modified Files:
SGSharedPtr.hxx SGWeakPtr.hxx

15 years agoLogging:less verbose sound loading.
jmt [Mon, 14 Sep 2009 12:36:35 +0000 (12:36 +0000)]
Logging:less verbose sound loading.

15 years agoLogging: quiet down STG parsing.
jmt [Mon, 14 Sep 2009 12:30:35 +0000 (12:30 +0000)]
Logging: quiet down STG parsing.

15 years agoLogging: quiet down model/image loading policy.
jmt [Mon, 14 Sep 2009 12:20:03 +0000 (12:20 +0000)]
Logging: quiet down model/image loading policy.

15 years agoLogging: quiet the BVH building policy.
jmt [Mon, 14 Sep 2009 12:18:20 +0000 (12:18 +0000)]
Logging: quiet the BVH building policy.

15 years agoLogging: quiet material loading.
jmt [Mon, 14 Sep 2009 12:09:49 +0000 (12:09 +0000)]
Logging: quiet material loading.

15 years agoLogging - downgrade play/stop messages to debug.
jmt [Mon, 14 Sep 2009 12:08:02 +0000 (12:08 +0000)]
Logging - downgrade play/stop messages to debug.

15 years agoImplement vector _projection_ functions.
John Denker [Sun, 11 Jan 2009 01:16:58 +0000 (18:16 -0700)]
Implement vector _projection_ functions.

15 years agoMake "repeat" start slower on pick-animation mouse events;
John Denker [Wed, 7 Jan 2009 11:22:13 +0000 (04:22 -0700)]
Make "repeat" start slower on pick-animation mouse events;

otherwise it is unusable.

15 years agoDont execute code in case the soundmanager isn't properly initialized
ehofman [Tue, 8 Sep 2009 13:50:55 +0000 (13:50 +0000)]
Dont execute code in case the soundmanager isn't properly initialized

15 years agoSwitch to new vector conversion functions.
frohlich [Mon, 7 Sep 2009 21:42:50 +0000 (21:42 +0000)]
Switch to new vector conversion functions.

Modified Files:
simgear/math/SGGeod.cxx simgear/math/SGQuat.hxx
simgear/math/SGVec2.hxx simgear/math/SGVec3.hxx
simgear/math/SGVec4.hxx simgear/scene/material/Effect.cxx
simgear/scene/model/SGInteractionAnimation.cxx
simgear/scene/model/SGMaterialAnimation.cxx
simgear/scene/model/SGRotateTransform.cxx
simgear/scene/model/SGScaleTransform.cxx
simgear/scene/model/SGTranslateTransform.cxx
simgear/scene/model/animation.cxx
simgear/scene/model/particles.cxx
simgear/scene/model/placement.cxx
simgear/scene/model/shadanim.cxx
simgear/scene/sky/CloudShaderGeometry.cxx
simgear/scene/sky/cloud.cxx simgear/scene/sky/cloudfield.cxx
simgear/scene/sky/dome.cxx simgear/scene/sky/sky.cxx
simgear/scene/tgdb/GroundLightManager.cxx
simgear/scene/tgdb/SGOceanTile.cxx
simgear/scene/tgdb/SGTexturedTriangleBin.hxx
simgear/scene/tgdb/SGVasiDrawable.cxx
simgear/scene/tgdb/TreeBin.cxx simgear/scene/tgdb/obj.cxx
  simgear/scene/tgdb/pt_lights.cxx
simgear/scene/util/SGUpdateVisitor.hxx

15 years agoFix problem with ocean files not recognized as water.
frohlich [Mon, 7 Sep 2009 20:37:19 +0000 (20:37 +0000)]
Fix problem with ocean files not recognized as water.
Move dynamic casts to EffectGeode into the findMaterial method.

Modified Files:
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/model/BoundingVolumeBuildVisitor.hxx

15 years agoAdd some comments.
frohlich [Sat, 5 Sep 2009 12:25:51 +0000 (12:25 +0000)]
Add some comments.
Make sure floating point constants do not introduce useless upcasts.
Remove now unused and not really usefull method.

Modified Files:
simgear/math/SGQuat.hxx

15 years agoAlso install coremag.hxx since it is being used by JSBSim now
ehofman [Sat, 5 Sep 2009 11:56:53 +0000 (11:56 +0000)]
Also install coremag.hxx since it is being used by JSBSim now

15 years agoRemove unused member.
frohlich [Sat, 5 Sep 2009 06:54:16 +0000 (06:54 +0000)]
Remove unused member.

Modified Files:
simgear/scene/util/SGSceneFeatures.hxx

15 years agoShould be now more easy to make use of SGMath without having osg.
frohlich [Sat, 5 Sep 2009 06:53:52 +0000 (06:53 +0000)]
Should be now more easy to make use of SGMath without having osg.

Modified Files:
simgear/scene/sky/dome.cxx simgear/math/SGGeod.cxx
simgear/math/SGGeod.hxx simgear/math/SGQuat.hxx
simgear/math/SGVec2.hxx simgear/math/SGVec3.hxx
simgear/math/SGVec4.hxx

15 years agoReturn a osg::Vec value instead of a non const reference.
frohlich [Thu, 3 Sep 2009 20:14:32 +0000 (20:14 +0000)]
Return a osg::Vec value instead of a non const reference.

Modified Files:
  scene/model/SGMaterialAnimation.cxx

15 years agoAvoid the non const SGVec*::osg() method.
frohlich [Thu, 3 Sep 2009 20:13:24 +0000 (20:13 +0000)]
Avoid the non const SGVec*::osg() method.

Modified Files:
  SGTranslateTransform.cxx SGScaleTransform.cxx
  SGRotateTransform.cxx

15 years agoUse const refs for const data.
frohlich [Thu, 3 Sep 2009 20:10:42 +0000 (20:10 +0000)]
Use const refs for const data.

Modified Files:
  simgear/scene/model/CheckSceneryVisitor.hxx
simgear/scene/model/CheckSceneryVisitor.cxx

15 years agoSpare one node in the scenegraph if there is no <offsets>
torsten [Sat, 29 Aug 2009 13:38:32 +0000 (13:38 +0000)]
Spare one node in the scenegraph if there is no  <offsets>

15 years agoChange trees code to use a faster OpenGL path
timoore [Tue, 25 Aug 2009 07:19:39 +0000 (07:19 +0000)]
Change trees code to use a faster OpenGL path

The (random) dimensions of a large number of trees is stored in an
array shared by all the tree geodes. The coordinates of the origin of
each tree are replicated in an another array. This allows an entire
block of trees to be rendered with a few OpenGL calls, instead of one
function call per tree.

15 years agosupport osgText in models
torsten [Mon, 24 Aug 2009 17:30:42 +0000 (17:30 +0000)]
support osgText in models

15 years agosupport osgText in models. See docs/README.osgtext for details
torsten [Mon, 24 Aug 2009 17:29:38 +0000 (17:29 +0000)]
support osgText in models. See docs/README.osgtext for details

15 years agoDon't load materials without a name
torsten [Fri, 21 Aug 2009 15:55:23 +0000 (15:55 +0000)]
Don't load materials without a name

15 years agoAvoid NAN due to floating point rounding errors
torsten [Fri, 21 Aug 2009 12:10:50 +0000 (12:10 +0000)]
Avoid NAN due to floating point rounding errors

15 years agoprevent division by zero
ehofman [Fri, 21 Aug 2009 07:43:01 +0000 (07:43 +0000)]
prevent division by zero

15 years ago Alan Teeder: fix incomplete dbg_printf for non-gcc.
torsten [Thu, 20 Aug 2009 15:24:32 +0000 (15:24 +0000)]
 Alan Teeder: fix incomplete dbg_printf for non-gcc.

15 years agodon't build tabbed_value_test, swap_test, openal_test1 and openal_test2 by default.
torsten [Thu, 20 Aug 2009 13:10:56 +0000 (13:10 +0000)]
don't build tabbed_value_test, swap_test, openal_test1 and openal_test2 by default.

15 years agowarning fix: unused variables
torsten [Thu, 20 Aug 2009 13:09:29 +0000 (13:09 +0000)]
warning fix: unused variables

15 years agoextinguish many warnings (at least for gcc)
torsten [Thu, 20 Aug 2009 13:09:00 +0000 (13:09 +0000)]
extinguish many warnings (at least for gcc)

15 years agowarning fix: initializing members in the order they are declared keeps gcc happy
torsten [Thu, 20 Aug 2009 13:08:03 +0000 (13:08 +0000)]
warning fix: initializing members in the order they are declared keeps gcc happy

15 years agowarning fixes
torsten [Thu, 20 Aug 2009 11:53:58 +0000 (11:53 +0000)]
warning fixes

15 years agoextinguish many warnings (at least for gcc)
torsten [Thu, 20 Aug 2009 11:44:37 +0000 (11:44 +0000)]
extinguish many warnings (at least for gcc)

15 years agowarning fix: abort program and spit out a message if getNumPrims() is called with...
torsten [Thu, 20 Aug 2009 11:09:37 +0000 (11:09 +0000)]
warning fix: abort program and spit out a message if getNumPrims() is called with unknown mode. (Shouldn't happen anyway)

15 years agowarning fix: unused variable
torsten [Thu, 20 Aug 2009 11:02:42 +0000 (11:02 +0000)]
warning fix: unused variable

15 years agowarning fix, unused code
torsten [Thu, 20 Aug 2009 11:02:00 +0000 (11:02 +0000)]
warning fix, unused code

15 years agodon't use uninitialized variables
torsten [Thu, 20 Aug 2009 10:55:24 +0000 (10:55 +0000)]
don't use uninitialized variables

15 years agowarning fixes
torsten [Thu, 20 Aug 2009 10:55:01 +0000 (10:55 +0000)]
warning fixes

15 years agowarning fixes
torsten [Thu, 20 Aug 2009 09:17:01 +0000 (09:17 +0000)]
warning fixes

15 years agowarning fixes
torsten [Thu, 20 Aug 2009 09:00:12 +0000 (09:00 +0000)]
warning fixes

15 years agowarning fix (multiline comment)
torsten [Thu, 20 Aug 2009 08:51:53 +0000 (08:51 +0000)]
warning fix (multiline comment)

15 years agowarning fix
torsten [Thu, 20 Aug 2009 08:43:15 +0000 (08:43 +0000)]
warning fix

15 years agowarning fixes
torsten [Thu, 20 Aug 2009 08:41:21 +0000 (08:41 +0000)]
warning fixes

15 years agoWarning fix: array subscript is above array bounds
torsten [Thu, 20 Aug 2009 08:32:31 +0000 (08:32 +0000)]
Warning fix: array subscript is above array bounds

15 years agoExpose the color of the sun (which is not the scene specular color anymore)
ehofman [Sun, 16 Aug 2009 19:33:58 +0000 (19:33 +0000)]
Expose the color of the sun (which is not the scene specular color anymore)

15 years agoDifferentiate between sun color (based in visibility) and scene color (based on humidity)
ehofman [Sun, 16 Aug 2009 08:42:23 +0000 (08:42 +0000)]
Differentiate between sun color (based in visibility) and scene color (based on humidity)

15 years ago Stuart Buchanan: I've been working on a small patch to allow trees to be grouped...
torsten [Sun, 9 Aug 2009 10:49:20 +0000 (10:49 +0000)]
 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.

15 years agoCompile under MSVC9
fredb [Sat, 8 Aug 2009 12:26:36 +0000 (12:26 +0000)]
Compile under MSVC9

15 years agoNew effects from Till Busch: crops, water, landmass
timoore [Sat, 8 Aug 2009 10:19:56 +0000 (10:19 +0000)]
New effects from Till Busch: crops, water, landmass

As shown at LinuxTag, with modifications from Tim Moore: the base
landmass texture is mixed with the steepness and snow effects. Till's
new syntax for textures in effect files was also added. syntax for
textures. Also, syntax for accessing internal textures, such as Till's
3D noise texture, was added.

Several bugs in the effect inheritance algorithm were fixed.

15 years agoAllow multiple <button> elements for <action> elements in pick animations. Nice to...
torsten [Tue, 28 Jul 2009 14:33:44 +0000 (14:33 +0000)]
Allow multiple <button> elements for <action> elements in pick animations. Nice to have to have a single action  for mouse-button and mouse-wheel.

15 years agoFix case typo
fredb [Mon, 27 Jul 2009 09:50:55 +0000 (09:50 +0000)]
Fix case typo

15 years agoSuppress warnings
fredb [Sun, 26 Jul 2009 20:24:57 +0000 (20:24 +0000)]
Suppress warnings

15 years agoCompile latest SimGear under MSVC9
fredb [Sun, 26 Jul 2009 18:53:29 +0000 (18:53 +0000)]
Compile latest SimGear under MSVC9

15 years agoCreate a singleton for the parser table
Tim Moore [Sun, 19 Jul 2009 21:05:04 +0000 (23:05 +0200)]
Create a singleton for the parser table

15 years agoMove definition of SGRawBase<...>::printOn out of simgear namespace
Tim Moore [Sun, 19 Jul 2009 20:39:16 +0000 (22:39 +0200)]
Move definition of SGRawBase<...>::printOn out of simgear namespace

They are declared in the global namespace, and MSVC insists that they be
defined there.

15 years agoAdd missing return statements
Tim Moore [Sat, 18 Jul 2009 08:12:59 +0000 (10:12 +0200)]
Add missing return statements

15 years agoStore material data with Effect
Tim Moore [Fri, 17 Jul 2009 14:16:25 +0000 (16:16 +0200)]
Store material data with Effect

Somehow this got left out, which broke ground intersection queries.

15 years agoChange references to property types
Tim Moore [Fri, 17 Jul 2009 12:52:58 +0000 (14:52 +0200)]
Change references to property types

BOOL, FLOAT etc. conflict with typedefs in windows.h, so these types
are referred to using the props:: namespace.

15 years agoChanged SGRawValue::DefaultValue to an inline function.
Tim Moore [Fri, 17 Jul 2009 09:40:36 +0000 (11:40 +0200)]
Changed SGRawValue::DefaultValue to an inline function.

This avoids MSVC bugs in declaring templated specializations of static members.

15 years agoUse SGAtomic's compareAndExchange instead of a new SGSwappable class
Tim Moore [Thu, 16 Jul 2009 22:29:48 +0000 (00:29 +0200)]
Use SGAtomic's compareAndExchange instead of a new SGSwappable class

Also, eliminate the __declspec(32) of that class which is causing problems
in osg::buffered_object.

15 years agoinclude file change to make simgear work with OSG 2.9.X again
Tim Moore [Thu, 16 Jul 2009 21:09:10 +0000 (23:09 +0200)]
include file change to make simgear work with OSG 2.9.X again

15 years agoFix effects code to work with OSG 2.8.2-rc4
Tim Moore [Thu, 16 Jul 2009 16:25:36 +0000 (18:25 +0200)]
Fix effects code to work with OSG 2.8.2-rc4

15 years agoUse std::back_inserter instead of my local hack
Tim Moore [Thu, 16 Jul 2009 10:53:11 +0000 (12:53 +0200)]
Use std::back_inserter instead of my local hack

BackRefInsertIterator is probably broken and may not be needed at all.

15 years agoAdd new Effects files to vcproj
timoore [Wed, 15 Jul 2009 23:12:25 +0000 (23:12 +0000)]
Add new Effects files to vcproj

15 years agoFixes for technique predicates
timoore [Wed, 15 Jul 2009 23:11:55 +0000 (23:11 +0000)]
Fixes for technique predicates

Get tests based on properties and OpenGL extensions working.

15 years agomore effects features
timoore [Wed, 15 Jul 2009 23:11:44 +0000 (23:11 +0000)]
more effects features

Materials can specify an effect.

Add support for PolygonMode and initial support for Uniform.

15 years agoConstruct effects from property lists
timoore [Wed, 15 Jul 2009 23:10:44 +0000 (23:10 +0000)]
Construct effects from property lists

The material code constructs a property list from its input parameters.

Enable dumping of Pass and Technique objects to a file.

Default effect now uses texture node instead of texture0

15 years agomaterials use only simgear::Effect
timoore [Wed, 15 Jul 2009 23:10:32 +0000 (23:10 +0000)]
materials use only simgear::Effect

Eliminate SGMaterial::get_state function.

Use Effect in BVH visitor, ocean tile generation, and airport signs.

15 years agoUse Effect to implement point lights
timoore [Wed, 15 Jul 2009 23:10:21 +0000 (23:10 +0000)]
Use Effect to implement point lights

This allows different OpenGL features (point sprites, point attenuation) to
be used depending on hardware support.

15 years agoUse SGExpressions for evaluating a Technique's validity
timoore [Wed, 15 Jul 2009 23:10:13 +0000 (23:10 +0000)]
Use SGExpressions for evaluating a Technique's validity