]> git.mxchange.org Git - simgear.git/log
simgear.git
11 years agoFix Linux compile: "free" needs stdlib.h.
ThorstenB [Thu, 4 Oct 2012 19:11:35 +0000 (21:11 +0200)]
Fix Linux compile: "free" needs stdlib.h.
Also move to .cxx file to avoid another include dependency in the header.

11 years agoInitial work on making OpenAL private to the sound code.
James Turner [Sun, 30 Sep 2012 18:41:51 +0000 (19:41 +0100)]
Initial work on making OpenAL private to the sound code.

11 years agoscenery: remove default zero reader writer options argument.
Mathias Froehlich [Wed, 3 Oct 2012 20:04:47 +0000 (22:04 +0200)]
scenery: remove default zero reader writer options argument.

11 years agoscenery: Make sure makeEffects has reader writer options.
Mathias Froehlich [Wed, 3 Oct 2012 18:23:05 +0000 (20:23 +0200)]
scenery: Make sure makeEffects has reader writer options.

11 years agoImprove decode_bin output slightly.
James Turner [Sun, 30 Sep 2012 15:44:22 +0000 (16:44 +0100)]
Improve decode_bin output slightly.

11 years agoHandle isnan at a more central place.
Mathias Froehlich [Thu, 27 Sep 2012 16:39:18 +0000 (18:39 +0200)]
Handle isnan at a more central place.

Do not distribute architecture specific
code across a lot of places.

11 years agoFix line segment plane intersect.
Mathias Froehlich [Wed, 26 Sep 2012 20:45:12 +0000 (22:45 +0200)]
Fix line segment plane intersect.

11 years agobvh: Build bigger leaf nodes for paged bvh nodes.
Mathias Froehlich [Tue, 25 Sep 2012 21:42:14 +0000 (23:42 +0200)]
bvh: Build bigger leaf nodes for paged bvh nodes.

Flatten the leaf nodes in the paged bounding volume tree
as good as possible. The implementation still assumes a
whole world database which actually holds for our usual
scenery.

11 years agoscene: Factor out a common primitive functor.
Mathias Froehlich [Tue, 25 Sep 2012 21:42:14 +0000 (23:42 +0200)]
scene: Factor out a common primitive functor.

This kind of work is done two times for different
flavours of bounding volume generation. Factor
out and use this in BVHPageNodeOSG.cxx and
BoundingVolumeBuildVisitor.hxx.

11 years agobvh: Make BVHPageNode::_Request fields private.
Mathias Froehlich [Tue, 25 Sep 2012 18:03:04 +0000 (20:03 +0200)]
bvh: Make BVHPageNode::_Request fields private.

11 years agoProvide a definition for GL_SAMPLE_ALPHA_TO_COVERAGE_ARB
Frederic Bouvier [Wed, 26 Sep 2012 06:38:04 +0000 (08:38 +0200)]
Provide a definition for GL_SAMPLE_ALPHA_TO_COVERAGE_ARB

11 years agoMSVC has no std::isnan
Frederic Bouvier [Wed, 26 Sep 2012 06:36:56 +0000 (08:36 +0200)]
MSVC has no std::isnan

11 years agoAdd alpha-to-coverage GL parameter to effects code.
Stuart Buchanan [Tue, 25 Sep 2012 21:51:37 +0000 (22:51 +0100)]
Add alpha-to-coverage GL parameter to effects code.

11 years agoMacro to disable the copy-constructor.
James Turner [Mon, 24 Sep 2012 22:18:57 +0000 (23:18 +0100)]
Macro to disable the copy-constructor.

Another toolkit I use has an explicit macro for this, which is nice for readability, so I've borrowed it here.

11 years agoSGTime: use SGGeod, quieter init.
James Turner [Sun, 23 Sep 2012 23:02:11 +0000 (00:02 +0100)]
SGTime: use SGGeod, quieter init.

It's common to use SGTime to calculate the the Julian Date, without providing time-zone information. Don't warn in these cases, since the behaviour is fine.

11 years agoAdd another overload of SGGeodesy::direct
James Turner [Sun, 23 Sep 2012 20:43:42 +0000 (21:43 +0100)]
Add another overload of SGGeodesy::direct

