James Turner
69ef461e6d
Merge commit 'refs/merge-requests/22' of git://gitorious.org/fg/simgear into merge-requests/22
2012-04-23 12:21:50 +01:00
ThorstenB
4abcf3215f
Add virtual destructor to SGReferenced.
2012-04-21 20:50:07 +02:00
Frederic Bouvier
4b607d6484
Revert "Remove ambient component of additional lights" because this was Yet Another Bad Idea
...
Ambient light is attenuated so it is possible to achieve smooth edges with it
This reverts commit fe8ba57c94
.
2012-04-18 19:56:31 +02:00
Frederic Bouvier
fe8ba57c94
Remove ambient component of additional lights
...
It creates artifacts at edges of light volumes and should come from the main light source (sun and moon) anyway
2012-04-16 08:25:59 +02:00
Frederic Bouvier
de191107a9
light animation: avoid that similar effects are merged
2012-04-14 23:16:23 +02:00
Frederic Bouvier
77b8b278ea
Ensure uniform are there before trying to use them
2012-04-14 18:00:42 +02:00
Frederic Bouvier
4758447370
Add a <dim-factor> parameter in the light animation
...
<dim-factor> contains a <property> element, and optionally <factor>,
<offset>, <expression>, <interpolation>, <min> and <max>
2012-04-14 09:57:20 +02:00
ThorstenB
77909577e4
Error messages when installing property aliases fails.
2012-04-05 20:03:07 +02:00
ThorstenB
1a835a2e1b
performance monitor: start measurement interval with a fresh timestamp.
2012-04-05 19:30:00 +02:00
James Turner
8d0330675a
Set the filename as the OSG object name on shaders - should have done this years ago :)
2012-04-04 16:44:23 +01:00
Frederic Bouvier
95a9d7a229
Revert "Disable LOD when rendering to the shadow map."
...
This reverts commit b95fb48a16
.
2012-04-02 23:37:18 +02:00
ThorstenB
2fed46e222
performance monitor improvement
...
Record cumulative time consumed (all time) and current total time (current
measurement only) for subsystems.
2012-04-02 20:47:27 +02:00
ThorstenB
9ad070871a
Use observer_ptr::lock for thread-safe pointer retrieval.
...
Also revert to using ref_ptr for the top-level EffectMap, since it holds
elements no one else references (and don't affect memory much).
2012-04-02 20:47:27 +02:00
Frederic Bouvier
b95fb48a16
Disable LOD when rendering to the shadow map.
...
Produce few NaNs at start
2012-04-01 23:06:32 +02:00
Mathias Froehlich
29462005b7
Fix typo in SGGeodesy.
...
Pointed out by Carl Godkin.
Thanks!
2012-04-01 17:50:49 +02:00
Frederic Bouvier
4de05629ee
Shadow map now available in effects
2012-03-31 22:40:39 +02:00
ThorstenB
2b62411a78
Remove dead code.
2012-03-28 22:55:40 +02:00
ThorstenB
6fa4c7e138
Add file name to error message.
2012-03-28 22:54:27 +02:00
ThorstenB
ece38a6dbf
Fix growing memory consumption issues
...
References in simgear's cache maps prevented effects, textures, clouds,
trees and lights from being unloaded at run-time (ref-counter could never
reach 0). Changed cache maps to use OSG 'observer' pointers instead, so
reference counters aren't influenced, though cache maps still hold an
(observing) pointer. Also take care when finding a cache entry with empty
content (i.e. texture was unloaded).
2012-03-28 22:53:30 +02:00
Mathias Froehlich
a592488f3e
scenery: Remove redundant setting the property root.
...
The same value was extracted out of the same options value
in the code above. So, skip resetting to the same value.
2012-03-28 07:47:31 +02:00
Mathias Froehlich
191675cc79
scenery: Only run SGModelData in the topmost model.
...
It looks like that we loose the nasal script stored
in the property tree when this callback is issued
multiple times.
This should fix
http://code.google.com/p/flightgear-bugs/issues/detail?id=714
2012-03-28 07:44:41 +02:00
Mathias Froehlich
df2e5bf39f
Revert "scenery: Use correct property root in xml loading."
...
This helps for one symptom but it does not fix the
underlying problem. So ...
This reverts commit 986d2cc42a
.
2012-03-28 07:34:36 +02:00
ThorstenB
ac29faf3bb
osg::Uniform::get does not return a value on error.
...
Fixes "usage of uninitialized data" errors reported by valgrind.
2012-03-26 21:00:10 +02:00
Frederic Bouvier
94eabf6220
Merge Specular and Emission buffers
2012-03-25 14:14:14 +02:00
Frederic Bouvier
40bc0cbd48
Compile under MSVC 9
2012-03-25 14:14:12 +02:00
ThorstenB
b55e9df70a
Don't crash when "avionics == NULL".
2012-03-22 23:54:01 +01:00
Mathias Froehlich
986d2cc42a
scenery: Use correct property root in xml loading.
...
Really query for the root node when loading xml files.
This should fix
http://code.google.com/p/flightgear-bugs/issues/detail?id=714
2012-03-22 08:38:16 +01:00
ThorstenB
0b8bfd9ed8
More checks/error messages for missing files,
...
checking return value of findDataFile.
2012-03-17 10:15:31 +01:00
ThorstenB
eff0c610e2
More consistent indentation.
2012-03-17 10:02:43 +01:00
ThorstenB
ca97e67511
Avoid segfault when a texture file is missing.
...
Always check the return value of "findDataFile". If it's empty, always
provide the _original_ path being searched in an error message. Otherwise
we eventually just get useless 'Can't find file "".' error messages
(and also a segfault here, since osgDB::readImageFile("") returns NULL).
2012-03-17 10:02:13 +01:00
James Goppert
47c2dce26d
Removed include breaking headless build.
2012-03-16 23:04:24 +01:00
James Goppert
619163d40e
Fixed mingw build.
2012-03-16 23:04:24 +01:00
Mathias Froehlich
b11c13fb9f
scenery: Really, most people don't care for the noise.
2012-03-16 07:27:44 +01:00
Mathias Froehlich
a5435b7d8c
scenery: Make stg loader files members of the loader.
2012-03-16 07:22:16 +01:00
Mathias Froehlich
b5fb829468
scenery: TileEntry and TileCache have moved back to flightgear.
2012-03-15 20:43:31 +01:00
Mathias Froehlich
43fceaf3a4
scenery: Move the stg read code.
...
Move the code reading the stg files
into ReaderWriterSTG.cxx.
2012-03-15 20:33:12 +01:00
Mathias Froehlich
8cb8395a24
scenery: ModelLoadHelper is no longer needed.
2012-03-15 20:08:38 +01:00
Mathias Froehlich
2a2be51b8f
scenery: move static ReaderWriter proxies around.
...
Not yet sure where they end, but make sure they are currently pulled.
... now watching jenkins.
2012-03-15 19:45:51 +01:00
Mathias Froehlich
5a5d65134e
scenery: Accumulate stg files until we find an OBJECT_BASE.
...
This should recover most of the old scenery loading behavior
before the last change. The z-fighting due to model duplication
does not happen over solid ground. Sea tiles are still broken.
2012-03-15 08:02:35 +01:00
Mathias Froehlich
0a96f4e145
scenery: Allow switching off particle systems on scenery load.
2012-03-11 14:20:33 +01:00
Mathias Froehlich
ba21713329
scenery: Allow switching off bvh generation.
2012-03-11 14:20:07 +01:00
Mathias Froehlich
32ef925a79
hla: Add convenience function to set version by string.
2012-03-11 09:21:47 +01:00
Mathias Froehlich
c62c778c88
hla: Enalble creating object instances without object class.
...
This enables creating HLAObjectInstance instances without
valid initial object class pointer. This is useful for local
implemented object instances.
2012-03-10 14:26:19 +01:00
Mathias Froehlich
2f0a6fdb67
hla: Remove old comment.
2012-03-10 08:30:02 +01:00
Torsten Dreyer
70ec13e10b
Make the sky disable cutoff distance configurable
2012-03-09 20:58:24 +01:00
Mathias Froehlich
3693e3600c
scenery: rework stg loading code.
...
This change reworks the code block loading the stg files.
It fixes a long standing problem where we end up loading
similar models from different entries of the scenery
path at the same geographic location. This usually results
in models that appear to have z figting, even if the isolated
model does not show z fighting at all.
As a result the lookup sequence for models and scenery has
changed a bit. This should be closer to what it supposed to
be and did not show any problems on the areas and sceneries
I tested.
2012-03-08 07:15:14 +01:00
Frederic Bouvier
69debc6777
Revert "Put airport lights in RenderBin to enable glow"
...
This reverts commit 1fa27f2d19
.
2012-03-07 20:48:53 +01:00
Frederic Bouvier
84d7488061
Revert commit 7864516... Increase point sprite size for runway lights
2012-03-07 20:16:14 +01:00
Mathias Froehlich
fbb7c84409
scenery: Remove unused argument from runway signs.
2012-03-07 06:36:27 +01:00
Frederic Bouvier
a7379c88f4
Revert "Allow the not operator in expressions" - this is not required for
...
effects
This reverts commit 92074f0d3c
.
2012-03-06 23:15:18 +01:00