]> git.mxchange.org Git - simgear.git/log
simgear.git
11 years agocppbind: tweaking from_nasal/to_nasal.
Thomas Geymayer [Mon, 4 Mar 2013 15:26:28 +0000 (16:26 +0100)]
cppbind: tweaking from_nasal/to_nasal.

11 years agocppbind: faster from_nasal for bool and fix VS warning.
Thomas Geymayer [Sun, 3 Mar 2013 23:30:05 +0000 (00:30 +0100)]
cppbind: faster from_nasal for bool and fix VS warning.

11 years agoMax catalog age configurable per-catalog.
James Turner [Sun, 3 Mar 2013 23:03:09 +0000 (23:03 +0000)]
Max catalog age configurable per-catalog.

Allows for short-validity catalogs for development use.

11 years agocppbind: refactor to_nasal for better name lookup.
Thomas Geymayer [Sun, 3 Mar 2013 22:39:26 +0000 (23:39 +0100)]
cppbind: refactor to_nasal for better name lookup.

Using template parameter dependent name lookup it is
now possible to create to_nasal_helper overloads
for custom types and having them used for automatic
type conversion with binding methods/member on
nasal::Ghost objects.

11 years agoAdd a missing define for minizip, needed on some installations of zlib
Christian Schmitt [Sun, 3 Mar 2013 22:35:43 +0000 (23:35 +0100)]
Add a missing define for minizip, needed on some installations of zlib

11 years agocppbind: Allow getter without from_nasal defined and setter without to_nasal.
Thomas Geymayer [Sun, 3 Mar 2013 19:55:57 +0000 (20:55 +0100)]
cppbind: Allow getter without from_nasal defined and setter without to_nasal.

11 years agoMake old gcc happy
Thomas Geymayer [Sun, 3 Mar 2013 19:16:21 +0000 (20:16 +0100)]
Make old gcc happy

11 years agocppbind: rework to allow binding nearly everything.
Thomas Geymayer [Sun, 3 Mar 2013 18:26:25 +0000 (19:26 +0100)]
cppbind: rework to allow binding nearly everything.

It is now possible to register all types of member function
and free functions as methods for nasal::Ghost objects.
The return value and arguments are converte automatically
to the required types.

Also usage is simplified by removing replacing the old
method and method_func with a single method function
which only needs a name for the method and something
callable.

11 years agoAdd new api to retreive a list of SGBuckets within a bounding rectangle
Peter Sadrozinski [Sun, 3 Mar 2013 16:57:38 +0000 (11:57 -0500)]
Add new api to retreive a list of SGBuckets within a bounding rectangle

11 years agoLook for MSVC 3rdparty deps differently.
James Turner [Sun, 3 Mar 2013 16:06:51 +0000 (16:06 +0000)]
Look for MSVC 3rdparty deps differently.

Check for the 3rdparty dir in the parent of build dir, not the parent of the source dir. For the recommended build layout, this is the same location, but for super-builds using fgmeta it's not (and the source tree should not be touched).

If this causes anyone issues, please let me know, since it's possible more flexibility is needed to set the path explicitly.

11 years agoSimplify CMakeLists now package code is enabled.
James Turner [Sun, 3 Mar 2013 16:01:06 +0000 (16:01 +0000)]
Simplify CMakeLists now package code is enabled.

11 years agoPackage management tweaks.
James Turner [Sun, 3 Mar 2013 15:03:25 +0000 (15:03 +0000)]
Package management tweaks.

11 years agosg_netChat: let getTerminator return const char* for compatiblity with FlightGear
Thomas Geymayer [Sun, 3 Mar 2013 00:19:35 +0000 (01:19 +0100)]
sg_netChat: let getTerminator return const char* for compatiblity with FlightGear

11 years agosg_netChat: Use std::string to prevent crash with old strdup.
Thomas Geymayer [Sun, 3 Mar 2013 00:07:35 +0000 (01:07 +0100)]
sg_netChat: Use std::string to prevent crash with old strdup.

Thanks to Godspeed for noticing this code crashing with MSVC.
Using std::string should fix this.

11 years agopkgutil can show detailed info about a package.
James Turner [Sat, 2 Mar 2013 17:02:08 +0000 (17:02 +0000)]
pkgutil can show detailed info about a package.