11 years agoSound Manager: support subsystem reinit,
ThorstenB [Fri, 21 Sep 2012 13:06:58 +0000 (15:06 +0200)]
Sound Manager: support subsystem reinit,
move initialization stuff to standard init phase.
Prevent AL calls when sound was never initialized.

11 years agoAvoid signed/unsigned compiler warning.
ThorstenB [Fri, 21 Sep 2012 10:55:40 +0000 (12:55 +0200)]
Avoid signed/unsigned compiler warning.
We don't really need a signed int here.

11 years agomat.cxx: fix an error reported by Valgrind
Christian Schmitt [Wed, 19 Sep 2012 08:10:14 +0000 (10:10 +0200)]
mat.cxx: fix an error reported by Valgrind

11 years agoSupport for incremental init of subsystems.
James Turner [Tue, 18 Sep 2012 19:26:28 +0000 (20:26 +0100)]
Support for incremental init of subsystems.

Allow subsystem init to be incremental, i.e requiring repeated init calls until a 'done' code is returned. Use this to support incremental init in groups and the manager. (It would also be possible to support it in an individual subsystem).

Note that if you use the existing init() calls, behaviour is unchanged.

11 years agoSort fgfs source files in IDE folders - Don't work for headers though
Frederic Bouvier [Sun, 16 Sep 2012 19:19:11 +0000 (21:19 +0200)]
Sort fgfs source files in IDE folders - Don't work for headers though

11 years agocmake: Make rti/hla compile again.
Mathias Froehlich [Sun, 16 Sep 2012 19:13:26 +0000 (21:13 +0200)]
cmake: Make rti/hla compile again.

11 years agostg: Fix typo.
Mathias Froehlich [Sun, 16 Sep 2012 16:39:16 +0000 (18:39 +0200)]
stg: Fix typo.

11 years agoOption to use system, instead of built-in, expat
James Turner [Sun, 16 Sep 2012 16:07:35 +0000 (17:07 +0100)]
Option to use system, instead of built-in, expat

At least one Linux distribution packager of FG has complained that we're bundling expat in our binaries. To keep them happy, add the option (-DSYSTEM_EXPAT=1 at cmake time) to use the system expat instead.

For the moment (and simplicity), this requires building SIMGEAR_SHARED (which is fired to on by selecting the option).

11 years agoAdd convenience method for tiedPropertyLists
ThorstenB [Sun, 16 Sep 2012 15:56:38 +0000 (17:56 +0200)]
Add convenience method for tiedPropertyLists

11 years agoDe-virtualise SGSky to avoid a clang warning.
James Turner [Sun, 16 Sep 2012 15:34:10 +0000 (16:34 +0100)]
De-virtualise SGSky to avoid a clang warning.

Clang was complaining that SGSky has virtual methods, but no virtual destructor. It turns out we're never subclassing SGSky - it's used directly. Hence, remove all the 'virtual' attributes from its methods.

11 years agoKill off MIPS compatibility header.
James Turner [Sun, 16 Sep 2012 15:27:22 +0000 (16:27 +0100)]
Kill off MIPS compatibility header.

CMake has never supported the MIPS compatibility headers, or indeed building using MIPSpro. If someone wishes to re-add MIPS/IRIX support, I'm hoping they will be using a compiler with functional standard library headers!

11 years agoAdd an SG_UNUSED macro to SimGear.
James Turner [Sun, 16 Sep 2012 15:25:11 +0000 (16:25 +0100)]
Add an SG_UNUSED macro to SimGear.

Imitate Q_UNSUED from Qt, and provide a Simgear 'unused var' warning suppression macro. Fix up one place where the previous warning suppression attempt (assigning to self) was still producing a warning under clang.

11 years agoStandardise SimGear libraries, for static vs shared.
James Turner [Sun, 16 Sep 2012 15:04:08 +0000 (16:04 +0100)]
Standardise SimGear libraries, for static vs shared.

Always create only two SimGear libraries: SimGearCore and SimGearStatic, regardless of whether we're building static or shared. This requires an updated to FindSimGear.cmake module, for the static configuration.

11 years agopt_lights: softly fade in and out the blinking lights
Christian Schmitt [Fri, 14 Sep 2012 14:31:42 +0000 (16:31 +0200)]
pt_lights: softly fade in and out the blinking lights

