]> git.mxchange.org Git - simgear.git/log
simgear.git
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.

11 years agoBump version to 2.11.0
Torsten Dreyer [Thu, 17 Jan 2013 18:22:07 +0000 (19:22 +0100)]
Bump version to 2.11.0

11 years agoCanvas: Provide sane default bounding box (For Image & Text)
Thomas Geymayer [Wed, 9 Jan 2013 11:11:19 +0000 (12:11 +0100)]
Canvas: Provide sane default bounding box (For Image & Text)

11 years agoFix canvas mouse intersection test
Thomas Geymayer [Fri, 4 Jan 2013 23:44:19 +0000 (00:44 +0100)]
Fix canvas mouse intersection test

Bounding box of drawables use other coordinate frame
then bounding sphere of MatrixTransform...

11 years agocanvas::Element: parse full 3x3 matrix
Thomas Geymayer [Tue, 1 Jan 2013 13:18:39 +0000 (14:18 +0100)]
canvas::Element: parse full 3x3 matrix

This doesn't change any existing behaviour but allows specifying
full 3x3 matrix to eg. perform a perspective transform needed
for some HUDs.

11 years agoAllow nasal::Ghost to only wrap classes by their shared pointers
Thomas Geymayer [Sat, 29 Dec 2012 16:47:07 +0000 (17:47 +0100)]
Allow nasal::Ghost to only wrap classes by their shared pointers

This removes support for exposing and managing classes by just
raw pointers as this made lifetime management of instances
from C++ to Nasal and especially the other way round nearly
impossible. Always using smart pointers saves us from a lot
of headaches.

11 years agoNotify all requests on name lookup failures.
James Turner [Sat, 29 Dec 2012 14:36:38 +0000 (14:36 +0000)]
Notify all requests on name lookup failures.

Since there's no active request during a name lookup failure, explicitly fail all sent and queued requests, so the Request subclasses can take regular failure action.

11 years agoExpose the current members of a subsystem group.
James Turner [Fri, 28 Dec 2012 14:54:00 +0000 (14:54 +0000)]
Expose the current members of a subsystem group.

11 years agoAdd SGPath to the Nasal conversion helpers.
James Turner [Fri, 28 Dec 2012 14:53:31 +0000 (14:53 +0000)]
Add SGPath to the Nasal conversion helpers.

11 years agoOS-X specific sleep helper, more stable.
James Turner [Sun, 23 Dec 2012 23:30:40 +0000 (23:30 +0000)]
OS-X specific sleep helper, more stable.

11 years agoRevert to old way of including everything from SGMath.hxx
Thomas Geymayer [Sun, 23 Dec 2012 00:17:56 +0000 (01:17 +0100)]
Revert to old way of including everything from SGMath.hxx

11 years agoTweak libSvn usage: fixes a crash on Mac.
James Turner [Sat, 22 Dec 2012 23:55:37 +0000 (23:55 +0000)]
Tweak libSvn usage: fixes a crash on Mac.