11 years agoLots more work on package support.
James Turner [Sat, 2 Mar 2013 16:30:39 +0000 (16:30 +0000)]
Lots more work on package support.

Delegate is hooked up in the demo util, and Install forwards control to the delegate too.

11 years agoLGPL license on package files.
James Turner [Sat, 2 Mar 2013 15:15:52 +0000 (15:15 +0000)]
LGPL license on package files.

11 years agoPackage dependencies.
James Turner [Sat, 2 Mar 2013 15:14:09 +0000 (15:14 +0000)]
Package dependencies.

11 years agoEnable package code by default.
James Turner [Sat, 2 Mar 2013 14:43:19 +0000 (14:43 +0000)]
Enable package code by default.

11 years agocppbind: Prepare for improved bindings.
Thomas Geymayer [Fri, 1 Mar 2013 23:13:06 +0000 (00:13 +0100)]
cppbind: Prepare for improved bindings.

 - Improved Nasal/C++ bindings will follow. For now just test if
   all compilers are happy with intended approach.
 - Add to_nasal overload for std::map<std::string, T>.

11 years agoAdd optional user_data to Nasal C functions.
Thomas Geymayer [Fri, 1 Mar 2013 11:22:51 +0000 (12:22 +0100)]
Add optional user_data to Nasal C functions.

A user_data pointer and another pointer to an optional
deleter function is stored in unused parts of the naPtr
union. The previous behavior of extension functions does
not change. Only one additional boolean comparison is
required upon each function call to check whether user
data is available.

11 years agoVisual Studio fix
Thomas Geymayer [Thu, 28 Feb 2013 23:33:47 +0000 (00:33 +0100)]
Visual Studio fix

11 years agocppbind: Fix SGPath from_nasal_helper
Thomas Geymayer [Thu, 28 Feb 2013 22:46:55 +0000 (23:46 +0100)]
cppbind: Fix SGPath from_nasal_helper

11 years agoNasal cppbind: support more member function types
Thomas Geymayer [Thu, 28 Feb 2013 22:43:42 +0000 (23:43 +0100)]
Nasal cppbind: support more member function types

11 years agoFix boolean conversion
Thomas Geymayer [Thu, 28 Feb 2013 21:23:15 +0000 (22:23 +0100)]
Fix boolean conversion

11 years agoODGauge/Canvas: add option "additive-blend" to use additive alpha blending
Thomas Geymayer [Thu, 28 Feb 2013 21:02:11 +0000 (22:02 +0100)]
ODGauge/Canvas: add option "additive-blend" to use additive alpha blending

11 years agoFix some signed/unsigned comparisoms.
James Turner [Thu, 28 Feb 2013 19:45:19 +0000 (19:45 +0000)]
Fix some signed/unsigned comparisoms.

11 years agoUpdated package-management code.
James Turner [Thu, 28 Feb 2013 18:19:01 +0000 (18:19 +0000)]
Updated package-management code.

Use mini-unzip code to extract, since we don't need all the features of libArchive, and the deployment issues become simpler.

11 years agoCanvasImage: Fix border abs/rel calculations; add slice-width property
Thomas Geymayer [Thu, 28 Feb 2013 00:09:27 +0000 (01:09 +0100)]
CanvasImage: Fix border abs/rel calculations; add slice-width property

11 years agosgstream_test needs linking with zlib
Thomas Geymayer [Tue, 26 Feb 2013 11:53:56 +0000 (12:53 +0100)]
sgstream_test needs linking with zlib

11 years agoCanvas: ensure z-index is updated on adding new child.
Thomas Geymayer [Tue, 26 Feb 2013 11:47:53 +0000 (12:47 +0100)]
Canvas: ensure z-index is updated on adding new child.

11 years agosgstream: detect two directly following CR/LF EOL correctly in skipeol,
Christian Schmitt [Mon, 25 Feb 2013 22:03:32 +0000 (23:03 +0100)]
sgstream: detect two directly following CR/LF EOL correctly in skipeol,
supply a testcase for this.

11 years agoscenery: Make static scenery static.
Mathias Froehlich [Mon, 25 Feb 2013 05:55:35 +0000 (06:55 +0100)]
scenery: Make static scenery static.