11 years agopt_lights: add some randomness to the blinking interval of the hold short lights
Christian Schmitt [Fri, 14 Sep 2012 08:14:31 +0000 (10:14 +0200)]
pt_lights: add some randomness to the blinking interval of the hold short lights

11 years agoImprove memory occupancy and load time of random buildings.
Stuart Buchanan [Wed, 12 Sep 2012 21:45:12 +0000 (22:45 +0100)]
Improve memory occupancy and load time of random buildings.

11 years agoScene: use better clipping mode for material textures.
Christian Schmitt [Wed, 12 Sep 2012 10:26:01 +0000 (12:26 +0200)]
Scene: use better clipping mode for material textures.
This eliminates the black borders on runways between threshold and
designation textures and also between two designation numbers.

Thanks to Emilian for tracking this down!

11 years agoSigns: if the size is not allowed by the spec, print out a more meaningful warning
Christian Schmitt [Tue, 4 Sep 2012 08:27:07 +0000 (10:27 +0200)]
Signs: if the size is not allowed by the spec, print out a more meaningful warning
to help identify the problematic line.

11 years agoFix libsvn detection for some Linux distros
ThorstenB [Mon, 3 Sep 2012 21:51:38 +0000 (23:51 +0200)]
Fix libsvn detection for some Linux distros
Distros like Debian/Ubuntu use architecture-specific directory structures
(like /usr/lib/x86_64-linux-gnu) which we cannot hardcode/guess, so we
really need to search the default paths.

11 years agoSupport MS VS2012
Frederic Bouvier [Mon, 3 Sep 2012 15:32:26 +0000 (17:32 +0200)]
Support MS VS2012

11 years agoTry to discover the most recent Boost version installed in MSVC_ROOT (Windows only)
Frederic Bouvier [Sun, 2 Sep 2012 10:43:21 +0000 (12:43 +0200)]
Try to discover the most recent Boost version installed in MSVC_ROOT (Windows only)

11 years agoUgly hack to please Boost 1.51.0
Frederic Bouvier [Sun, 2 Sep 2012 10:22:20 +0000 (12:22 +0200)]
Ugly hack to please Boost 1.51.0

11 years agoRemove plib dep references from documentation files
Christian Schmitt [Wed, 29 Aug 2012 10:08:27 +0000 (12:08 +0200)]
Remove plib dep references from documentation files

11 years agoRemove plib reference
Christian Schmitt [Tue, 28 Aug 2012 11:04:25 +0000 (13:04 +0200)]
Remove plib reference

11 years agoRemove unused source files
Christian Schmitt [Tue, 28 Aug 2012 10:59:33 +0000 (12:59 +0200)]
Remove unused source files

11 years agoCMake: fix underlinking
Julian Ospald [Tue, 28 Aug 2012 08:37:22 +0000 (10:37 +0200)]
CMake: fix underlinking

11 years agobvh: Fix headless build.
Mathias Froehlich [Mon, 27 Aug 2012 16:00:01 +0000 (18:00 +0200)]
bvh: Fix headless build.

11 years agoscene: Allow ground based elevations in stg files.
Mathias Froehlich [Sun, 26 Aug 2012 12:58:39 +0000 (14:58 +0200)]
scene: Allow ground based elevations in stg files.

PLEASE do not use this feature for many objects over
fine tesselated ground. But for convenience make this work.

11 years agobtg: Lights are much better visible.
Mathias Froehlich [Sat, 25 Aug 2012 15:29:41 +0000 (17:29 +0200)]
btg: Lights are much better visible.

11 years agobvh: add missing include.
Mathias Froehlich [Sat, 25 Aug 2012 15:28:21 +0000 (17:28 +0200)]
bvh: add missing include.

11 years agoscenery: OptionsReadFileCallback for use with reader writer options.
Mathias Froehlich [Sat, 25 Aug 2012 09:54:00 +0000 (11:54 +0200)]
scenery: OptionsReadFileCallback for use with reader writer options.

The new callback has a default implementation of the callback
methods that do call back into the registrys callback before
calling the registrys implementation directly.
This is meant to be used together with ReaderWriterOptions that
still want to call back into the normal callback chain of the
registry.

11 years agoscene: Reorganize stg loading.
Mathias Froehlich [Sat, 25 Aug 2012 06:43:12 +0000 (08:43 +0200)]
scene: Reorganize stg loading.

