]> git.mxchange.org Git - simgear.git/log
simgear.git
17 years agoRefined debug timing control:
durk [Sat, 17 Nov 2007 09:16:58 +0000 (09:16 +0000)]
Refined debug timing control:
 - Added a SampleStatistic class (from the old deprecated libg++) library.
 - Make time statistics and printing conditionable
 - Added an interface function to switch time stamp collection and printing
   on and off from the application (defaults to off).

17 years agoImproove texture sharing.
frohlich [Fri, 9 Nov 2007 05:55:50 +0000 (05:55 +0000)]
Improove texture sharing.

17 years agoUpdate node masks
frohlich [Fri, 9 Nov 2007 05:52:58 +0000 (05:52 +0000)]
Update node masks

17 years agoIn the original flightgear native/binary scenery terrain data format, we
curt [Mon, 5 Nov 2007 21:42:29 +0000 (21:42 +0000)]
In the original flightgear native/binary scenery terrain data format, we
used short's extensively to represent counts of objects (number of points,
number of texture coordinates, number of traingle strips, etc.) and we used
shorts to index into larger structures.  But this capped many of our structure
sizes to a maximum of 32768.

By switching to unsigned shorts in the future, we can double the maximum
object/index counts without losing anything.  This was a pretty major
oversight in our original specification.

I have bumped up the native object file version from 6 to 7 and added code
in the reader to maintain full backwards compatibilty with version 6
scenery files (i.e. the current 0.9.10 scenery release.)

Curt.

17 years ago- A few fixes to ensure SimGear compiles again on cygwin.
durk [Mon, 15 Oct 2007 18:49:50 +0000 (18:49 +0000)]
- A few fixes to ensure SimGear compiles again on cygwin.
  * on cygwin, isnan is declared in ieeepf.h
  * CYGWIN is a special case in that it is windows based, but sometimes
    folows unix conventions. SGAtomic compilation failed on an illegal
    volatile type cast without the additional __CYGWIN__ define check.

17 years ago* Fixed memory leak in RenderTexture.cpp (tiny, but still...)
durk [Sun, 14 Oct 2007 13:46:13 +0000 (13:46 +0000)]
* Fixed memory leak in RenderTexture.cpp (tiny, but still...)
* Added Timestamping debugging code to SGSubsystems (ported from plib
  branch).

17 years agoAdd ability to override existing model files with .osg files.
timoore [Fri, 12 Oct 2007 22:46:35 +0000 (22:46 +0000)]
Add ability to override existing model files with .osg files.

This enables off-line optimization of models and other special effects.

17 years agoManage OSG object cache explicitly
timoore [Fri, 12 Oct 2007 22:46:13 +0000 (22:46 +0000)]
Manage OSG object cache explicitly

Don't have Registry::ReadNodeImplementation store its results in the
object cache; instead store the optimized model in the cache.

17 years agobetter standard compliance: allow empty top level tags (<PropertyList>)
mfranz [Wed, 10 Oct 2007 12:45:53 +0000 (12:45 +0000)]
better standard compliance: allow empty top level tags (<PropertyList>)

17 years agoDon't reset the random texture base when rebuilding a cloud layer
timoore [Thu, 4 Oct 2007 20:53:22 +0000 (20:53 +0000)]
Don't reset the random texture base when rebuilding a cloud layer
This fix removes obnoxious visuals (texture jumping) when a cloud
layer is moved due to a metar update or, more significantly, when
switching from metar to a scenario. Also, I switched to using a TexMat
to displace the cloud texture in order to avoid writing the texture
array every frame.

17 years agoOrder the cloud layers properly using OSG RenderBin
timoore [Tue, 2 Oct 2007 21:43:52 +0000 (21:43 +0000)]
Order the cloud layers properly using OSG RenderBin

17 years agoocean state set in osg::Geometry
timoore [Sun, 30 Sep 2007 19:51:49 +0000 (19:51 +0000)]
ocean state set in osg::Geometry

Put the ocean tile state set in osg::Geometry, not the osg::Geode, so that
is readily available during intersection testing and can be used to find the
corresponding SGMaterial.

Problem reported by grtux (gh.robin@laposte.net)