11 years agospt: Make the range multiplier configurable.
Mathias Froehlich [Sun, 24 Feb 2013 12:03:06 +0000 (13:03 +0100)]
spt: Make the range multiplier configurable.

11 years agospt: Normalize the bucket box meta filename lengths.
Mathias Froehlich [Sun, 24 Feb 2013 12:03:06 +0000 (13:03 +0100)]
spt: Normalize the bucket box meta filename lengths.

11 years agospt: Expose the paging levels to osg options.
Mathias Froehlich [Sun, 24 Feb 2013 12:03:06 +0000 (13:03 +0100)]
spt: Expose the paging levels to osg options.

The levels at which page nodes are built is exposed by an
osg database pager option SimGear::SPT_PAGE_LEVELS which could
contain a blank separated list of levels where paging occurs.
Also the database pagers paths are searched for static lower
level of detail tiles in case they are available.

11 years agospt: Use vbos for geometry.
Mathias Froehlich [Sun, 24 Feb 2013 12:03:06 +0000 (13:03 +0100)]
spt: Use vbos for geometry.

11 years agostg: Defer loading models into a paged lod node.
Mathias Froehlich [Sun, 24 Feb 2013 12:03:06 +0000 (13:03 +0100)]
stg: Defer loading models into a paged lod node.

This defers loading the models into a paged lod node
that is evaluated at a later point in time. That should
help for memory problems with higher visibilities.

11 years agoUpdate bounding box if calling update() on canvas elements
Thomas Geymayer [Sun, 24 Feb 2013 19:44:02 +0000 (20:44 +0100)]
Update bounding box if calling update() on canvas elements

11 years agoSupport image slice/scale-9 for CanvasImage.
Thomas Geymayer [Sun, 24 Feb 2013 16:39:45 +0000 (17:39 +0100)]
Support image slice/scale-9 for CanvasImage.

11 years agoFix package management compiling with linux
Thomas Geymayer [Thu, 21 Feb 2013 13:02:45 +0000 (14:02 +0100)]
Fix package management compiling with linux

11 years agoInitial work on package management.
James Turner [Wed, 13 Feb 2013 13:32:19 +0000 (13:32 +0000)]
Initial work on package management.

Basic library infrastructure, catalog download/refresh, and package install,
uninstall and update. Disabled at cmake time by default, and not yet hooked
into FlightGear.

11 years agoFix MSVC compilation, thanks to Fred.
James Turner [Mon, 18 Feb 2013 13:56:41 +0000 (13:56 +0000)]
Fix MSVC compilation, thanks to Fred.

11 years agoadded physical constant cp
Eric van den Berg [Sun, 17 Feb 2013 15:44:47 +0000 (16:44 +0100)]
added physical constant cp

11 years agofix mingw
Hooray [Mon, 4 Feb 2013 10:17:17 +0000 (11:17 +0100)]
fix mingw

11 years agoCanvasImage: Use image/canvas size rather than texture size
Thomas Geymayer [Fri, 15 Feb 2013 11:32:31 +0000 (12:32 +0100)]
CanvasImage: Use image/canvas size rather than texture size

11 years agoCanvasImage: Use normalized coordinates by default.
Thomas Geymayer [Thu, 14 Feb 2013 16:32:19 +0000 (17:32 +0100)]
CanvasImage: Use normalized coordinates by default.

Using absolute sizes by default lead to problems,
as while creating the image the size of the later
texture is not available.

11 years agoExpose whether CanvasElement is visible
Thomas Geymayer [Wed, 13 Feb 2013 11:09:15 +0000 (12:09 +0100)]
Expose whether CanvasElement is visible

11 years agoFix jpeg-httpd compilation.
James Turner [Mon, 11 Feb 2013 12:51:20 +0000 (12:51 +0000)]
Fix jpeg-httpd compilation.

11 years agoSupport arbitrary parameters to bindings.
James Turner [Sun, 10 Feb 2013 15:07:55 +0000 (15:07 +0000)]
Support arbitrary parameters to bindings.

Use this to supply window X/Y to hover bindings.

