Thomas Geymayer
09d47e7f55
cppbind: fix problem with function call without arguments.
2014-03-22 13:23:21 +01:00
Thomas Geymayer
13a3ea3503
cppbind: allow calling methods with 'me' object from C++.
2014-03-22 12:41:47 +01:00
Thomas Geymayer
ff53792e4f
CanvasImage: rename 'file' to 'src'.
2014-03-20 11:42:02 +01:00
Thomas Geymayer
fd51518d92
CanvasImage: improve fetching from http and add mime detection.
2014-03-20 01:44:31 +01:00
Thomas Geymayer
01a43b49a5
Canvas: Respect clipping while event handling.
2014-03-19 18:21:25 +01:00
Thomas Geymayer
3525fff8d0
CanvasGroup: return empty bounding box without children.
...
Return an invalid bounding box can lead to problems
if used unchecked. Just returning an empty bounding
box (size 0x0 and position at the origin of the
element) is much safer.
2014-03-19 16:31:17 +01:00
Thomas Geymayer
6c75e2fe3c
CanvasImage: support for http protocol.
...
- Download and display images.
2014-03-18 18:33:44 +01:00
Mathias Froehlich
b322864ef4
Fix detection of airports in the stg loader.
2014-03-16 16:08:31 +01:00
Thomas Geymayer
f28e3fc9bb
Canvas: fix position for drag events and multiclick handling.
...
- Calculate local/client position for every drag event
instead of just reporting the position of the initial
mousedown event.
- Only pressing the same button multiple times increases
the mouse clickcount.
2014-03-15 14:53:08 +01:00
Thomas Geymayer
80e77b8372
Canvas: set button for drag events.
2014-03-15 00:40:48 +01:00
James Turner
c925b7b601
Don't leak cube-map textures
...
- use observer_ptr so cube-map textures are released without the
builder holing a ref.
2014-03-13 22:16:58 +00:00
James Turner
966789de90
Fix leak of object-mask textures
2014-03-13 22:16:00 +00:00
Torsten Dreyer
d44a3117d9
Partial fix of #1408 , add missing throw
2014-03-12 21:10:14 +01:00
Thomas Geymayer
c851c449da
cppbind: Do not derive from SGReferenced if there is no need
2014-03-12 17:40:21 +01:00
Thomas Geymayer
b2d9385f46
cppbind: fix possible usage of expired object from Nasal
2014-03-11 15:40:26 +01:00
James Turner
f40efe66fa
Simplify copyProperties
...
- with initial-state save/restore gone, all uses of
copyProperties are now simple. For selective copying, use
copyPropertiesWithAttribute.
2014-03-11 08:32:33 +00:00
Thomas Geymayer
5560479665
SGPropertyNode: do not keep list of deleted children.
...
Get rid of the possibilty to keep delted children. This was not
used actively, required unnecessary memory for each property node
and lead to subtile bugs, as creating a node after a node with
the same path has been deleted resulted in getting the old node
back instead of a cleanly initialized one.
2014-03-06 00:39:23 +01:00
James Turner
4ea8e4774e
Remove unused cube-map from 2D clouds.
2014-03-05 14:42:29 +00:00
James Turner
18ff03acdf
VBO switch also controls random-buildings.
2014-03-05 10:20:48 +00:00
Thomas Geymayer
aa27a09801
MouseEvent: comply with DOM Level 3 and add some getter.
2014-03-04 17:58:37 +01:00
James Turner
a8d7645004
Code cleanups.
...
(no functionality change)
2014-03-04 16:05:36 +00:00
James Turner
081aafb914
Allow clouds to be toggled on/off
...
- Change the cloud-root Group to a Switch
2014-02-28 11:06:47 +00:00
Stuart Buchanan
5a5ba08c23
Fix longstanding rent in skydome under ALS.
2014-02-27 21:57:27 +00:00
Thomas Geymayer
91b92c5613
animation: fix for 'textrapezoid' animation outside 'texmultiple'.
2014-02-26 17:48:11 +01:00
James Turner
bd5bc9cda0
TerraSync: expose method as public
...
- needed for command-line terrasync util.
2014-02-25 09:13:16 +00:00
James Turner
db684eb33e
HTTP: improve handling of connection errors
...
- handle 'whole connection' errors consistently, e.g. EUNREACH
which can occur with intermittent connections.
2014-02-24 19:41:14 +00:00
James Turner
a07cfdb683
Remove obsolete TerraSync methods.
...
- all scheduling is now done via paths/buckets, not lat+lon.
2014-02-24 18:45:57 +00:00
James Turner
b956a2c834
Sky: expose OSG branches as Groups.
...
- avoids creating additional groups in Renderer
2014-02-24 18:45:57 +00:00
James Turner
ba38688a83
Fix failing BucketBox test
...
- improve behaviour of floorWithEpsilon helper in bucket code, and
use in more places so that near-integral values are rounded correctly.
2014-02-24 18:03:17 +00:00
Stuart Buchanan
3429e00721
Add osgUtil::Simplifier to allow terrain simplification.
2014-02-23 21:09:09 +00:00
James Turner
32a6bd78d8
Make return type from loadPagedModel explicit.
...
- explicitly return osg::PagedLOD instead of Node, so callers
don't need to rely on documentation + cast to get the LOD
settings on the result.
2014-02-22 16:24:47 -08:00
Thomas Geymayer
b2cedc5332
Canvas: Fix crash on hide/show after detaching element from scenegraph.
2014-02-22 01:51:54 +01:00
Christian Schmitt
94bbed80d0
Use the new SGBucket api
2014-02-21 17:38:26 +01:00
Christian Schmitt
b4ecb6f2db
Fix new SGBucket API
2014-02-21 11:13:32 +01:00
James Turner
3b5665fe92
Only disable display lists if using VBOs.
...
(Otherwise we fall back to very slow submission)
2014-02-19 15:10:48 -08:00
James Turner
b4f4ef9c5b
Optionally deprecate parts of SGBucket
...
When NO_DEPRECATED_API is set, remove portions of the
SGBucket API.
2014-02-19 14:06:48 -08:00
James Turner
3c4c05fb3e
Fix GCC 4.6 / Ubuntu compile failure.
2014-02-19 14:05:26 -08:00
James Turner
b0cad59508
Raise required OSG version to 3.2.0
2014-02-19 10:58:39 -08:00
James Turner
d4030e72e4
Runtime VBO option in BTG loading.
2014-02-18 19:58:19 -08:00
James Turner
481f7e3bfa
Technique selection: fix shader-language
...
(Also add a glsl-supported test to simplify Effect logic)
2014-02-18 19:56:24 -08:00
Stuart Buchanan
c35243e215
OSG 3.2.0 compatibility and surface light effects.
2014-02-18 21:30:15 +00:00
James Turner
00d8849a28
Revise SGBucket::get_width_m
...
- remove the 0.5 degree offset away from the equator, which was
causing wrap-around at the poles
- add a new helper to get the highest latitude of a tile (which may
be +/- 90 for the polar cap tiles), and use this to compute radius
- special case the polar-caps and return a fixed, small width so
the tile-manager loads all tiles.
2014-02-13 18:49:38 +00:00
Thomas Geymayer
6b9ce935cd
Write back additional attributes to PropertyList
2014-02-13 18:27:34 +01:00
James Turner
e440aba0d2
Some Linux platforms need <cstdio> for snprintf.
2014-02-13 15:31:58 +00:00
James Turner
574d459f4e
Fix MSVC build.
2014-02-13 13:23:43 +00:00
James Turner
5fa0931a89
Revised set_bucket implementation.
...
- sink some inline methods into the .cxx file
- add isValid test to SGBucket
- sgGetBuckets won't return invalid buckets near the poles
- additional unit tests
2014-02-13 12:36:06 +00:00
James Turner
748b13850a
SGBucket unit-testing
...
- test polar wrapping near the 180-meridian
- test corner points for polar tiles
- expand test-macro helpers slightly
2014-02-12 16:21:16 +00:00
James Turner
9a09a6a447
Add new sibling() helper to SGBucket
...
- will replace sgBucketOffset eventually
- expand test coverage for both sibling() and offset function
(one test case is disabled since it fails)
2014-02-12 15:31:40 +00:00
James Turner
79c56c924f
Add unit-testing for SGBucket
...
- as part of looking at polar behaviour, start testing the
bucket code since the code has subtleties which it would be unwise
to change.
- remove a legacy setter on SGBucket (taking two doubles as a C-array)
2014-02-11 21:49:45 +00:00
James Turner
eef73953cb
Race-condition fix in get_effect.
...
Adapted from a fix by Jeff Biggs. (Shows up easier when using osgEarth,
and multiple osgDB pager threads)
2014-02-10 17:59:02 +00:00