]> git.mxchange.org Git - simgear.git/log
simgear.git
15 years agoStuart:
fredb [Wed, 26 Nov 2008 07:28:10 +0000 (07:28 +0000)]
Stuart:
> Something has changed in the environment manager which means that clouds
> generateion is now inconsistent. I'm still tracking it down, as my recent
> changes shouldn't have affected this.

Well, the cause was a bug in my code, but it didn't expose itself until we moved
to multiple cameras. The attached patch fixes the problem.

I've also put in a new heuristic to improve the frame-rate. Clouds that are already sorted
are likely to still be sorted in subsequent frames. Therefore I've put in a back-off
mechanism for the bubble-sort pass. This should mean that if you stay completely
stationary, once the clouds become sorted they will eventually only perform a
bubble sort pass every 128 frames.

15 years agoTrack time in TileCache; assign new tiles the current time
timoore [Mon, 24 Nov 2008 22:08:31 +0000 (22:08 +0000)]
Track time in TileCache; assign new tiles the current time

15 years agoStuart :
fredb [Mon, 24 Nov 2008 20:26:12 +0000 (20:26 +0000)]
Stuart :
> Warning: detected OpenGL error 'valeur non valide' after RenderBin::draw(,)

Fixed in the patch below. For some reason the shader didn't like index 16 being used...

The patch also fixes the chequer-board effect that was causing very sparse cloud cover.

15 years agoStuart Buchanan :
fredb [Sun, 23 Nov 2008 12:14:56 +0000 (12:14 +0000)]
Stuart Buchanan :
Attached is a small patch for 3D clouds.
It provide the following:
1) Proper spherical distribution of sprites (previously they were distributed cylindrically - whoops)
2) Better shading, so the bottom of the cloud is darker than the top.
3) Fixed a couple of texture sizing bugs.

15 years agoTemplates for interacting with OSG objects
timoore [Fri, 21 Nov 2008 14:48:15 +0000 (14:48 +0000)]
Templates for interacting with OSG objects

15 years agoTemplate functions and overloaded functions for accessing property values.
timoore [Tue, 18 Nov 2008 22:16:58 +0000 (22:16 +0000)]
Template functions and overloaded functions for accessing property values.

These are useful for writing templates that manipulate properties.

15 years agoManuel Massing:
curt [Sun, 9 Nov 2008 15:39:54 +0000 (15:39 +0000)]
Manuel Massing:

Attached is a small fix for the sorting in CloudShaderGeometry.cxx.
I think the sorting problem stems from the osg idiosyncracy
to store transposed matrices...so the intuitive

       osg::Vec4f p = vm * osg::Vec4f(_cloudsprites[i]->position.osg(), 1.0f);

needs to be replaced with...

       osg::Vec4f p = vm.preMult(osg::Vec4f(_cloudsprites[i]->position.osg(), 1.0f);

The patch also optimizes the distance calculation - it evaluates the distances
in model space instead of eye space, which reduces computation to a dot-
product instead of a matrix multiplication.

15 years agoStuart Buchanan :
fredb [Thu, 6 Nov 2008 21:58:07 +0000 (21:58 +0000)]
Stuart Buchanan :
It fixes the following issues (to a greater or lesser extent):
1) Performance. Quad trees used to improve culling, and the sprites are placed on the surface of a sphere rather than
randomly throughout the cloud, requiring fewer textures. This saves about 5-10fps on my machine.
2) Disabled 3D clouds have no performance impact. Previously they were still in the scenegraph. Now they are removed.
3) Clouds are now loaded on start-up, and don't require the scenario to be changed, they also work with METAR.
4) The cloud field is shifted as you travel. There's a small bug in that the clouds "jump" as you reach the edge of the field.
5) Iterative sorting of sprites. This doesn't appear to solve the alpha blending problem completely, but may help a bit.

15 years agoRespect precipitation-enable property
timoore [Fri, 31 Oct 2008 09:46:23 +0000 (09:46 +0000)]
Respect precipitation-enable property

From Csaba Halász

15 years agoenable world coordinate particle fix
timoore [Thu, 30 Oct 2008 23:51:41 +0000 (23:51 +0000)]
enable world coordinate particle fix

15 years agoTidy up for a source code "snapshot" release.
curt [Thu, 30 Oct 2008 17:51:00 +0000 (17:51 +0000)]
Tidy up for a source code "snapshot" release.