11 years agoGrrrr.
James Turner [Sat, 9 Feb 2013 15:45:36 +0000 (15:45 +0000)]
Grrrr.

11 years agoTweak APi for GCC happiness.
James Turner [Sat, 9 Feb 2013 14:11:48 +0000 (14:11 +0000)]
Tweak APi for GCC happiness.

11 years agoCommand-manager supports functors.
James Turner [Sat, 9 Feb 2013 12:40:44 +0000 (12:40 +0000)]
Command-manager supports functors.

Will be used to support native Nasal commands, which was tricky with pure function pointers before. Can also be used to avoid some trampoline functions in the code, but this can happen gradually.

11 years agoFix CanvasText horizontal alignment.
Thomas Geymayer [Sat, 9 Feb 2013 11:09:43 +0000 (12:09 +0100)]
Fix CanvasText horizontal alignment.

Don't reduce width of bounding box below character width
even if outline of rendered character is smaller. This
prevents trailing spaces from being ignored and also
fixes continuously chaging alignment (especially with
monospace fonts).

11 years agoFoundations of hover support in pick-callbacks.
James Turner [Sat, 9 Feb 2013 11:11:53 +0000 (11:11 +0000)]
Foundations of hover support in pick-callbacks.

11 years agoEnsure individual log-level setting works.
James Turner [Fri, 8 Feb 2013 20:17:27 +0000 (20:17 +0000)]
Ensure individual log-level setting works.

11 years agoLinux needs explicit <algorithm> include.
James Turner [Fri, 8 Feb 2013 20:07:11 +0000 (20:07 +0000)]
Linux needs explicit <algorithm> include.

11 years agoGive terrasync a buffered log.
James Turner [Fri, 8 Feb 2013 19:37:47 +0000 (19:37 +0000)]
Give terrasync a buffered log.

11 years agoLogging tweaks.
James Turner [Fri, 8 Feb 2013 19:37:29 +0000 (19:37 +0000)]
Logging tweaks.

More pieces to support logging to buffers in the GUI.

11 years agoFix GCC warnings about signed/unsigned compare.
James Turner [Fri, 8 Feb 2013 10:36:59 +0000 (10:36 +0000)]
Fix GCC warnings about signed/unsigned compare.

11 years agoMove BufferedLogCallback to its own class.
James Turner [Fri, 8 Feb 2013 10:36:41 +0000 (10:36 +0000)]
Move BufferedLogCallback to its own class.

Reduces includes in logstream.hxx, which is included by everyone and hence needs to be lightweight.

11 years agoFix stderr log filtering.
James Turner [Fri, 8 Feb 2013 09:51:58 +0000 (09:51 +0000)]
Fix stderr log filtering.

Thanks to Stuart for pointing this out!

11 years agoAdd SGMisc::seek helper
Thomas Geymayer [Fri, 8 Feb 2013 11:12:15 +0000 (12:12 +0100)]
Add SGMisc::seek helper

11 years agoFix bucketBoxTest linkage.
James Turner [Thu, 7 Feb 2013 17:53:34 +0000 (17:53 +0000)]
Fix bucketBoxTest linkage.

11 years agoFix property tests static linkage.
James Turner [Thu, 7 Feb 2013 17:51:42 +0000 (17:51 +0000)]
Fix property tests static linkage.

11 years agoA couple more tests fixes.
James Turner [Thu, 7 Feb 2013 17:48:58 +0000 (17:48 +0000)]
A couple more tests fixes.

11 years agoFix math test linkage.
James Turner [Thu, 7 Feb 2013 17:42:00 +0000 (17:42 +0000)]
Fix math test linkage.

11 years agoWindows logging tweaks.
James Turner [Thu, 7 Feb 2013 17:23:31 +0000 (17:23 +0000)]
Windows logging tweaks.

Restore the freopen calls, though I am unsure exactly what they achieve.

11 years agoMissing headers
Christian Schmitt [Thu, 7 Feb 2013 17:20:57 +0000 (18:20 +0100)]
Missing headers

11 years agoFix handling of ZSTREAM_END result from zlib.
James Turner [Thu, 7 Feb 2013 11:59:12 +0000 (12:59 +0100)]
Fix handling of ZSTREAM_END result from zlib.