17 years agoFix material animations with only a <texture-prop>
timoore [Wed, 5 Sep 2007 22:12:00 +0000 (22:12 +0000)]
Fix material animations with only a <texture-prop>

On 8/31/07, K. Hoercher <wbhoer@gmail.com> wrote:
> > Some notes:
> > - I found that in order to make the example from model-howto.html work
> > ( starting at "To make a texture replaceable at runtime") one has to
> > specify a valid (i.e. loadable) <texture>  in the material animation.

The cause seems to be the condition in SGMaterialAnimation.cxx l.277
ignoring any texture update by the UpdateCallback (only there
<texture-prop> is looked at)  without an already existing stateSet.
That in turn will not be created with a <texture-prop> alone l. 379ff.

Unless I overlooked some compelling reason contradicting, I'd like to
suggest allowing for a stateSet to be created for those situations
too. I think that would match the behaviour of animation.cxx
(PRE_OSG_PLIB_20061029) and is imho the more expected and also
documented one.

17 years agoChange "FlightGear" to "SimGear" of course.
durk [Sat, 1 Sep 2007 12:57:53 +0000 (12:57 +0000)]
Change "FlightGear" to "SimGear" of course.

17 years agoAdded a check for OpenSceneGraph and created some basic documentation.
durk [Sat, 1 Sep 2007 12:55:46 +0000 (12:55 +0000)]
Added a check for OpenSceneGraph and created some basic documentation.

17 years agoAdd separate check for openal and ALUT, as these are now separate.
durk [Sat, 1 Sep 2007 10:04:36 +0000 (10:04 +0000)]
Add separate check for openal and ALUT, as these are now separate.

17 years agoDocumentation fixes: Updated the contents of README.plib and README.OpenAL
durk [Sat, 1 Sep 2007 09:45:21 +0000 (09:45 +0000)]
Documentation fixes: Updated the contents of README.plib and README.OpenAL
Also make sure that these files are included in the release. This is
required, since ./configure refers to these files.

17 years agoAdd curvature to ocean tiles.
timoore [Sun, 12 Aug 2007 21:03:43 +0000 (21:03 +0000)]
Add curvature to ocean tiles.

An apron around the tile hides cracks with coastal tiles.

The VectorArrayAdapter, which lives in the simgear namespace, is a useful
utility class for treating vectors as 2D arrays.

17 years agoOcean tile detail work in progress
timoore [Sun, 12 Aug 2007 21:02:54 +0000 (21:02 +0000)]
Ocean tile detail work in progress

17 years agoUpdate MSVC 7.1 projects
fredb [Sun, 12 Aug 2007 13:40:16 +0000 (13:40 +0000)]
Update MSVC 7.1 projects

17 years agoFix a typo
fredb [Sun, 12 Aug 2007 13:32:42 +0000 (13:32 +0000)]
Fix a typo

17 years agoModified Files:
frohlich [Tue, 7 Aug 2007 05:26:21 +0000 (05:26 +0000)]
Modified Files:
projects/VC7.1/SimGear.vcproj projects/VC8/SimGear.vcproj
simgear/math/Makefile.am simgear/math/SGGeoc.hxx
simgear/math/SGGeodesy.cxx simgear/math/SGGeodesy.hxx
simgear/math/polar3d.hxx simgear/math/sg_geodesy.hxx
simgear/math/sg_types.hxx
Removed Files:
simgear/math/polar3d.cxx simgear/math/sg_geodesy.cxx
simgear/math/sg_memory.h:
Remove sg_memory.h It is unused anyway and should not be required
in a c++ world. Move distance course functions to the SG* type
system. Move the implementation into SGGeodesy.cxx. Remove some of
the old Point3D Based sg* functions that are already unused.

17 years agoModified Files:
frohlich [Tue, 7 Aug 2007 04:59:09 +0000 (04:59 +0000)]
Modified Files:
projects/VC8/SimGear.vcproj:
MSVC8 Build system updates from Olaf Flebbe.

17 years agoMelchior discovered that call(call) would crash due to a longstanding bug with argume...
andy [Wed, 1 Aug 2007 22:46:12 +0000 (22:46 +0000)]
Melchior discovered that call(call) would crash due to a longstanding bug with argument parsing