15 years ago3D clouds from Stuart Buchanan. Need a recent driver update, --enable-clouds3d option...
fredb [Sun, 26 Oct 2008 09:37:13 +0000 (09:37 +0000)]
3D clouds from Stuart Buchanan. Need a recent driver update, --enable-clouds3d option and a Weather Scenario to show up

15 years agoFix a few spelling errors.
curt [Thu, 23 Oct 2008 18:46:55 +0000 (18:46 +0000)]
Fix a few spelling errors.

15 years agofix regression: sgLoad3DModel_internal should not make assumptions
mfranz [Sat, 18 Oct 2008 18:44:36 +0000 (18:44 +0000)]
fix regression: sgLoad3DModel_internal should not make assumptions
about the type of SGModelData. This *can* have to do with Nasal,
but doesn't have to. That's entirely that class instance's business.

15 years agoadd global switch for particle systems
mfranz [Fri, 17 Oct 2008 21:15:58 +0000 (21:15 +0000)]
add global switch for particle systems

15 years agoallow to modify the XML animation config of a loaded submodel by
mfranz [Tue, 14 Oct 2008 13:01:01 +0000 (13:01 +0000)]
allow to modify the XML animation config of a loaded submodel by
defining an <overlay> branch, which is copied over the submodel's
properties before the animations are evaluated

15 years agoMove omit-node part from startElement to endElement to allow nodes
mfranz [Tue, 14 Oct 2008 11:03:39 +0000 (11:03 +0000)]
Move omit-node part from startElement to endElement to allow nodes
of this type to have children. We have to save the omit state on the
stack for that.

15 years agoSyd Adams: Replace rgb with png.
durk [Tue, 14 Oct 2008 05:04:43 +0000 (05:04 +0000)]
Syd Adams: Replace rgb with png.

15 years agos/multiplayer/multiplay/, as this seems to be the slightly more
mfranz [Fri, 10 Oct 2008 09:48:03 +0000 (09:48 +0000)]
s/multiplayer/multiplay/, as this seems to be the slightly more
official version (--multiplay option, /sim/multiplay/ properties etc.)

15 years agoif a model XML file contains a <multiplayer> block, copy its contents
mfranz [Thu, 9 Oct 2008 22:20:33 +0000 (22:20 +0000)]
if a model XML file contains a <multiplayer> block, copy its contents
 to the model's property root (/ai/models/multiplayer[*])

15 years agoYeah, I really shouldn't be in the lexer
andy [Tue, 30 Sep 2008 21:52:44 +0000 (21:52 +0000)]
Yeah, I really shouldn't be in the lexer

15 years agoAnother lexer fix
andy [Tue, 30 Sep 2008 20:19:01 +0000 (20:19 +0000)]
Another lexer fix

15 years agoFix broken lex.c checkin
andy [Tue, 30 Sep 2008 19:06:34 +0000 (19:06 +0000)]
Fix broken lex.c checkin

15 years agoFixes for bugs shaken out in the recent push: die properly for nil
andy [Tue, 30 Sep 2008 16:48:36 +0000 (16:48 +0000)]
Fixes for bugs shaken out in the recent push: die properly for nil
indexes in slices.  Fix string conversion issue with bare "+" and "-".
Fix lexing of exponent expressions such that "1e" is not a number.

15 years agoMINGW patch by Csaba Halasz
fredb [Sun, 28 Sep 2008 08:11:10 +0000 (08:11 +0000)]
MINGW patch by Csaba Halasz

15 years agoFix parsing for degenerate cases like a[,] a[:] and {:}. The slicing syntax exposed...
andy [Fri, 26 Sep 2008 19:18:19 +0000 (19:18 +0000)]
Fix parsing for degenerate cases like a[,] a[:] and {:}.  The slicing syntax exposed the low-level generators to some new cases.