Avoid getting stuck when ZSTREAM_END occurs with no more bytes written out.

11 years agoBuffered log-callback.
James Turner [Thu, 7 Feb 2013 11:57:15 +0000 (12:57 +0100)]
Buffered log-callback.

Allow a particular set of log messages to be retained indefinitely, for (presumably) later display somehow, such as in the GUI.

11 years agoRewrite logging code.
James Turner [Tue, 5 Feb 2013 22:49:25 +0000 (23:49 +0100)]
Rewrite logging code.

Support multiple backends, and make it thread-safe. Use an internal thread to push log entries to backends, to avoid blocking the submitting thread for any time.

11 years agoRemove debug output
Thomas Geymayer [Thu, 7 Feb 2013 09:10:38 +0000 (10:10 +0100)]
Remove debug output

11 years agoFix PropertyObject bug and interface improvements.
Thomas Geymayer [Thu, 7 Feb 2013 00:22:09 +0000 (01:22 +0100)]
Fix PropertyObject bug and interface improvements.

 - Fix overwriting of parent node if PropertyObject::node() is
   called for a non-existing node.
 - Prevent implicit conversion from const char* and
   SGPropertyNode*

11 years agoBuilding performance improvements.
Stuart Buchanan [Wed, 6 Feb 2013 21:53:57 +0000 (21:53 +0000)]
Building performance improvements.

Use sensible LoD range of 10km and gradual fade-out to 20km rather
than fixed 20km+ LoD range.  Also make deeper quad-tree to make
culling easier.

11 years agoExpose reloading Canvas placements
Thomas Geymayer [Wed, 6 Feb 2013 00:19:24 +0000 (01:19 +0100)]
Expose reloading Canvas placements

11 years agoMake the knob mouse-wheel direction configurable.
James Turner [Sun, 3 Feb 2013 17:21:50 +0000 (17:21 +0000)]
Make the knob mouse-wheel direction configurable.

Add a global setting to control the mouse-wheel direction of the knob; a future commit will expose this in the FG GUI.

11 years agoAdd 'release' bindings to knob animation.
James Turner [Sun, 3 Feb 2013 17:11:05 +0000 (17:11 +0000)]
Add 'release' bindings to knob animation.

Currently this fires on button release, but also after any mouse-wheel movement (since they are sent as buttons). This feels slightly wrong, but can't decide how a spring-loaded know would work, when interacting via the mouse-wheel. Comments welcome.

11 years agoKnob animation: shifted mode binding.
James Turner [Sun, 3 Feb 2013 16:33:30 +0000 (16:33 +0000)]
Knob animation: shifted mode binding.

As part of this, pass the osgGA GUIEventAdapter down into the pick callbacks, which seems reasonable to me. If anyone can foresee issues with this, please let me know and I can adjust the API.

11 years agoNasal String wrapper and allow adding methods to string objects.
Thomas Geymayer [Wed, 23 Jan 2013 00:09:57 +0000 (01:09 +0100)]
Nasal String wrapper and allow adding methods to string objects.

 - Add nasal::String for wrapping Nasal string data and accessing
   string methods (which eg. could be exposed to Nasal)
 - Allow adding functions from C/C++ which are callable on
   Nasal strings.

11 years agoSupport preview mode in the model loader.
James Turner [Thu, 31 Jan 2013 16:46:02 +0000 (16:46 +0000)]
Support preview mode in the model loader.

This makes fgviewer / fgfs --viewer mode useful with models containing Rembrandt light volumes.

11 years agoInitial prototype of knob animation.
James Turner [Thu, 31 Jan 2013 00:15:09 +0000 (00:15 +0000)]
Initial prototype of knob animation.

11 years agoPick animation moved to its own file.
James Turner [Wed, 30 Jan 2013 21:51:41 +0000 (21:51 +0000)]
Pick animation moved to its own file.

Preparatory work for adding more pick animations which will share some
internals with this code.

11 years agospt: The bucket size case is already handled above.
Mathias Froehlich [Wed, 23 Jan 2013 06:51:18 +0000 (07:51 +0100)]
spt: The bucket size case is already handled above.