This is in preparation loading the non btg objects
in a seperate page node. Reorganize this code again.

11 years agostg: Add flag to load only specific parts of the stg files.
Mathias Froehlich [Sat, 25 Aug 2012 06:43:12 +0000 (08:43 +0200)]
stg: Add flag to load only specific parts of the stg files.

The flags are meant to be used for fgelev and for an ai
module that will probably only need ground elevation queries
in those reagions where the aircraft simulated there will roll
that is on airports.

11 years agobvh: Implement paging for osg derived bvh trees.
Mathias Froehlich [Fri, 24 Aug 2012 19:20:40 +0000 (21:20 +0200)]
bvh: Implement paging for osg derived bvh trees.

11 years agobvh: Add an abstract pager implementation.
Mathias Froehlich [Fri, 24 Aug 2012 19:20:40 +0000 (21:20 +0200)]
bvh: Add an abstract pager implementation.

Implement a paging implementation for bounding
volume hierarchy nodes. We will need this for
hla clients that need ground queries.

11 years agobvh: Introduce BVHMaterial independent of SGMaterial.
Mathias Froehlich [Fri, 24 Aug 2012 19:20:40 +0000 (21:20 +0200)]
bvh: Introduce BVHMaterial independent of SGMaterial.

The bounding volumes in core should not depend on scenery.
Therefore reference material properties relevant for the BVH
tree in BVHMaterial.

11 years agobvh: Move the basic bounding volume tree functionality into core.
Mathias Froehlich [Fri, 24 Aug 2012 19:20:40 +0000 (21:20 +0200)]
bvh: Move the basic bounding volume tree functionality into core.

The basic boundignvolume implementation does only need math and
geometry. As such it is agnostic to the scenegraph being used.
Only the parts building this query structure from terrain
depend on the implementation of the terrain.
So, move this into the simgear core component.

11 years agoRefactor mat.hxx header.
James Turner [Wed, 22 Aug 2012 18:02:46 +0000 (19:02 +0100)]
Refactor mat.hxx header.

Avoid many includes in mat.hxx, so ground testing code (e.g., Yasim) doesn't end up pulling in many OSG and scene classes.

11 years agoFix more Linux warnings/errors.
James Turner [Tue, 21 Aug 2012 22:49:30 +0000 (23:49 +0100)]
Fix more Linux warnings/errors.

