James Turner
588eba658a
Make some include dependencies explicit.
2012-08-22 00:07:53 +01:00
Stuart Buchanan
5e3ec6209c
Add command to reload materials definitions. Note that this explicitly
...
does not attempt to delete the old materials definitions, as they
may be in use at the time.
2012-07-19 22:06:08 +01:00
Frederic Bouvier
622c10b8f9
The terrain branch can contain models having lights
2012-06-11 09:14:23 +02:00
Frederic Bouvier
d84f48cc0c
Get more fps in Rembrandt: don't redraw the terrain in the lighting stage. Should also fix the green z-fight that occurs on terrain with some camera directions.
2012-06-10 22:29:16 +02:00
Frederic Bouvier
75fc136931
Remove redundant inclusion of math/SGMath.hxx
2012-05-05 11:20:04 +02:00
ThorstenB
89b41395d8
Move viewer-related sources to separate folder.
...
Simple source directory clean-up, so "Main" folder contains fewer stuff
and the list of files in the editors a lot shorter.
2012-04-25 23:28:00 +02:00
ThorstenB
d683d39e85
Fix SceneryPager destruction sequence.
...
SceneryPager singleton must not be removed while FGScenery is still alive,
so hold a reference to it in FGScenery, saving the pager from being
deleted first.
2012-04-15 15:30:44 +02:00
ThorstenB
da2ee04eea
Fix scenery reload issues.
...
Aircraft could fall through the ground on scenery reload.
2012-04-07 16:35:04 +02:00
ThorstenB
9effb06047
Fix scenery reload issues.
...
Aircraft could fall through the ground on scenery reload. Properly reset
the "sceneryloaded" flag to pause FDM processing while scenery is being
reloaded. Also stop processing some instruments while scenery is reloaded.
2012-04-07 16:20:22 +02:00
ThorstenB
5ef15023fc
Properly drop empty tiles from tile cache.
...
Tiles which expired before being loaded could clog the tile cache.
2012-03-28 23:03:13 +02:00
ThorstenB
f14ca9c611
tilemanager: initialize member variables
...
Also drop some obsolete members.
2012-03-26 21:11:03 +02:00
Mathias Froehlich
1ddb658a70
scenery: Move flightgears paging back into the application.
...
This way of scenery paging is really application code.
Now that the simgear stg loader is seperated from the paging
code, this appication specific paging can reside here.
May be at some time also use the spt stuff here.
2012-03-15 20:56:37 +01:00
Mathias Froehlich
44c716bb03
scenery: The tile entries load callback is not needed anymore.
...
The stg loader can do this itself.
2012-03-15 19:39:07 +01:00
Mathias Froehlich
8d3e1b06be
Remove /sim/paths/use-custom-scenery-data.
...
Scenery people tell me that this is always set to true
today. Thus we can remove this property as this allows
me for some further osg loader cleanups.
2012-03-15 18:48:57 +01:00
ThorstenB
17590ba436
Fix another line lost in a merge conflict.
2012-02-07 21:12:51 +01:00
ThorstenB
ff14ddf914
Fix missing declaration.
2012-02-07 19:32:55 +01:00
ThorstenB
578df0f484
#553 : decouple OSG callbacks from Nasal subsystem
2012-02-06 22:19:33 +01:00
ThorstenB
33c63a6d72
This 'fixes' #613 but partly re-introduces #553 .
2012-02-06 22:12:58 +01:00
ThorstenB
7b83b49260
Oops...
2012-01-29 10:44:28 +01:00
ThorstenB
3e08e5ecfe
Minor clean-up.
2012-01-29 10:34:11 +01:00
ThorstenB
59d400d58b
Temporarily disable Nasal callbacks in lazily loaded scenery models
...
to avoid segfaults due to multi-threading issues. Will need to be replaced
by proper fix, if this proves Nasal related segfaults to be fixed.
2012-01-08 13:31:49 +01:00
ThorstenB
dcaf3d9aea
Avoid spamming the log output
...
Stop printing "State == Running" debug messages in every update loop
(makes "--log-level=debug" a lot more usable)
2011-12-17 15:22:50 +01:00
Mathias Froehlich
42fb9b8e9f
Consolidate the different ReaderWriterOptions classes.
2011-11-13 18:34:53 +01:00
ThorstenB
318e7ac773
Untangle subsystems by replacing direct TileCache call with callback.
2011-11-13 15:47:52 +01:00
ThorstenB
7aae4484d1
Fixed typo.
2011-11-10 22:10:51 +01:00
Mathias Froehlich
ec16f43f86
Use deferred models for scenery tile models.
...
Instead of PagedLOD nodes use ProxyNodes for models in
scenery tiles. This should lower the amount of PagedLOD nodes
in the active scene. Since the models are part of the to level
tiles they are then paged out once the tile is paged out.
2011-11-08 21:25:10 +01:00
James Turner
70b4f38ebc
Goodbye automake.
2011-11-01 11:15:53 +00:00
James Turner
b1b4b7ecf4
Fix (nearly) all the std:: namespace violations in headers, in preparation for fixing SGsmplstat.hxx to *not* do a 'using namespace std'.
2011-10-17 17:41:59 +01:00
ThorstenB
741efe2efb
Attempt to tidy up the search path mess (noticed by TorstenD)
...
When a model is not found in the custom scenery directories, load data
from base-package (instead of trying to access file "").
Also allow paged models to be loaded from custom scenery folders.
2011-09-04 11:09:21 +02:00
ThorstenB
cf2236351c
Avoid some useless file accesses
...
Empty "markers" in between scenery search paths shouldn't be
considered when building search paths.
2011-08-20 23:13:27 +02:00
ThorstenB
e9a9f8c96d
Use some more logging class variety.
...
Stop using SG_GENERAL and SG_ALL everywhere. Using different
classes makes switching the classes really useful...
2011-08-12 00:09:26 +02:00
Mathias Froehlich
fc38d69823
Fixes #397 : YASim aircraft start at >32000ft instead of runway
...
The usual 'modify code before checkin but past testing' Problem.
Return the elevation of the intersection result instead of the
elevation of the querys start point.
2011-08-08 19:12:14 +02:00
Mathias Froehlich
2c24b1da17
Use the bv tree leafs for altitude queries.
...
Make use ot the bounding volume tree nodes already
present in the scenegraph for the ground cache for
scenery intersection and elevation queries.
2011-08-07 11:12:45 +02:00
Durk Talsma
5228053f7f
Merge branch 'next' into durk-atc
2011-07-24 08:44:22 +02:00
James Turner
1c8d8e7908
More CMake headers support
2011-07-19 07:58:03 +01:00
ThorstenB
80f9092460
Fix issue reported by heap debugger
...
Subsystems are erased by the subsystem manager - so better avoid
dependencies in their destructors.
2011-07-14 00:22:35 +02:00
Durk Talsma
f8a8805e2d
Merge branch 'next' into durk-atc
2011-07-01 22:20:40 +02:00
ThorstenB
d767fe1696
Avoid compiler warning.
2011-06-12 13:45:10 +02:00
ThorstenB
ee40e8ae3f
Introduce terrasync subsystem.
...
Fix tile reloading issue.
2011-06-12 00:44:07 +02:00
ThorstenB
fb52b013f0
Clear OSG object cache on scenery reload
...
Scenery reload (menu: Debug-> Reload Scenery) also needs to clear the OSG
object cache, otherwise scenery isn't really reloaded from disk.
2011-04-15 21:34:44 +02:00
Durk Talsma
ee9a5cf73d
Merge branch 'next' into durk-atc
2011-04-17 10:21:09 +02:00
Durk Talsma
65e87bf2f8
Added some code to visualize the ground networks.
2011-04-17 10:19:58 +02:00
Tim Moore
9c98258ab0
Merge branch 'releases/2.2.0' into next
...
Conflicts:
CMakeModules/FindSvnClient.cmake
src/FDM/JSBSim/JSBSim.cxx
2011-02-15 13:26:24 +01:00
Tim Moore
c5366cceb6
accomodate changes to osgDB::DatabasePager interface
...
The change was introduced in OSG SVN revision 12080. Note: that
revision has a bug that causes fgfs to crash. The bug is fixed in
revision 12170.
2011-02-15 12:42:53 +01:00
ThorstenB
7bc9749d91
Support scenery reloading (needs simgear update).
...
TileMgr subsystem reinit: remove all scenery tiles from scenegraph and
clear cache (simgear update required).
"normal" sim resets: no TileMgr reset is needed (avoid reloading scenery).
2011-02-13 19:26:55 +01:00
ThorstenB
4a351fdd8b
Update tile loader options whenever its config properties change
...
New listener for tile-loader properties.
2011-02-13 19:26:44 +01:00
James Turner
a91ec5f9f9
Initial work on CMake build files, with considerable help from Olaf Flebbe.
2010-12-19 15:06:04 +00:00
Tim Moore
4b2436a4e5
remove call to function removed in OSG
2010-11-30 12:01:52 +01:00
ThorstenB
44901ae86f
Tile manager improvements
...
Priority scheme for tile loading/removing
Cleaner tile manager interface for AI/groundcache/...
Reduce start-up delay. Drop splash screen when inner scenery is available.
Be nice to osg loader: slow-down main loop while initial scenery is still loading.
2010-11-19 13:59:43 +01:00
Christian Schmitt
0a5e86f4e6
remove old .cvsignore files
2010-11-11 01:16:29 +01:00