11 years agospt: Introduce a third layer of paged nodes.
Mathias Froehlich [Tue, 22 Jan 2013 05:13:10 +0000 (06:13 +0100)]
spt: Introduce a third layer of paged nodes.

11 years agoadded some physical constants to constants.h
Eric van den Berg [Sun, 9 Dec 2012 09:14:22 +0000 (10:14 +0100)]
added some physical constants to constants.h
goes with fgfs merge request #38

11 years agoPrepare for optionally embedded SimGear.
James Turner [Sat, 26 Jan 2013 14:31:06 +0000 (15:31 +0100)]
Prepare for optionally embedded SimGear.

11 years agoState-machine correctness tweaks.
James Turner [Fri, 25 Jan 2013 11:05:16 +0000 (12:05 +0100)]
State-machine correctness tweaks.

11 years agoStateMachine tweaks.
James Turner [Fri, 25 Jan 2013 08:29:31 +0000 (09:29 +0100)]
StateMachine tweaks.

11 years agoTolerate lack of C99 in MSVC.
James Turner [Wed, 23 Jan 2013 15:01:46 +0000 (16:01 +0100)]
Tolerate lack of C99 in MSVC.

11 years agoFix state-machine test linkage with static libs.
James Turner [Tue, 22 Jan 2013 19:56:57 +0000 (20:56 +0100)]
Fix state-machine test linkage with static libs.

Thanks to Thomas for the catch.

11 years agoMissing include
Thomas Geymayer [Tue, 22 Jan 2013 18:20:41 +0000 (19:20 +0100)]
Missing include

11 years agoKeep Linux happy.
James Turner [Tue, 22 Jan 2013 17:53:51 +0000 (18:53 +0100)]
Keep Linux happy.

11 years agoState-machine structure, initial work.
James Turner [Sun, 20 Jan 2013 13:57:20 +0000 (14:57 +0100)]
State-machine structure, initial work.

11 years agoAdd left/right Nasal library functions.
James Turner [Sun, 20 Jan 2013 09:45:32 +0000 (10:45 +0100)]
Add left/right Nasal library functions.

11 years agoMore native math functions in Nasal.
James Turner [Sun, 20 Jan 2013 08:03:05 +0000 (09:03 +0100)]
More native math functions in Nasal.

11 years agospt: Put the sea level textured tiles also under a transform node.
Mathias Froehlich [Sun, 20 Jan 2013 14:33:25 +0000 (15:33 +0100)]
spt: Put the sea level textured tiles also under a transform node.

11 years agospt: Consistently return references in the loader.
Mathias Froehlich [Sun, 20 Jan 2013 14:33:25 +0000 (15:33 +0100)]
spt: Consistently return references in the loader.

11 years agospt: Use SGBox to build up the bounding spheres for the tiles.
Mathias Froehlich [Sun, 20 Jan 2013 14:33:25 +0000 (15:33 +0100)]
spt: Use SGBox to build up the bounding spheres for the tiles.

11 years agobucket: Make no bucket cross the 0 and 180 deg longitude border.
Mathias Froehlich [Sun, 20 Jan 2013 14:33:25 +0000 (15:33 +0100)]
bucket: Make no bucket cross the 0 and 180 deg longitude border.

Change the bucket tiling at the poles not to cross the
0deg longitude and not to cross the 180deg longitude line.
This lets some special cases disappear for the buckets as well
as for the hierarchical level of detail spt loader.
Also change the last degree tiles from spanning 360 degrees to
12 degrees. Before we had 8 nested rings which neither helps
scenery paging nor culling. With that change the chunks are
about the same order of size than any other tile. Also the
tile shapes are much more friendly for culling and paging.
Also in presence of the current scenery, this polar tiles contain
as of today just totally broken geometry which tells me that
also the scenery generation process did not like these rings
for the tile shapes.

The impact on the current scenery is low. With this change the
polar regions do no longer load the tiles that are available
in the current scenery builds. The last degree tiles are broken
in this scenery version anyway. The next degree that is changed
will really loose some tiles that were sensible as of today.
All these areas are replaced with sea tiles by the old paging
structure. So, you will have at least ground below you when you
fly there. A hopefully comming soon scenery rebuild will
use this new tiling structure and thus will be the first one
providing closed polar caps.