(I'm away from the VM I would normally use to test such things before pushing, apologies for the churn)

11 years agoFix tests linkage when building static libs.
James Turner [Tue, 21 Aug 2012 21:55:04 +0000 (22:55 +0100)]
Fix tests linkage when building static libs.

11 years agoUnbreak Linux: malloc() needs <cstdlib>
James Turner [Tue, 21 Aug 2012 21:49:36 +0000 (22:49 +0100)]
Unbreak Linux: malloc() needs <cstdlib>

11 years agoRemove a couple of lingering alut references.
James Turner [Tue, 21 Aug 2012 18:25:33 +0000 (19:25 +0100)]
Remove a couple of lingering alut references.

11 years agoRemove ALUT usage from SimGear .
James Turner [Tue, 21 Aug 2012 12:18:45 +0000 (13:18 +0100)]
Remove ALUT usage from SimGear .

Adapt the freealut code into a WAV-file reader. As a side-effect, it would now be possible to deploy WAV files compressed with gzip, since we use ZLib's gzread functions to read from disk.

11 years agoCompatibility fix
Frederic Bouvier [Sat, 18 Aug 2012 12:53:14 +0000 (14:53 +0200)]
Compatibility fix

11 years agoChristoph Korn/PlayDeb.net: support additional architechtures
ThorstenB [Fri, 17 Aug 2012 21:48:41 +0000 (23:48 +0200)]
Christoph Korn/PlayDeb.net: support additional architechtures

11 years agoRestore auto-detection of SVN libs on Windows
Frederic Bouvier [Wed, 15 Aug 2012 21:02:29 +0000 (23:02 +0200)]
Restore auto-detection of SVN libs on Windows

11 years agohla: Add virtual method for creating data elements.
Mathias Froehlich [Sun, 12 Aug 2012 09:45:10 +0000 (11:45 +0200)]
hla: Add virtual method for creating data elements.

11 years agoMac changes for Subversion bundling.
James Turner [Sat, 11 Aug 2012 14:21:52 +0000 (15:21 +0100)]
Mac changes for Subversion bundling.

11 years agochange dynamic variance of effect attributes
Tim Moore [Mon, 6 Aug 2012 08:58:51 +0000 (10:58 +0200)]
change dynamic variance of effect attributes

Previously, any effect attribute that was set via effect parameters i.e., was
not a constant value, was marked with data variance DYNAMIC. Now, only
attributes that get their values from the property tree are so marked.

11 years agohla: Do not call time advance with non positive increment.
Mathias Froehlich [Sat, 4 Aug 2012 08:53:48 +0000 (10:53 +0200)]
hla: Do not call time advance with non positive increment.

11 years agoMerge branch 'timoore/optimizations' into next
Tim Moore [Fri, 3 Aug 2012 20:33:57 +0000 (22:33 +0200)]
Merge branch 'timoore/optimizations' into next

11 years agoadd libosgGA to OpenSceneGraph libraries used with tests
Tim Moore [Fri, 3 Aug 2012 20:32:39 +0000 (22:32 +0200)]
add libosgGA to OpenSceneGraph libraries used with tests

The DeletionManager needs osgGA. This becomes apparent when building shared
libraries.

11 years agoMerge branch 'timoore/optimizations' into next
Tim Moore [Fri, 3 Aug 2012 18:15:36 +0000 (20:15 +0200)]
Merge branch 'timoore/optimizations' into next

11 years agoDeletionManager
Tim Moore [Fri, 3 Aug 2012 15:15:15 +0000 (17:15 +0200)]
DeletionManager

Class for safely deleting objects that may be active in different threads.
This is now used in the implementation of spin animations.

11 years agobug: 823 change rotation animation to use a subclass of SGRotateTransform
Tim Moore [Thu, 2 Aug 2012 15:26:31 +0000 (17:26 +0200)]
bug: 823 change rotation animation to use a subclass of SGRotateTransform

The animation is implemented in the computeWorldToLocalMatrix() and
computeLocalToWorldMatrix() virtual functions. Doing the animation in a cull
callback breaks picking.

Fix for http://code.google.com/p/flightgear-bugs/issues/detail?id=823

11 years agoAllow a <parameters> section of a material definition, to pass parameters straight...
Stuart Buchanan [Wed, 1 Aug 2012 20:06:59 +0000 (21:06 +0100)]
Allow a <parameters> section of a material definition, to pass parameters straight into the effect.

11 years agoMake dependent template lookups explicit.
James Turner [Mon, 30 Jul 2012 23:57:09 +0000 (00:57 +0100)]
Make dependent template lookups explicit.

Clang (in Xcode 4.4) is being strict about dependent lookup rules, so apply the recommended fix-it.

11 years agohla: Remove reference to deprecated VariantDataType.
Mathias Froehlich [Sun, 29 Jul 2012 18:58:07 +0000 (20:58 +0200)]
hla: Remove reference to deprecated VariantDataType.

11 years agohla: Remove deprecated ObjectModelFactory interface.
Mathias Froehlich [Sun, 29 Jul 2012 18:43:39 +0000 (20:43 +0200)]
hla: Remove deprecated ObjectModelFactory interface.

11 years agohla: Remove deprecated AttributeCallback.
Mathias Froehlich [Sun, 29 Jul 2012 14:16:20 +0000 (16:16 +0200)]
hla: Remove deprecated AttributeCallback.

11 years agospt: Disable particle systems under a PagedLOD.
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
spt: Disable particle systems under a PagedLOD.

11 years agohla: Add HLABoolDataElement.
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
hla: Add HLABoolDataElement.

11 years agohla: Make HLAFixedRecordDataElement work with delayed data type setting.
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
hla: Make HLAFixedRecordDataElement work with delayed data type setting.

11 years agomath: Remove obsolete commented out code.
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
math: Remove obsolete commented out code.

11 years agohla: Remove deprecated methods from HLAObjectClass
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
hla: Remove deprecated methods from HLAObjectClass

11 years agohla: Remove deprecated tick method.
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
hla: Remove deprecated tick method.

11 years agohla: Remove deprecated types and methods from HLADataElement.
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
hla: Remove deprecated types and methods from HLADataElement.

11 years agohla: Remove deprecated HLAVariant* in favour of HLAVariantRecord*
Mathias Froehlich [Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)]
hla: Remove deprecated HLAVariant* in favour of HLAVariantRecord*