17 years agoFix crash in code generator for some bad lvalue expressions
andy [Wed, 1 Aug 2007 22:33:01 +0000 (22:33 +0000)]
Fix crash in code generator for some bad lvalue expressions

17 years agoAdd ppc64 to the list of supported platforms based on testing by Tom Callaway at...
andy [Tue, 31 Jul 2007 20:57:21 +0000 (20:57 +0000)]
Add ppc64 to the list of supported platforms based on testing by Tom Callaway at Red Hat

17 years agoFix ocean texture scaling problem.
timoore [Tue, 31 Jul 2007 06:39:26 +0000 (06:39 +0000)]
Fix ocean texture scaling problem.

17 years agoRemove an extern SGSky *thesky reference that isn't used in the code anyway.
curt [Tue, 31 Jul 2007 01:21:21 +0000 (01:21 +0000)]
Remove an extern SGSky *thesky reference that isn't used in the code anyway.
The original code forced a dependency in SimGear back to something that is
defined globaly in FlightGear, not a great strategy for a library with some
"general purpose" intentions.

17 years agoOSG Reader and Writer for BTG files
timoore [Sun, 29 Jul 2007 22:32:58 +0000 (22:32 +0000)]
OSG Reader and Writer for BTG files

This is part of a somewhat long road towards terrain database paging using
OSG's database pager thread.

17 years agoModified Files:
frohlich [Fri, 27 Jul 2007 19:27:24 +0000 (19:27 +0000)]
Modified Files:
simgear/math/SGGeoc.hxx: Fix unit conversion problem

17 years agoSimGear: Typo in Thanks file
timoore [Mon, 23 Jul 2007 22:00:31 +0000 (22:00 +0000)]
SimGear: Typo in Thanks file

Fix typo

Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
Committer: Tim Moore <moore@redhat.com>

17 years agoSimGear: Properly print compilers in configure.ac
timoore [Mon, 23 Jul 2007 21:45:11 +0000 (21:45 +0000)]
SimGear: Properly print compilers in configure.ac

Print $CC and $CXX using the proper configure.ac mechanism

Author: Hans Ulrich Niedermann <hun@n-dimensional.de>
Signed-off-by: Tim Moore <timoore@redhat.com>
17 years agoAllow parallel make ("make -j2") by giving make the opportunity to
timoore [Sun, 22 Jul 2007 22:37:26 +0000 (22:37 +0000)]
Allow parallel make ("make -j2") by giving make the opportunity to
determine dependencies.

As in subdirectory foo/bar, $(top_builddir)/foo/bar is defined to be the
current directory, this does not cause any regressions.

From Hans Ulrich Niedermann (hun@n-dimensional.de)

17 years agoSupport for reading and writing nodes in .osg files, plus some new accessors.
timoore [Sun, 22 Jul 2007 20:06:20 +0000 (20:06 +0000)]
Support for reading and writing nodes in .osg files, plus some new accessors.

17 years agocoding style fixes
mfranz [Sun, 22 Jul 2007 13:58:26 +0000 (13:58 +0000)]
coding style fixes

17 years agoMaik JUSTUS: workaround for broken Doppler effect in OpenAL
mfranz [Sun, 22 Jul 2007 13:50:24 +0000 (13:50 +0000)]
Maik JUSTUS: workaround for broken Doppler effect in OpenAL

mf: this patch is meant to be removed as soon as OpenAL got fixed. (The
    OpenAL developers acknowleged the bug and announced that it'll get
    fixed.) For removal try
    $ cd simgear/sound
    $ cvs diff -rAFTER_OPENAL_DOPPLER_WORKAROUND -rBEFORE_OPENAL_DOPPLER_WORKAROUND|patch