Work-around a crash on certain Mac builds (I can't tell why other work fine) where the called parameters to apr_pool_create_ex are problematic. Explicitly pass the default values for the function.

11 years agohla: Lower the log level of two alerts.
Mathias Froehlich [Sat, 22 Dec 2012 09:09:17 +0000 (10:09 +0100)]
hla: Lower the log level of two alerts.

Trying to interpret the object template in a yet
unimplemented format is not worth an alert.

11 years agofeature freeze for 2.10.0, new version number
Torsten Dreyer [Tue, 18 Dec 2012 20:57:02 +0000 (21:57 +0100)]
feature freeze for 2.10.0, new version number

11 years agoMissing file...
Thomas Geymayer [Mon, 17 Dec 2012 09:53:52 +0000 (10:53 +0100)]
Missing file...

11 years agoNasal cppbindings: automatic conversion of vec2 to/from Nasal
Thomas Geymayer [Sun, 16 Dec 2012 23:26:02 +0000 (00:26 +0100)]
Nasal cppbindings: automatic conversion of vec2 to/from Nasal

11 years agoFix memory leak if nasal::Ghost creation fails
Thomas Geymayer [Sun, 16 Dec 2012 20:31:19 +0000 (21:31 +0100)]
Fix memory leak if nasal::Ghost creation fails

11 years agoCanvas: Remove old event handling code
Thomas Geymayer [Sun, 16 Dec 2012 18:02:21 +0000 (19:02 +0100)]
Canvas: Remove old event handling code

11 years agoCanvas: create mouseover/mouseout events
Thomas Geymayer [Sun, 16 Dec 2012 17:52:20 +0000 (18:52 +0100)]
Canvas: create mouseover/mouseout events

11 years agoImprove HTTP behaviour when name lookup fails.
James Turner [Sat, 15 Dec 2012 15:09:33 +0000 (15:09 +0000)]
Improve HTTP behaviour when name lookup fails.

Don't endlessly re-send requests when name lookup fails; inform the next layer up so it can decide whether to retry.

11 years agoRename simgear::Rect to SGRect and make interface more similar to SGBox
Thomas Geymayer [Thu, 13 Dec 2012 22:37:21 +0000 (23:37 +0100)]
Rename simgear::Rect to SGRect and make interface more similar to SGBox

11 years agoOverload Rect::contains and add compound assignment operators to PropertyObject
Thomas Geymayer [Wed, 12 Dec 2012 23:30:01 +0000 (00:30 +0100)]
Overload Rect::contains and add compound assignment operators to PropertyObject

11 years agoWhoops, fix bad #ifdef to disable sound. Bug #958
James Turner [Wed, 12 Dec 2012 11:16:29 +0000 (11:16 +0000)]
Whoops, fix bad #ifdef to disable sound. Bug #958

11 years agoCreate new FBO if Canvas render target size chanages
Thomas Geymayer [Sun, 9 Dec 2012 22:08:04 +0000 (23:08 +0100)]
Create new FBO if Canvas render target size chanages

As doesnt seem to work to just resize the texture, if changing
the size of the Canvas render target a new FBO is created and
placed on all active placements.

11 years agoCanvas: MouseEvent now contains screen and client pos
Thomas Geymayer [Sat, 8 Dec 2012 13:59:29 +0000 (14:59 +0100)]
Canvas: MouseEvent now contains screen and client pos

11 years agoWork on making OpenAL a compile-time option.
James Turner [Fri, 7 Dec 2012 20:26:24 +0000 (15:26 -0500)]
Work on making OpenAL a compile-time option.

ENABLE_SOUND=0 now works when configuring SimGear, and libSimGearScene can be linked without OpenAL. However, more testing of FlightGear in this mode is needed before it's officially supported!

11 years agoCanvas: basic support for rectangular clipping (like CSS clip property)
Thomas Geymayer [Fri, 7 Dec 2012 17:36:37 +0000 (18:36 +0100)]
Canvas: basic support for rectangular clipping (like CSS clip property)

11 years agoCanvas: Fix handling drag events and some cleanup.
Thomas Geymayer [Fri, 7 Dec 2012 17:34:43 +0000 (18:34 +0100)]
Canvas: Fix handling drag events and some cleanup.

11 years agoImplement Canvas single/double/tripple click handling.
Thomas Geymayer [Thu, 6 Dec 2012 22:13:19 +0000 (23:13 +0100)]
Implement Canvas single/double/tripple click handling.

 - Implement click event creation like specified in
   DOM Level 3:
   * Check for max move distance between mousedown/up
     and clicks
   * Check for click timeout
   * Count clicks and report double clicks

11 years agoCanvas: Propagate style changes on groups to children
Thomas Geymayer [Thu, 6 Dec 2012 10:33:51 +0000 (11:33 +0100)]
Canvas: Propagate style changes on groups to children

11 years agoFix RNG so it is passed in from above rather than generating the same
Stuart Buchanan [Wed, 5 Dec 2012 22:10:45 +0000 (22:10 +0000)]
Fix RNG so it is passed in from above rather than generating the same
seed continuously.

11 years agoExtend Canvas to retrieve bounding box of groups
Thomas Geymayer [Tue, 4 Dec 2012 22:58:08 +0000 (23:58 +0100)]
Extend Canvas to retrieve bounding box of groups

11 years agocanvas::Element: print warning instead of crash on removing unknown transform
Thomas Geymayer [Sun, 2 Dec 2012 22:55:17 +0000 (23:55 +0100)]
canvas::Element: print warning instead of crash on removing unknown transform

11 years agohla: Add SGQuat data elements.
Mathias Froehlich [Sun, 2 Dec 2012 14:37:02 +0000 (15:37 +0100)]
hla: Add SGQuat data elements.

11 years agohla: Add integer valued vector types.
Mathias Froehlich [Sun, 2 Dec 2012 14:35:31 +0000 (15:35 +0100)]
hla: Add integer valued vector types.

11 years agomath: Add integer valued vector types.
Mathias Froehlich [Sun, 2 Dec 2012 13:50:04 +0000 (14:50 +0100)]
math: Add integer valued vector types.

11 years agohla: Remove obsolete typedefs.
Mathias Froehlich [Sun, 2 Dec 2012 13:49:30 +0000 (14:49 +0100)]
hla: Remove obsolete typedefs.

11 years agoFirst working version of DOM like Canvas event handling
Thomas Geymayer [Sun, 2 Dec 2012 12:19:35 +0000 (13:19 +0100)]
First working version of DOM like Canvas event handling

 - Now it is possible to attach listeners to canvas
   elements and also the canvas itself, which get
   called upon different mouse events (Currently
   only basic mouse events supported. click/dblclick
   etc. are missing)

11 years agoFixed incomplete copy&paste issue.
ThorstenB [Sat, 1 Dec 2012 10:07:10 +0000 (11:07 +0100)]
Fixed incomplete copy&paste issue.

11 years ago#946: some libraries not found on Ubuntu/Debian
ThorstenB [Sat, 1 Dec 2012 09:59:57 +0000 (10:59 +0100)]
#946: some libraries not found on Ubuntu/Debian
Ubuntu/Debian introduced "multiarch" library directories, which is
unsupported by CMake <= 2.8.10. Add manual search paths as a workaround.
Currently it is only needed for libsvn, but it is needed for any lib
which is converted to the new directory standard.

11 years agoLook for Boost 1.52.0 and OpenRTI under Windows
Frederic Bouvier [Sat, 1 Dec 2012 09:59:58 +0000 (10:59 +0100)]
Look for Boost 1.52.0 and OpenRTI under Windows

11 years agohla: Use a different extrapolation method for HLALocation.
Mathias Froehlich [Sat, 1 Dec 2012 06:59:56 +0000 (07:59 +0100)]
hla: Use a different extrapolation method for HLALocation.

11 years agoSharedPtr: Avoid double dereference when calling clear().
Mathias Froehlich [Sat, 1 Dec 2012 06:58:38 +0000 (07:58 +0100)]
SharedPtr: Avoid double dereference when calling clear().

11 years agoAdd method canvas::Group::getElementById
Thomas Geymayer [Thu, 29 Nov 2012 23:06:17 +0000 (00:06 +0100)]
Add method canvas::Group::getElementById

 - canvas::Group: New method to get a (possibly
   nested) child by its id.
 - nasal::Ghost: Also support recursive parent
   hashes.