11 years agoMerge branch 'timoore/optimizations' into next
Tim Moore [Thu, 19 Jul 2012 22:37:39 +0000 (00:37 +0200)]
Merge branch 'timoore/optimizations' into next

Some changes aimed at reducing the cost of the huge scene graph.

11 years agoset name string for update callbacks
Tim Moore [Thu, 19 Jul 2012 22:34:47 +0000 (00:34 +0200)]
set name string for update callbacks

This makes it easier to find nodes with update callbacks in the scene graph dump.

11 years agochange optimizer options for models
Tim Moore [Thu, 19 Jul 2012 22:32:22 +0000 (00:32 +0200)]
change optimizer options for models

Tristrips are old and busted, index meshes are the new hotness :)

11 years agoprune empty quadtree leaves created for random vegatation
Tim Moore [Thu, 19 Jul 2012 22:30:53 +0000 (00:30 +0200)]
prune empty quadtree leaves created for random vegatation

A lot of empty primitive sets were being left in the per-tile random vegatation quadtree.

11 years agoReplace rotation animation update callbacks with cull callbacks
Tim Moore [Wed, 18 Jul 2012 22:42:38 +0000 (00:42 +0200)]
Replace rotation animation update callbacks with cull callbacks

Update callbacks are expensive because they force large parts of the scenegraph to be traversed
by OSG.

11 years agoAdd warning for in-source-directory builds.
ThorstenB [Tue, 17 Jul 2012 17:18:05 +0000 (19:18 +0200)]
Add warning for in-source-directory builds.

11 years agoAdd dot-files to gitignore.
ThorstenB [Tue, 17 Jul 2012 17:14:45 +0000 (19:14 +0200)]
Add dot-files to gitignore.

11 years agoBump simgear version to 2.9.0
ThorstenB [Tue, 17 Jul 2012 16:48:38 +0000 (18:48 +0200)]
Bump simgear version to 2.9.0

11 years agoAdd a node mask bit for permanent lights (needed by Rembrandt)
Frederic Bouvier [Mon, 16 Jul 2012 18:06:53 +0000 (20:06 +0200)]
Add a node mask bit for permanent lights (needed by Rembrandt)

11 years agoMore node mask fix
Frederic Bouvier [Sat, 14 Jul 2012 11:00:05 +0000 (13:00 +0200)]
More node mask fix

11 years agoFix degenerate random building placement case which resulted in buildings
Stuart Buchanan [Fri, 13 Jul 2012 19:00:06 +0000 (20:00 +0100)]
Fix degenerate random building placement case which resulted in buildings
being placed outside of the triangle bounds.

11 years agoPrecipitation don't cast shadows
Frederic Bouvier [Fri, 13 Jul 2012 15:53:00 +0000 (17:53 +0200)]
Precipitation don't cast shadows

11 years agoCorrect index used by building.eff for lightmap.
Stuart Buchanan [Thu, 12 Jul 2012 15:31:27 +0000 (16:31 +0100)]
Correct index used by building.eff for lightmap.

11 years agoSuppress unnecessary "failed alias" warnings
ThorstenB [Sat, 7 Jul 2012 14:05:02 +0000 (16:05 +0200)]
Suppress unnecessary "failed alias" warnings
when requested alias matches existing alias anyway (identical aliases can
be created on repeated sim resets)

11 years agoFix bug where two references to a png object mask used against
Stuart Buchanan [Fri, 6 Jul 2012 20:38:15 +0000 (21:38 +0100)]
Fix bug where two references to a png object mask used against
a dds terrain texture resulted in the object mask being flipped twice,
having no overall effect!

11 years agoFix further possible memory leaks by using osg::ref_ptr for vertex
Stuart Buchanan [Wed, 4 Jul 2012 23:10:07 +0000 (00:10 +0100)]
Fix further possible memory leaks by using osg::ref_ptr for vertex
arrays in random buildings and random vegetation.  Also change
normals on trees to be per-vertex as some graphics cards apparently
find this easier to deal with.