15 years agoSync with Nasal upstream (Melchior already had a chance to test this,
andy [Fri, 26 Sep 2008 18:22:12 +0000 (18:22 +0000)]
Sync with Nasal upstream (Melchior already had a chance to test this,
so hopefully not too much breaks).  New syntax features:

1. Call-by-name function arguments.  You can specify a hash literal in
place of ordered function arguments, and it will become the local
variable namespace for the called function, making functions with many
arguments more readable.  Ex:

   view_manager.lookat(heading:180, pitch:20, roll:0, x:X0, y:Y0, z:Z0,
                       time:now, fov:55);

Declared arguments are checked and defaulted as would be expected:
it's an error if you fail to pass a value for an undefaulted argument,
missing default arguments get assigned, and any rest parameter
(e.g. "func(a,b=2,rest...){}") will be assigned with an empty vector.

2. Vector slicing.  Vectors (lists) can now be created from others
using an ordered list of indexes and ranges.  For example:

   var v1 = ["a","b","c","d","e"]

   var v2 = v1[3,2];   # == ["d","c"];
   var v3 = v1[1:3];   # i.e. range from 1 to 3: ["b","c","d"];
   var v4 = v1[1:];    # no value means "to the end": ["b","c","d","e"]
   var i = 2;
   var v5 = v1[i];     # runtime expressions are fine: ["c"]
   var v6 = v1[-2,-1]; # negative indexes are relative to end: ["d","e"]

The range values can be computed at runtime (e.g. i=1; v5=v1[i:]).
Negative indices work the same way the do with the vector functions
(-1 is the last element, -2 is 2nd to last, etc...).

3. Multi-assignment expressions.  You can assign more than one
variable (or lvalue) at a time by putting them in a parenthesized
list:

   (var a, var b) = (1, 2);
   var (a, b) = (1, 2);               # Shorthand for (var a, var b)
   (var a, v[0], obj.field) = (1,2,3) # Any assignable lvalue works

   var color = [1, 1, 0.5];
   var (r, g, b) = color;  # works with runtime vectors too

15 years agoKeep non-local particles in a Z-up frame that is periodically moved.
timoore [Thu, 11 Sep 2008 10:19:05 +0000 (10:19 +0000)]
Keep non-local particles in a Z-up frame that is periodically moved.

This eliminates jitter and other rendering problems.
For the moment this is dependent on an osg fix.

Also, don't read wind properties from FlightGear; provide a mechanism
for fg to set the wind.

15 years agoMake sure the compiler is aware that SGModelData a child of osg::Referenced, now...
ehofman [Thu, 4 Sep 2008 08:52:47 +0000 (08:52 +0000)]
Make sure the compiler is aware that SGModelData a child of osg::Referenced, now gcc-3.3 will compile.

15 years agoUse a more relevant library name
fredb [Sun, 31 Aug 2008 18:39:49 +0000 (18:39 +0000)]
Use a more relevant library name

15 years agoUpdate version
fredb [Sun, 31 Aug 2008 18:35:02 +0000 (18:35 +0000)]
Update version

15 years agoDon't use osgDB::SharedStateManager::share in SGLoadTexture2D
timoore [Fri, 29 Aug 2008 07:39:05 +0000 (07:39 +0000)]
Don't use osgDB::SharedStateManager::share in SGLoadTexture2D

It is not safe to call this function from the database pager thread;
in any event, state sets and textures created in the database pager
will get passed through the SharedStateManager anyway.

15 years ago- Update SimGear.dsp
curt [Thu, 28 Aug 2008 17:52:43 +0000 (17:52 +0000)]
- Update SimGear.dsp
- Assign an arbitrary prerelease version number
- Fix a "make dist" problem.

15 years agoFix typing error with fgetc in readln(). On most boxes, this would
andy [Mon, 25 Aug 2008 16:53:34 +0000 (16:53 +0000)]
Fix typing error with fgetc in readln().  On most boxes, this would
cause a spurious EOF when there was a 0xff in the stream.  But on PPC,
char is unsigned (for reasons known only to IBM) and it would loop
forever.

15 years agopointers in Particles object should be ref_ptr
timoore [Mon, 11 Aug 2008 08:32:13 +0000 (08:32 +0000)]
pointers in Particles object should be ref_ptr

15 years agoReturn eof after a number of reptetitions of file input.
timoore [Thu, 7 Aug 2008 22:24:01 +0000 (22:24 +0000)]
Return eof after a number of reptetitions of file input.

15 years agoUpdate MSVC 7.1 projects - Adapt to OSG 2.6.0-rc1 : location of header files should...
fredb [Sat, 2 Aug 2008 11:31:47 +0000 (11:31 +0000)]
Update MSVC 7.1 projects - Adapt to OSG 2.6.0-rc1 : location of header files should now be searched in the install directory, here ..\..\..\install\msvc71\OpenSceneGraph\include

15 years agofinal fixes for SG_USING_STD removal
ehofman [Tue, 29 Jul 2008 08:25:17 +0000 (08:25 +0000)]
final fixes for SG_USING_STD removal

15 years agoforward declare osg::DrawElementsUShort for real
timoore [Tue, 29 Jul 2008 02:54:48 +0000 (02:54 +0000)]
forward declare osg::DrawElementsUShort for real

15 years agoReplace SG_USE_STD() by using std::
ehofman [Mon, 28 Jul 2008 07:52:13 +0000 (07:52 +0000)]
Replace SG_USE_STD() by using std::

15 years agoGL/wgl.h never existed, and a glx equivalent is not needed
fredb [Sun, 27 Jul 2008 18:04:13 +0000 (18:04 +0000)]
GL/wgl.h never existed, and a glx equivalent is not needed

15 years ago - remove the SG_GLxxxx_H #defines, since OSG provides its own versions
ehofman [Sun, 27 Jul 2008 16:10:36 +0000 (16:10 +0000)]
 - remove the SG_GLxxxx_H #defines, since OSG provides its own versions
 - this exposed a bizarre issue on Mac where dragging in <AGL/agl.h> in
   extensions.hxx was pulling in all of Carbon to the global namespace
   - very scary. As a result, I now need to explicitly include CoreFoundation
   in fg_init.cxx.
 - change SG_USING_STD(x) to using std::x

Issues:

 - the logic for X11 and Win32 in RenderTexture and extensions is tortured,
   please see if you agree I got all the ifdefs correct.

15 years agoRemove unneeded inclusions of windows.h, GL.h and GLU.H
fredb [Sun, 27 Jul 2008 15:15:33 +0000 (15:15 +0000)]
Remove unneeded inclusions of windows.h, GL.h and GLU.H

15 years agoMaybe a more portable way to do it
fredb [Fri, 25 Jul 2008 21:33:54 +0000 (21:33 +0000)]
Maybe a more portable way to do it

15 years agoCompile again with MSVC
fredb [Fri, 25 Jul 2008 21:27:46 +0000 (21:27 +0000)]
Compile again with MSVC

15 years agoReduce compiler.h to almost nothing (but it's worth keeping around I think, for
ehofman [Fri, 25 Jul 2008 18:35:40 +0000 (18:35 +0000)]
Reduce compiler.h to almost nothing (but it's worth keeping around I think, for
the MSVC and MipsPro warning stuff).

As a result of this patch, simgear/sg_traits.h can be deleted. So can SGCMath.h,
but I'll do that separately.

There is one more 'mechanical' change to come - getting rid of SG_USING_STD(X),
but I want to keep that separate from everything else. (There's another mechnica
l change, replacing <math.h> with <cmath> and so on *everywhere*, but one step a
t a time)

15 years agoAttached patches remove BORLANDC, and hence SG_MATH_EXCEPTION_CLASH and SG_INCOM
ehofman [Fri, 25 Jul 2008 10:39:20 +0000 (10:39 +0000)]
Attached patches remove BORLANDC, and hence SG_MATH_EXCEPTION_CLASH and SG_INCOM
PLETE_FUNCTIONAL from SimGear and FlightGear.

As a result, SG_HAVE_STD_INCLUDES is now *always* set, so I will get the boring
fixes for that done, but separately. I'm still auditing the other things in comp
ilers.h - there's a lot that can die now BORLAND is gone.

15 years agoremove a workaround for the C++ / stdlibary bug which existed aeons ago on Mac.
ehofman [Fri, 25 Jul 2008 08:34:15 +0000 (08:34 +0000)]
remove a workaround for the C++ / stdlibary bug which existed aeons ago on Mac.

15 years agoPatch to remove macintosh and MWERKS from Simgear.
ehofman [Thu, 24 Jul 2008 19:16:50 +0000 (19:16 +0000)]
Patch to remove macintosh and MWERKS from Simgear.

15 years agoAdd repeat option to SGFile.
timoore [Sat, 19 Jul 2008 16:01:20 +0000 (16:01 +0000)]
Add repeat option to SGFile.

This supports auto-looping over a playback file, for demos and such.

15 years agoEliminate empty default constructor for SGReaderWriterBTGOptions
timoore [Sat, 19 Jul 2008 16:00:58 +0000 (16:00 +0000)]
Eliminate empty default constructor for SGReaderWriterBTGOptions

15 years agos/getChild/getNode/ (otherwise "start/size" wouldn't work)
mfranz [Sat, 12 Jul 2008 15:31:29 +0000 (15:31 +0000)]
s/getChild/getNode/  (otherwise "start/size" wouldn't work)

15 years ago- XML interface changes:
mfranz [Sat, 12 Jul 2008 14:06:11 +0000 (14:06 +0000)]
- XML interface changes:
  * condition at top level
  * <start|end>/<color|size> hierarchy
  * wind/gravity -> bool
  * rename some properties (rotspeed -> rotation-speed, etc.)
  * unit suffixes
- remove redundant code
- warnings--

15 years agofix SGPropertyNode::LAST_USED_ATTRIBUTE
mfranz [Thu, 10 Jul 2008 10:33:32 +0000 (10:33 +0000)]
fix SGPropertyNode::LAST_USED_ATTRIBUTE

15 years agowrite-protection warning: use simplified path
mfranz [Wed, 9 Jul 2008 17:31:55 +0000 (17:31 +0000)]
write-protection warning: use simplified path

15 years agolet readProperties() refuse to overwrite write-proteced properties
mfranz [Wed, 9 Jul 2008 16:17:52 +0000 (16:17 +0000)]
let readProperties() refuse to overwrite write-proteced properties

16 years agoremove redundant #defines (they are already in compiler.h)
mfranz [Sun, 22 Jun 2008 18:07:50 +0000 (18:07 +0000)]
remove redundant #defines (they are already in compiler.h)

16 years agoFrom Benoit Laniel: replace SG threading constructs with those from OpenThreads
timoore [Thu, 12 Jun 2008 08:14:40 +0000 (08:14 +0000)]
From Benoit Laniel: replace SG threading constructs with those from OpenThreads

Also, move any static local mutexes up to global level.

16 years agoUpdate MSVC 7.1 projects
fredb [Sun, 8 Jun 2008 16:45:13 +0000 (16:45 +0000)]
Update MSVC 7.1 projects

16 years agowarnings--
mfranz [Sat, 7 Jun 2008 14:45:22 +0000 (14:45 +0000)]
warnings--

16 years agoadd OSGVersion.hxx to VC7.1 project file
timoore [Mon, 2 Jun 2008 20:26:07 +0000 (20:26 +0000)]
add OSGVersion.hxx to VC7.1 project file

16 years agoOSG DatabasePager interface change in 2.5.1
timoore [Mon, 2 Jun 2008 20:22:16 +0000 (20:22 +0000)]
OSG DatabasePager interface change in 2.5.1

Move OSG version macro from FlightGear to simgear

16 years agoReplace header files istream and ostream with iosfwd
timoore [Mon, 2 Jun 2008 20:21:50 +0000 (20:21 +0000)]
Replace header files istream and ostream with iosfwd

16 years agoDon't include <iostream> and "using" declarations in header files
timoore [Mon, 2 Jun 2008 20:21:27 +0000 (20:21 +0000)]
Don't include <iostream> and "using" declarations in header files

<iostream> sucks in expensive initialization of the standard streams
and isn't appropriate in a header file. Use <istream> and <ostream>
instead.

using declarations should never appear at global scope in a header
file; source files get to decide what they want to use in their
namespace.

16 years agoFix non threadsafe code
fredb [Sun, 1 Jun 2008 17:25:05 +0000 (17:25 +0000)]
Fix non threadsafe code

16 years agoReport abnormal condition
fredb [Sat, 31 May 2008 12:08:17 +0000 (12:08 +0000)]
Report abnormal condition

16 years agoUpdate MSVC 7.1 projects
fredb [Sat, 31 May 2008 12:06:30 +0000 (12:06 +0000)]
Update MSVC 7.1 projects

16 years agoFix a problem in loading models with paged LOD in some circunstances ( debug with...
fredb [Sat, 31 May 2008 12:05:11 +0000 (12:05 +0000)]
Fix a problem in loading models with paged LOD in some circunstances ( debug with MSVC for instance )

16 years agoUse bool instead of int to represent boolean values
fredb [Sat, 31 May 2008 10:02:43 +0000 (10:02 +0000)]
Use bool instead of int to represent boolean values

16 years agoxmlsound: warning--
mfranz [Wed, 21 May 2008 14:51:39 +0000 (14:51 +0000)]
xmlsound: warning--

16 years agoadd <delay-sec> parameter that defines how many seconds after triggering
mfranz [Wed, 21 May 2008 14:47:06 +0000 (14:47 +0000)]
add <delay-sec> parameter that defines how many seconds after triggering
the sound should be played (default: 0)

16 years agoupdate library version requirements
mfranz [Mon, 19 May 2008 15:17:55 +0000 (15:17 +0000)]
update library version requirements

16 years agoWin32 fix
fredb [Thu, 15 May 2008 06:19:15 +0000 (06:19 +0000)]
Win32 fix

16 years agosg: move most scenery-related code to simgear
timoore [Wed, 14 May 2008 22:07:50 +0000 (22:07 +0000)]
sg: move most scenery-related code to simgear

From Till Busch

16 years agoTill BUSCH: enable HOT intersection tests on random buildings
mfranz [Thu, 1 May 2008 12:21:52 +0000 (12:21 +0000)]
Till BUSCH: enable HOT intersection tests on random buildings

16 years agoNicolas: let SGPath::create_dir() return success/failure (for screenshot)
mfranz [Sat, 26 Apr 2008 15:25:29 +0000 (15:25 +0000)]
Nicolas: let SGPath::create_dir() return success/failure (for screenshot)

16 years agoTill BUSCH:
mfranz [Fri, 25 Apr 2008 08:41:29 +0000 (08:41 +0000)]
Till BUSCH:

"tim recently noticed the database pager was repeatedly loading and unloading
the same objects. he also tracked down the problem to missing bounding sphere
information in osgDB::PagedLOD. this is a simplicistic approach to fix this:
SGPagedLOD will now remember whatever value it sees for getBound() after
loading a child. this patch will make database pager run much calmer."

16 years agoFix new livery code
timoore [Thu, 24 Apr 2008 22:06:06 +0000 (22:06 +0000)]
Fix new livery code

It turns out that the database pager causes the texture image to be
unloaded after it is applied, so the image and its file name may not
be available for doing the livery substitution. Ask a work around we
set the name of the texture to its file name.

16 years agoUpdate MSVC 7.1 projects
fredb [Wed, 23 Apr 2008 22:09:23 +0000 (22:09 +0000)]
Update MSVC 7.1 projects

16 years agoRewrite livery texture replacement to copy StateSet objects
timoore [Wed, 23 Apr 2008 18:13:50 +0000 (18:13 +0000)]
Rewrite livery texture replacement to copy StateSet objects

Also, add a NodeAndDrawableVisitor that descends into osg::Drawable.

That motivation for this is that it's a bad idea to modify state sets
that the osgDB::SharedStateManager might be keeping.

16 years agoTill BUSCH:
mfranz [Wed, 23 Apr 2008 12:28:45 +0000 (12:28 +0000)]
Till BUSCH:

this is a small (-1/+3) patch to fix pick animations on scenery objects.
since picking apparently doesn't care for polygon offsets, the objects
got into the picklist in the wrong way. now, no matter if the "highlight
group" or the "normal group" gets hit first, the callback will fire.

16 years agorewrite of sky dome code
timoore [Mon, 14 Apr 2008 21:44:21 +0000 (21:44 +0000)]
rewrite of sky dome code

Add more points to the dome, giving it a dome shape rather than a
dunce cap shape.

Represent as OpenGL DrawElements instead of as triangle strips.

Only calculate have the sky colors and reflect those across the dome.

16 years agoUpdate MSVC 7.1 projects
fredb [Mon, 14 Apr 2008 06:27:26 +0000 (06:27 +0000)]
Update MSVC 7.1 projects

16 years agoFixes for compiling with gcc 4.3
timoore [Sun, 13 Apr 2008 21:11:44 +0000 (21:11 +0000)]
Fixes for compiling with gcc 4.3

Include standard header files and qualify with std:: where needed.

Add "const" to various char parameters and variables.

16 years agoAllows to load submodels with path relative to current model path.
fredb [Wed, 2 Apr 2008 22:25:12 +0000 (22:25 +0000)]
Allows to load submodels with path relative to current model path.
Submodel path must be prefixed by ./ otherwise path is relative to fg_root ( current behavior )

16 years agoChange the tile light group node mask to traverse VASI lights too.
timoore [Mon, 24 Mar 2008 21:41:30 +0000 (21:41 +0000)]
Change the tile light group node mask to traverse VASI lights too.

The change to set the light group node mask to LIGHTS_BITS caused
VASI/PAPI lights to not be displayed during the day. This patch fixes
that and optimizes VASI creation a bit.

16 years agoUpdate MSVC 7.1 projects
fredb [Sat, 22 Mar 2008 11:39:01 +0000 (11:39 +0000)]
Update MSVC 7.1 projects

16 years agoWin32 fix
fredb [Sat, 22 Mar 2008 11:38:50 +0000 (11:38 +0000)]
Win32 fix

16 years agomodel paging patch from Till Busch
timoore [Sat, 22 Mar 2008 09:30:26 +0000 (09:30 +0000)]
model paging patch from Till Busch

Comments from Till:
I started the project at the end of february with a simple idea: move all
3d-model loading to the DatabasePager-thread. my first attempts looked
promising, though they were a little too optimistic (or naive?). the patch
has evolved a lot since.

currently it does the following things:
1. revive SGModelLib, move functions for xml-model-loading there

2. replace all calls to sgLoad3dModel with calls to either
SGModelLib::loadModel() or SGModelLib::loadPagedModel()
almost all models will be loaded by the DatabasePager. the few exceptions are:
your own plane, shared models in scenery, random objects, AIBallistic models.

3. simplify mode-loading functions (avoid passing around fg_root)

4. avoid supurious MatrixTransform nodes in loaded models

5. fix some memory leaks

16 years ago- warnings--
mfranz [Thu, 20 Mar 2008 17:20:54 +0000 (17:20 +0000)]
- warnings--
- make one-shot sounds subject to volume and pitch control (To get
  constant volume/pitch during the whole lifetime, just *configure*
  the sound that way.)

16 years agorationalize node masks a bit
timoore [Mon, 17 Mar 2008 08:46:23 +0000 (08:46 +0000)]
rationalize node masks a bit

16 years agoargh, missed 1.8.4 in one spot.
curt [Sat, 15 Mar 2008 16:33:49 +0000 (16:33 +0000)]
argh, missed 1.8.4 in one spot.

16 years agoSimgear also enforces plib-1.8.5 in order to build.
curt [Sat, 15 Mar 2008 16:32:36 +0000 (16:32 +0000)]
Simgear also enforces plib-1.8.5 in order to build.

16 years agoFrom Till Busch: use install -p if possible
timoore [Tue, 11 Mar 2008 13:44:43 +0000 (13:44 +0000)]
From Till Busch: use install -p if possible

16 years agoUpdate MSVC 7.1 projects
fredb [Sun, 9 Mar 2008 22:09:52 +0000 (22:09 +0000)]
Update MSVC 7.1 projects

16 years agouse new arrow shortcuts for compatibility reasons (will be removed later)
mfranz [Tue, 4 Mar 2008 11:48:51 +0000 (11:48 +0000)]
use new arrow shortcuts for compatibility reasons (will be removed later)

16 years agocleanup of precipitation contribution
timoore [Tue, 4 Mar 2008 08:58:33 +0000 (08:58 +0000)]
cleanup of precipitation contribution

Reindent everything to Stroustrup style and make member variable style
consistent.

Remove unused header files.

SGPrecipitation is now a subclass of osg::Referenced.

Initialize snow and ice intensity to 0 directly. The methods that set
the intensities change the value slowly and so don't work when the
initial value is garbage.

16 years agoprecipitation effects from Nicolas Vivien
timoore [Tue, 4 Mar 2008 08:54:00 +0000 (08:54 +0000)]
precipitation effects from Nicolas Vivien

16 years agoAdd methods to SGGeod to return OSG Matrix objects for local frames.
timoore [Tue, 4 Mar 2008 08:53:27 +0000 (08:53 +0000)]
Add methods to SGGeod to return OSG Matrix objects for local frames.

Methods have been added for Z down (simulation) and Z up frames.

16 years agoInitialize variables before using them
fredb [Sun, 2 Mar 2008 16:49:07 +0000 (16:49 +0000)]
Initialize variables before using them