]> git.mxchange.org Git - simgear.git/log
simgear.git
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

15 years agoOverhaul of SGExpression
timoore [Wed, 15 Jul 2009 23:10:06 +0000 (23:10 +0000)]
Overhaul of SGExpression

Polymorphic additions to expressions: Add an expression base class
with a method for dynamically determining the type of an expression.

Add variables, predicates and boolian expressions.

Support for parsing trees of expressions

15 years agoWork in progress for Technique validation
timoore [Wed, 15 Jul 2009 23:09:58 +0000 (23:09 +0000)]
Work in progress for Technique validation

15 years agoUse Effects in materials library, and therefore in scenery
timoore [Wed, 15 Jul 2009 23:09:31 +0000 (23:09 +0000)]
Use Effects in materials library, and therefore in scenery

15 years agoEffects framework
timoore [Wed, 15 Jul 2009 23:09:19 +0000 (23:09 +0000)]
Effects framework

15 years agoBlow away unused SGMaterialLib::add_item functions
timoore [Wed, 15 Jul 2009 23:08:42 +0000 (23:08 +0000)]
Blow away unused SGMaterialLib::add_item functions

15 years agocleanup
timoore [Wed, 15 Jul 2009 23:08:36 +0000 (23:08 +0000)]
cleanup

Add support for boost::mem_fn to SGSharedPtr.

Remove a couple of "using" declarations from scene/model/model.hxx

15 years agoAdd PropertyList typedef for vectors of property list nodes.
timoore [Wed, 15 Jul 2009 23:08:30 +0000 (23:08 +0000)]
Add PropertyList typedef for vectors of property list nodes.

15 years agoAdd a method to setStringValue that takes a std::string argument
timoore [Wed, 15 Jul 2009 23:08:22 +0000 (23:08 +0000)]
Add a method to setStringValue that takes a std::string argument

15 years agoDon't cache results of getDisplayName
timoore [Wed, 15 Jul 2009 23:08:10 +0000 (23:08 +0000)]
Don't cache results of getDisplayName

Return a std::string result instead of char *.

15 years agoAdd VEC3D and VEC4D property types
timoore [Wed, 15 Jul 2009 23:08:01 +0000 (23:08 +0000)]
Add VEC3D and VEC4D property types

Add "extended" argument to readProperties, which controls whether the vector
 property types are accepted by the XML reader.

15 years agoExtend properties to support new property types.
timoore [Wed, 15 Jul 2009 23:07:53 +0000 (23:07 +0000)]
Extend properties to support new property types.

An SGRawBase class has been added as a base class to the SGRawValue
hierarchy so that SGPropertyValue functions don't necessarily need to
know the type of the value stored in the node.

A new SGRawValueContainer class stores properties that shouldn't be
stored in the node itself. PropertyTraits indicates if a type is
stored in the property node or externally.

Add getValue and SetValue template member functions to SGPropertyNode.

Read and write new extended properties.

Rearrange props.hxx a bit so that the template magic actually works.

Split out extended raw value virtual functions into a seperate base class.

SGRawExtended is chosen as a base class of SGRawValue for extended property
types.

15 years agoCleanup of properties
timoore [Wed, 15 Jul 2009 23:07:45 +0000 (23:07 +0000)]
Cleanup of properties

Change most uses of the SGPropertyNode _value union to use static_cast.

Move SGPropertyNode::Type out of the class into simgear::props namespace. Add
a PropertyTraits class so that templates can calculate the property type tag
based on a C++ type.

In destructor, delete _value.val if it is not 0 (and the property is not
aliased).

15 years agoRefactor GLX only debug code
fredb [Sun, 12 Jul 2009 17:48:49 +0000 (17:48 +0000)]
Refactor GLX only debug code

15 years agoCompile when not GLX
fredb [Mon, 6 Jul 2009 22:58:09 +0000 (22:58 +0000)]
Compile when not GLX

15 years agoGeoff McLane:
ehofman [Thu, 2 Jul 2009 14:01:38 +0000 (14:01 +0000)]
Geoff McLane:
add a bunch of debugging code to find a persistant bug for Atlas/Map and fix them one by one.

15 years agoSupport MSVC 64-bit architecture
fredb [Sun, 28 Jun 2009 22:20:22 +0000 (22:20 +0000)]
Support MSVC 64-bit architecture

15 years agoAdd MSVC90 (VS2008) project files
fredb [Sun, 28 Jun 2009 20:27:15 +0000 (20:27 +0000)]
Add MSVC90 (VS2008) project files

15 years agoUpdate MSVC 7.1 projects - Put PLIB and FLTK in 3rdParty
fredb [Sun, 28 Jun 2009 13:34:31 +0000 (13:34 +0000)]
Update MSVC 7.1 projects - Put PLIB and FLTK in 3rdParty

15 years agoRemove unneeded explicit scenegraph deletion.
frohlich [Sun, 28 Jun 2009 09:19:04 +0000 (09:19 +0000)]
Remove unneeded explicit scenegraph deletion.

Modified Files:
simgear/scene/tgdb/TileCache.cxx
  simgear/scene/tgdb/TileEntry.cxx
simgear/scene/tgdb/TileEntry.hxx

15 years agoRemove unmaintained, outdated and misleading project files. Use VC7.1 projects instead
fredb [Sat, 27 Jun 2009 21:45:25 +0000 (21:45 +0000)]
Remove unmaintained, outdated and misleading project files. Use VC7.1 projects instead

15 years agoSuppress warnings
fredb [Sat, 27 Jun 2009 07:41:33 +0000 (07:41 +0000)]
Suppress warnings