17 years agoMaik JUSTUS: Doppler fixes (add option to turn off Doppler for sounds that
mfranz [Sun, 22 Jul 2007 13:33:23 +0000 (13:33 +0000)]
Maik JUSTUS: Doppler fixes (add option to turn off Doppler for sounds that
             shouldn't be affected -- marker beep, ATIS messages, etc.)

mf: this is the first part of the original patch. It is supposed to contain
    fixes that are not caused by OpenAL bugs, and thus aren't meant to be
    reverted later. The second part will contain a temprary workaround for
    OpenAL bugs. Unfortunately, I had to do the split myself as the contributor
    refused to do it.

17 years ago- close loophole through which one could sneak in illegal property names
mfranz [Tue, 17 Jul 2007 14:52:51 +0000 (14:52 +0000)]
- close loophole through which one could sneak in illegal property names
  containing slashes, colons and all sorts of evil characters. In Nasal
  this could be done via props.globals.getChild("1!@#$//[]{}", 0, 1).setValue(0);
  The cause is that getChild() hands the given name directly over to an
  alternative SGPropertyNode ("convenience") constructor which sets the
  name without any checks.
- unify exception messages: first character is lower case

17 years agoModified Files:
frohlich [Sun, 8 Jul 2007 08:43:40 +0000 (08:43 +0000)]
Modified Files:
simgear/route/route.hxx: Remove unused include.

17 years agoModified Files:
frohlich [Sun, 8 Jul 2007 08:43:15 +0000 (08:43 +0000)]
Modified Files:
simgear/route/waypoint.hxx simgear/route/waypoint.cxx: Use const
refs where possible.

17 years agoreplace exit() by throw sg_exception(). Of course, we have to be aware
mfranz [Mon, 2 Jul 2007 15:42:19 +0000 (15:42 +0000)]
replace exit() by throw sg_exception(). Of course, we have to be aware
that interdependencies between sg libs are generally unwelcome, but
sg_exception is a rather basic part, and it's already used by xml, props,
scene, sound and, of course, structure. Since props and xml are core
libs, we can assume that sg_exceptions are available.  (OK'ed by Curt)

17 years agoadd SG_ORIGIN macro that expands to a string __FILE__":"__LINE__
mfranz [Mon, 2 Jul 2007 12:55:10 +0000 (12:55 +0000)]
add SG_ORIGIN macro that expands to a string  __FILE__":"__LINE__
Note that __LINE__ is a number and can't be directly used in string
context, which makes the macro worthwhile. (IMHO :-)

17 years agoback out last changes (radar patch)
mfranz [Fri, 29 Jun 2007 22:45:37 +0000 (22:45 +0000)]
back out last changes (radar patch)

17 years agoeasyxml.cxx: add missing endXML visitor call
mfranz [Fri, 29 Jun 2007 10:46:52 +0000 (10:46 +0000)]
easyxml.cxx: add missing endXML visitor call
testEasyXML.cxx: beef it up

17 years agoVivian MEAZZA: add support for aircraft radar signatures
mfranz [Sun, 24 Jun 2007 08:09:07 +0000 (08:09 +0000)]
Vivian MEAZZA: add support for aircraft radar signatures

17 years agodon't only complain that the volume is larger than 1.0, but say how much
mfranz [Sat, 23 Jun 2007 16:48:01 +0000 (16:48 +0000)]
don't only complain that the volume is larger than 1.0, but say how much
it actually is

17 years agoMaik JUSTUS: fix/implement directional sound
mfranz [Thu, 21 Jun 2007 21:46:21 +0000 (21:46 +0000)]
Maik JUSTUS: fix/implement directional sound

17 years agod'oh ... beautify the TRACE message that we actually see! :-}
mfranz [Tue, 19 Jun 2007 18:22:32 +0000 (18:22 +0000)]
d'oh ... beautify the TRACE message that we actually see!  :-}

17 years agobeautify TRACE message
mfranz [Tue, 19 Jun 2007 18:11:06 +0000 (18:11 +0000)]
beautify TRACE message

17 years agosooner than planned: fix "scale" animation offsets (1 -> 0)
mfranz [Sun, 17 Jun 2007 21:01:40 +0000 (21:01 +0000)]
sooner than planned: fix "scale" animation offsets (1 -> 0)

17 years agoUpdate MSVC 7.1 projects
fredb [Sat, 16 Jun 2007 16:14:23 +0000 (16:14 +0000)]
Update MSVC 7.1 projects

17 years agoMSVC 7 compilation
fredb [Sat, 16 Jun 2007 16:13:29 +0000 (16:13 +0000)]
MSVC 7 compilation

17 years agoNick WARNE: add file name to screenshot info line
mfranz [Thu, 14 Jun 2007 20:20:18 +0000 (20:20 +0000)]
Nick WARNE: add file name to screenshot info line

17 years agoadvance tracing messages from SG_INFO to SG_ALERT. If a developer has
mfranz [Mon, 11 Jun 2007 16:09:50 +0000 (16:09 +0000)]
advance tracing messages from SG_INFO to SG_ALERT. If a developer has
demanded tracing, then he shouldn't get these important messages buried
in thousands of lines of meaningless bulk.

17 years ago- allow for (rather unusual) ////// cloud groups
mfranz [Sat, 9 Jun 2007 18:36:56 +0000 (18:36 +0000)]
- allow for (rather unusual) ////// cloud groups
- fix potential use of uninitialized memory: dew

17 years agoModified Files:
frohlich [Fri, 8 Jun 2007 06:50:16 +0000 (06:50 +0000)]
Modified Files:
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx
simgear/scene/util/SGSceneFeatures.cxx
simgear/scene/util/SGSceneFeatures.hxx:
Olaf Flebbe: Make use of SGSceneFeatues for anisotropic filtering,
clean up.

17 years agoRemoved Files:
frohlich [Fri, 8 Jun 2007 06:40:56 +0000 (06:40 +0000)]
Removed Files:
simgear/scene/tgdb/leaf.cxx: Now obsolete but not yet removed.

17 years agoModified Files:
frohlich [Sun, 3 Jun 2007 18:28:14 +0000 (18:28 +0000)]
Modified Files:
scene/tgdb/SGOceanTile.cxx: add missing transform for the ocean
tile.

17 years agoModified Files:
frohlich [Sun, 3 Jun 2007 18:21:04 +0000 (18:21 +0000)]
Modified Files:
simgear/scene/model/model.cxx
simgear/scene/util/SGSceneFeatures.cxx
simgear/scene/util/SGSceneFeatures.hxx:
Make sure textures are shared. Do not rely on a graphics
context to be available on model loading.

17 years agoSync with Nasal upstream. Mostly fixes to naContinue(), which
andy [Wed, 30 May 2007 22:49:41 +0000 (22:49 +0000)]
Sync with Nasal upstream.  Mostly fixes to naContinue(), which
FlightGear doesn't use.  Also includes a performance fix for the
call() builtin that should help Melchior, who was measuring lower
performance for the props.Node() interface than the getprop/setprop
API.

17 years agoModified Files:
frohlich [Wed, 30 May 2007 13:16:53 +0000 (13:16 +0000)]
Modified Files:
projects/VC8/SimGear.vcproj: Olaf FLebbe win32 build system.

17 years agoModified Files:
frohlich [Wed, 30 May 2007 13:07:05 +0000 (13:07 +0000)]
Modified Files:
simgear/scene/model/SGMaterialAnimation.cxx:
Olaf Flebbe: Use brakets around bitwise operations.
Greetings from LinuxTag, Berlin ... :)

17 years agoI guess we aren't using explicit destructors here.
curt [Wed, 30 May 2007 12:34:24 +0000 (12:34 +0000)]
I guess we aren't using explicit destructors here.

17 years agoMake an explicit destructor so the compiler doesn't get confused about
curt [Tue, 29 May 2007 19:38:17 +0000 (19:38 +0000)]
Make an explicit destructor so the compiler doesn't get confused about
non matching exception types with the implicitely defined destructor.

17 years agoModified Files:
frohlich [Mon, 28 May 2007 07:13:07 +0000 (07:13 +0000)]
Modified Files:
simgear/scene/model/Makefile.am
simgear/scene/model/animation.cxx
simgear/scene/model/animation.hxx
Added Files:
simgear/scene/model/SGRotateTransform.cxx
simgear/scene/model/SGRotateTransform.hxx
simgear/scene/model/SGScaleTransform.cxx
simgear/scene/model/SGScaleTransform.hxx
simgear/scene/model/SGTranslateTransform.cxx
simgear/scene/model/SGTranslateTransform.hxx:
Factor out some useful classes.

17 years agoModified Files:
frohlich [Mon, 28 May 2007 05:13:03 +0000 (05:13 +0000)]
Modified Files:
simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx:
Olaf Flebbe: Improoved texture filtering.

17 years agoModified Files:
frohlich [Mon, 28 May 2007 05:06:14 +0000 (05:06 +0000)]
Modified Files:
SGAtomic.hxx: Also use atomic compiler intrinsics on SGI

17 years agoModified Files:
frohlich [Mon, 28 May 2007 05:00:28 +0000 (05:00 +0000)]
Modified Files:
simgear/bucket/newbucket.cxx simgear/bucket/newbucket.hxx
simgear/io/decode_binobj.cxx simgear/io/sg_binobj.cxx
simgear/io/sg_binobj.hxx simgear/math/SGVec2.hxx
simgear/math/SGVec3.hxx simgear/math/SGVec4.hxx
simgear/scene/material/mat.hxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/model/Makefile.am simgear/scene/tgdb/Makefile.am
simgear/scene/tgdb/obj.cxx simgear/scene/tgdb/obj.hxx
simgear/scene/tgdb/pt_lights.cxx
simgear/scene/tgdb/pt_lights.hxx
simgear/scene/util/Makefile.am
simgear/scene/util/SGNodeMasks.hxx
simgear/scene/util/SGTextureStateAttributeVisitor.cxx
Added Files:
simgear/scene/model/SGOffsetTransform.cxx
simgear/scene/model/SGOffsetTransform.hxx
simgear/scene/tgdb/SGDirectionalLightBin.hxx
simgear/scene/tgdb/SGLightBin.hxx
simgear/scene/tgdb/SGOceanTile.cxx
simgear/scene/tgdb/SGOceanTile.hxx
simgear/scene/tgdb/SGTexturedTriangleBin.hxx
simgear/scene/tgdb/SGTriangleBin.hxx
simgear/scene/tgdb/SGVasiDrawable.cxx
simgear/scene/tgdb/SGVasiDrawable.hxx
simgear/scene/tgdb/SGVertexArrayBin.hxx
simgear/scene/util/SGEnlargeBoundingBox.cxx
simgear/scene/util/SGEnlargeBoundingBox.hxx
simgear/scene/util/SGSceneFeatures.cxx
simgear/scene/util/SGSceneFeatures.hxx
Removed Files:
simgear/scene/tgdb/leaf.hxx simgear/scene/tgdb/vasi.hxx:
Reorganize tile loaders.
Build bigger leafs for the tiles.
Move runway light colors into materials.xml.
Split out classes that might be useful at other places.
Avoid static storage on binobject loading.

17 years agoGCC on ppc linux uses a different architecture symbol than the same compiler on OS X
andy [Fri, 25 May 2007 15:49:10 +0000 (15:49 +0000)]
GCC on ppc linux uses a different architecture symbol than the same compiler on OS X

17 years agoModified Files:
frohlich [Fri, 18 May 2007 07:29:37 +0000 (07:29 +0000)]
Modified Files:
SGVec3.hxx: Fix a problem in perpendicular triangle computation.
Solves problem with invalid triangles in ground picking ...

17 years agoModified Files:
frohlich [Fri, 18 May 2007 04:46:11 +0000 (04:46 +0000)]
Modified Files:
SGVec2.hxx SGVec3.hxx SGVec4.hxx point3d.hxx: Provide ordering
relations for use with std::less in tree bases std:: containers.

17 years agoFix a compiler warning.
curt [Wed, 16 May 2007 16:08:17 +0000 (16:08 +0000)]
Fix a compiler warning.

17 years agoFix various compiler warnings.
curt [Wed, 16 May 2007 16:07:03 +0000 (16:07 +0000)]
Fix various compiler warnings.

17 years agoTim Moore
mfranz [Tue, 15 May 2007 22:28:08 +0000 (22:28 +0000)]
Tim Moore

17 years agoadd Mathias and Maik (to make it look less selfish that I add myself :-)
mfranz [Tue, 15 May 2007 22:02:06 +0000 (22:02 +0000)]
add Mathias and Maik (to make it look less selfish that I add myself :-)
I'm sure I forgot a lot of people, but it's a start.

17 years agos/resistence/resistance/
mfranz [Sun, 13 May 2007 11:53:06 +0000 (11:53 +0000)]
s/resistence/resistance/

17 years agoModified Files:
frohlich [Tue, 8 May 2007 06:11:15 +0000 (06:11 +0000)]
Modified Files:
simgear/bucket/newbucket.hxx simgear/scene/material/mat.cxx
simgear/scene/material/matlib.cxx
simgear/scene/material/matlib.hxx
simgear/scene/model/location.cxx
simgear/scene/tgdb/apt_signs.cxx simgear/scene/tgdb/leaf.cxx
simgear/scene/tgdb/leaf.hxx simgear/scene/tgdb/obj.cxx
simgear/scene/tgdb/obj.hxx
simgear/scene/util/SGUpdateVisitor.hxx: Reorganize scenegraph to
simplify top level structure.

17 years agoAdd method to return the number of attached listeners. Listeners have become
mfranz [Mon, 7 May 2007 14:03:44 +0000 (14:03 +0000)]
Add method to return the number of attached listeners. Listeners have become
a much more important feature than they were two years or something ago, and
it's helpful for debugging and exploration to get this important node property
shown in property tree dumps or in the property browser (verbose mode).

17 years ago- fix bug where a property tree saved with writeProperties() and read back
mfranz [Sun, 6 May 2007 17:33:15 +0000 (17:33 +0000)]
- fix bug where a property tree saved with writeProperties() and read back
  in with readProperties() would not look the same, because element indices
  of '0' were even dropped when a node has a "secret" value *and* children

- introduce "omit-node" modifier attribute for the "include" attribute.
  This inserts the given file in place of the including node, while the
  node is dropped. This is desirable for multiple includes (which can't
  be done by multiply using the "include" attribute, as this isn't valid
  XML spec syntax)

17 years agobetter warning text for <global> in material animations
mfranz [Sat, 5 May 2007 11:16:35 +0000 (11:16 +0000)]
better warning text for <global> in material animations

17 years agoModified Files:
frohlich [Sat, 5 May 2007 09:15:18 +0000 (09:15 +0000)]
Modified Files:
SGMaterialAnimation.cxx SGMaterialAnimation.hxx:
Tim Moore: overhaul the material animation.

17 years agoModified Files:
frohlich [Thu, 3 May 2007 19:46:13 +0000 (19:46 +0000)]
Modified Files:
simgear/scene/model/animation.hxx
simgear/scene/model/shadanim.cxx: Tim Moore: the crom shader.

17 years agoEmpty vectors work much better as the result of sorting an empty array
andy [Wed, 2 May 2007 22:29:35 +0000 (22:29 +0000)]
Empty vectors work much better as the result of sorting an empty array
than nil does...

17 years agoFix crash when sorting newly-allocated empty vectors
andy [Wed, 2 May 2007 22:24:45 +0000 (22:24 +0000)]
Fix crash when sorting newly-allocated empty vectors

17 years agodon't rely on a compressed scanline being properly closed
mfranz [Sat, 28 Apr 2007 23:13:13 +0000 (23:13 +0000)]
don't rely on a compressed scanline being properly closed
(GIMP apparently generates corrupted files)

17 years agoSGTexture::read_rgb(a)_texture:
mfranz [Sat, 28 Apr 2007 12:30:38 +0000 (12:30 +0000)]
SGTexture::read_rgb(a)_texture:
- support greyscale and greyscale/alpha format
- cleanup & make it faster

17 years agoModified Files:
frohlich [Sat, 21 Apr 2007 12:24:43 +0000 (12:24 +0000)]
Modified Files:
projects/VC8/SimGear.vcproj: Olaf Flebbe: Updates to the win32
build system.

17 years agoModified Files:
frohlich [Sat, 21 Apr 2007 12:13:16 +0000 (12:13 +0000)]
Modified Files:
  simgear/scene/material/mat.cxx simgear/scene/material/mat.hxx:
Olaf Flebbe: make anisotroüpic filtering configurable.

17 years agoMelchior found a bug with negative values in default function arguments
andy [Fri, 6 Apr 2007 20:35:38 +0000 (20:35 +0000)]
Melchior found a bug with negative values in default function arguments

17 years agosync with Nasal CVS (added a sort() builtin)
andy [Fri, 6 Apr 2007 14:52:06 +0000 (14:52 +0000)]
sync with Nasal CVS (added a sort() builtin)

17 years agoCsaba HALASZ:
mfranz [Fri, 6 Apr 2007 09:54:35 +0000 (09:54 +0000)]
Csaba HALASZ:
- fix bug that messed up leg distances after inserting and deleting waypoints
  not at the end of the route
- move add_waypoint() and delete_waypoint from hxx to cxx
- beef up routetest

17 years agoUpdate MSVC 7.1 projects
fredb [Tue, 3 Apr 2007 11:35:19 +0000 (11:35 +0000)]
Update MSVC 7.1 projects

17 years agoAvoid potential memory leak problems when exceptions are thrown by using reference...
fredb [Tue, 3 Apr 2007 11:25:07 +0000 (11:25 +0000)]
Avoid potential memory leak problems when exceptions are thrown by using reference objects

17 years agoFix typo in _M_IX86
andy [Mon, 2 Apr 2007 21:32:41 +0000 (21:32 +0000)]
Fix typo in _M_IX86

17 years agoRewrite substr() to properly clamp its argument ranges and handle negative start...
andy [Mon, 2 Apr 2007 18:28:38 +0000 (18:28 +0000)]
Rewrite substr() to properly clamp its argument ranges and handle negative start arguments as offset-from-end values

17 years agoAdd missing free functions for win32
andy [Mon, 2 Apr 2007 17:34:47 +0000 (17:34 +0000)]
Add missing free functions for win32

17 years agoUse __FUNCTION__, which works on gcc and MSVC 7/8, instead of
andy [Mon, 2 Apr 2007 16:14:54 +0000 (16:14 +0000)]
Use __FUNCTION__, which works on gcc and MSVC 7/8, instead of
__func__, which while standardized works only with gcc.  I'll wait for
bug reports from VC6 before bothering with fallback code...

17 years agoMelchior points out that NaN/Inf behavior is not platform-independent.
andy [Fri, 30 Mar 2007 16:42:22 +0000 (16:42 +0000)]
Melchior points out that NaN/Inf behavior is not platform-independent.
So toss a runtime error ("floating point error") when any of the math
library functions produce a non-finite value.  Note that these are not
the only locations that can do that (simply dividing by zero will
produce an Inf), but it's still proper behavior.

17 years agoSync with Nasal CVS (soon to become Nasal 1.1). Notable new features:
andy [Thu, 29 Mar 2007 18:50:12 +0000 (18:50 +0000)]
Sync with Nasal CVS (soon to become Nasal 1.1).  Notable new features:

Nasal now supports calls to "subcontexts" and errors can be thrown
across them, leading to complete stack traces when call() is used,
instead of the truncated ones we now see.

Vectors can now be concatenated using the ~ operator that used to work
only for strings.

Better runtime error messages in general due to a fancier
naRuntimeError() implementation

A big data size shrink on 64 bit systems; the size of a naRef dropped
by a factor of two.

"Braceless code blocks" have been added to the parser, so you can
write expressions like "if(a) b();" just like in C.  Note that there's
still a parser bug in there that fails when you nest a braced block
within a braceless one.

Character constants that appear in Nasal source code can now be
literal multibyte UTF8 characters (this was always supported for
string literals, but character constants were forced to be a single
byte).

New modules: "bits", "thread", "utf8" and (gulp...) "io".  The bits
library might be useful to FlightGear, the utf8 one probably not as
Plib does not support wide character text rendering.  The thread
library will work fine for spawning threads to do Nasal stuff, but
obviously contact with the rest of FlightGear must be
hand-synchronized as FlightGear isn't threadsafe.  The io library is
no doubt the most useful, as it exposes all the basic stdio.h
facilities; it's also frighteningly dangerous when combined with
networked code...

17 years agoCsaba HALASZ: when a path_cache ceases to exist, unregister from all nodes
mfranz [Sat, 17 Feb 2007 10:50:49 +0000 (10:50 +0000)]
Csaba HALASZ: when a path_cache ceases to exist, unregister from all nodes
              that had been told that this node is linking to them

mf: remove old erase-by-key methods; they are now unused and always were
    problematic, so they won't be used in the future either