15 years agoWin32 fix
fredb [Sat, 27 Jun 2009 06:41:08 +0000 (06:41 +0000)]
Win32 fix

15 years agoProvide a thread safe SGWeakPtr implementation.
frohlich [Wed, 24 Jun 2009 05:19:52 +0000 (05:19 +0000)]
Provide a thread safe SGWeakPtr implementation.
Extend SGAtomic with atomic exchange and add.
Import updates from the original implementation of that in OpenFDM.

Modified Files:
  Makefile.am SGAtomic.cxx SGAtomic.hxx SGReferenced.hxx
  SGSharedPtr.hxx
Added Files:
  SGWeakPtr.hxx SGWeakReferenced.hxx

15 years agoUpdate MSVC 7.1 projects
fredb [Tue, 23 Jun 2009 20:35:41 +0000 (20:35 +0000)]
Update MSVC 7.1 projects

15 years agoWin32 fix
fredb [Tue, 23 Jun 2009 20:35:17 +0000 (20:35 +0000)]
Win32 fix

15 years agoNo observed_ptr needed.
frohlich [Tue, 23 Jun 2009 20:34:46 +0000 (20:34 +0000)]
No observed_ptr needed.

Modified Files:
simgear/scene/model/ModelRegistry.cxx

15 years agoRemove unused headers.
frohlich [Tue, 23 Jun 2009 20:26:57 +0000 (20:26 +0000)]
Remove unused headers.

Modified Files:
simgear/scene/tgdb/TileEntry.cxx

15 years agoPropagate the lanel loader through the options.
frohlich [Tue, 23 Jun 2009 20:26:26 +0000 (20:26 +0000)]
Propagate the lanel loader through the options.

Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx

15 years agoMove the carrier interactive geometry configuration into the model files.
frohlich [Mon, 22 Jun 2009 18:39:44 +0000 (18:39 +0000)]
Move the carrier interactive geometry configuration into the model files.

Modified Files:
Makefile.am animation.cxx
Added Files:
SGInteractionAnimation.hxx SGInteractionAnimation.cxx

15 years agoMove the texture code to FlightGear/utils/Modeller
ehofman [Mon, 22 Jun 2009 09:35:12 +0000 (09:35 +0000)]
Move the texture code to FlightGear/utils/Modeller

15 years agoAdd some trailing spaces ...
frohlich [Sat, 20 Jun 2009 11:11:48 +0000 (11:11 +0000)]
Add some trailing spaces ...

Modified Files:
  ./simgear/math/SGIntersect.hxx

15 years agoFix a warning from GCC - 'ALIAS' was unhandled in the switch stmt.
jmt [Sat, 20 Jun 2009 09:33:44 +0000 (09:33 +0000)]
Fix a warning from GCC - 'ALIAS' was unhandled in the switch stmt.

15 years agochange MAX_PATH to max_path to avoid Windows compilation problems
Tim Moore [Wed, 17 Jun 2009 09:37:21 +0000 (11:37 +0200)]
change MAX_PATH to max_path to avoid Windows compilation problems

15 years agooverhaul sg_throwable to behave like a proper exception
Tim Moore [Wed, 4 Mar 2009 10:15:47 +0000 (11:15 +0100)]
overhaul sg_throwable to behave like a proper exception

Make sg_throwable inherit from std::exception.

change exception objects to contain C strings: exception objects should not
include objects, like std::string, whose copy constructor could throw.

15 years agoAdd a simple class to subdivide Bezier curves
fredb [Sun, 14 Jun 2009 10:56:28 +0000 (10:56 +0000)]
Add a simple class to subdivide Bezier curves

15 years agoRemove unused variable
fredb [Sun, 14 Jun 2009 10:53:09 +0000 (10:53 +0000)]
Remove unused variable

15 years agoFinally get rid of that member in the SGModelData callback.
frohlich [Thu, 11 Jun 2009 18:53:19 +0000 (18:53 +0000)]
Finally get rid of that member in the SGModelData callback.
Move call of SGModelData::modelLoaded directly into the xml reader.

Modified Files:
  simgear/scene/model/SGPagedLOD.cxx
  simgear/scene/model/modellib.hxx
  simgear/scene/model/modellib.cxx
  simgear/scene/model/SGReaderWriterXML.cxx

15 years agoMark static transforms as static.
frohlich [Thu, 11 Jun 2009 18:32:46 +0000 (18:32 +0000)]
Mark static transforms as static.

Modified Files:
simgear/scene/tgdb/TileEntry.cxx

15 years agoRevert a change from 2009/06/07.
frohlich [Thu, 11 Jun 2009 13:39:52 +0000 (13:39 +0000)]
Revert a change from 2009/06/07.
Should make the Nasal code for some xml models work again.

Modified Files:
  simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/SGReaderWriterXML.cxx
  simgear/scene/model/modellib.cxx
simgear/scene/model/modellib.hxx

15 years agoAlso handle PagedLOD nodes frame count in the update visitor.
frohlich [Thu, 11 Jun 2009 08:42:44 +0000 (08:42 +0000)]
Also handle PagedLOD nodes frame count in the update visitor.

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

15 years agoAlso test against bounds when updating the scene.
frohlich [Thu, 11 Jun 2009 07:15:07 +0000 (07:15 +0000)]
Also test against bounds when updating the scene.

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

15 years agoFix waypoint test, thanks Martin.
jmt [Wed, 10 Jun 2009 22:46:15 +0000 (22:46 +0000)]
Fix waypoint test, thanks Martin.