ThorstenB
e3cf41a666
zfstream: fixed mixed white spaces
...
otherwise unchanged
2012-11-07 23:45:01 +01:00
James Turner
851a307c23
Test for, and fix, materials handling in BTG code.
...
It's possible (and happens!) to have less than 2^16 vertices or tex-coords, but more than 2^15 objects (tris) with the same materials. This was breaking our version 7 vs version 10 detection logic. Pete found the issue, I'm simply committing a version of his fix.
2012-11-07 21:10:00 +00:00
Thomas Geymayer
183d3749f0
Fix SGPropertyNode tests
2012-11-07 09:31:56 +01:00
ThorstenB
3fe513f9e0
Fix property find_last_child/addChild.
...
Initial "addChild" should have index #0 (not #1 ).
Also extend test cases.
(Test case shows addChild(append=false) isn't working as expected!?)
2012-11-07 00:53:32 +01:00
Thomas Geymayer
81bee2bbc6
Jenkins has some problems with bind and lambdas. Let's try it with ordinary function pointers...
2012-11-06 19:34:23 +01:00
Thomas Geymayer
34719da000
Clean up Canvas element creation
2012-11-06 18:48:00 +01:00
Thomas Geymayer
df8a3d9c60
SIMGEAR_HEADLESS define is not needed anymore
2012-11-05 18:06:13 +01:00
Thomas Geymayer
53dea9b069
Move parseColor to scene/util
...
parseColor is used to parse a CSS color string into an osg::Vec4
which is only available in SimGearScene. If someone needs the
function also in SimGear headless mode we have to think about
where to better place this function.
2012-11-05 17:58:24 +01:00
Thomas Geymayer
186bae2bd4
Proper headless build fix
2012-11-05 13:35:06 +01:00
Thomas Geymayer
f83c8828f0
Fix windows and headless build
2012-11-05 12:59:15 +01:00
Thomas Geymayer
509d064286
No need to link to ShivaVG anymore
2012-11-04 23:48:51 +01:00
Thomas Geymayer
2d039e393a
Include ShivaVG into libSimGearScene
2012-11-04 20:00:53 +01:00
Thomas Geymayer
9ab88d9387
Commited too fast...
2012-11-04 19:22:37 +01:00
Thomas Geymayer
882a2a0e52
Remove OpenVG dependency from header file
2012-11-04 19:21:33 +01:00
Thomas Geymayer
c6ce1d8c67
Fix adding ShivaVG include directory
2012-11-04 16:51:07 +01:00
Thomas Geymayer
77e1a2e4be
Fix signed/unsigned comparison warning
2012-11-04 15:26:41 +01:00
Thomas Geymayer
b99f53fda3
Refactor Canvas and add some helpers.
...
- Refactor Canvas from FlightGear and fix lazy rendering with
recursive canvases.
- New classes PropertyBasedElement and PropertyBasedManager for
creating subsystems controlled by the property tree.
- New method parseColor to parse CSS 3 conformant color strings
(only basic color schemes supported)
- New Rect class representing a rectangle.
2012-11-04 14:12:05 +01:00
Mathias Froehlich
a7f64cf7aa
scenery: put stg loaded models under a common lod node.
2012-11-01 07:19:38 +01:00
Thomas Geymayer
8ebc0f2b24
Add VGInitOperation for initializing OpenVG
2012-10-31 01:38:59 +01:00
Thomas Geymayer
5330dc34bc
Helper for property controlled subsystems
...
- Subsystem which manages a list of elements which
are controlled through the property tree.
- Fix a ShivaVG compiler warning.
- Add some helper functions to trigger property removed/add
events for a whole property tree.
2012-10-29 16:11:35 +01:00
Frederic Bouvier
4854a9e320
No bzero in MSVC
2012-10-29 08:48:55 +01:00
James Turner
71be1a9e28
HTTP enhancements.
...
Support content-encoding and improve pipelining support.
2012-10-27 18:03:51 +01:00
Thomas Geymayer
d0ae09c7e2
Link with ShivaVG
2012-10-25 01:02:38 +02:00
Thomas Geymayer
a25bd06138
ShivaVG: Support for pseudo non-zero fillrule
2012-10-25 01:02:23 +02:00
James Turner
1b55076897
Fix a Clang warning in Shiva.
2012-10-25 00:44:48 +02:00
Thomas Geymayer
5eac7974c9
Add missing glx.h include and fix some warnings.
2012-10-25 00:44:47 +02:00
James Turner
3afd6e9f51
Fix OS-X compilation.
2012-10-25 00:44:47 +02:00
Thomas Geymayer
05c107ba9c
Allow filling paths and do some clean up/fixing.
2012-10-25 00:44:47 +02:00
Thomas Geymayer
99b00daf87
Add ShivaVG sources
2012-10-25 00:44:47 +02:00
Christian Schmitt
8ddb99f62f
pt_lights: 9 seconds+ break for the ODALS flash sequence is a bit too much. Set it to 2 seconds.
2012-10-23 19:09:56 +02:00
Peter Sadrozinski
47dec485e5
Add SGGeod read and write to gzFile
2012-10-22 15:34:16 +02:00
Thomas Geymayer
f191b4f35c
Move FGODGauge from FlightGear to SimGear.
...
This is a first step for moving the Canvas system to SimGear to
make it accessible to other applications (eg.FGRadar is going to
use it)
2012-10-19 11:56:32 +02:00
Thomas Geymayer
e24e3c0612
Add method SGPropertyNode::addChildren to create multiple children at once
2012-10-14 17:26:52 +02:00
ThorstenB
1dfac0a8b9
Avoid randomness when processing directories.
...
Order of files in file system order is random (maybe different for every
user). Determinsm is good, i.e. when loading Nasal scripts in a fixed,
known sequence, or config files, where the later may overrule settings of
the earlier.
2012-10-13 15:44:21 +02:00
Thomas Geymayer
f5cc151618
Extend addChild to allow using first unused index
2012-10-13 15:07:18 +02:00
ThorstenB
1ff3a61de6
Move uppercase function to strutils.
2012-10-10 21:31:57 +02:00
Stuart Buchanan
81d5b651d2
Change default tree-max-density-angle-deg to 30 and tree-zero-density-angle-deg to 45, as redommended by Thorsten Renk to account for our scenery generally rendering slopes shallower than they are IRL.
2012-10-10 19:57:16 +01:00
Stuart Buchanan
ea4ed7cdd1
Reduce tree and object cover on steep slopes, configurable through materials.xml
2012-10-05 21:59:13 +01:00
ThorstenB
e30ea5206f
Fix Linux compile: "free" needs stdlib.h.
...
Also move to .cxx file to avoid another include dependency in the header.
2012-10-04 21:11:35 +02:00
James Turner
c188f6e3cb
Initial work on making OpenAL private to the sound code.
2012-10-04 16:47:13 +01:00
Mathias Froehlich
2fb8999ac2
scenery: remove default zero reader writer options argument.
2012-10-03 22:04:47 +02:00
Mathias Froehlich
9c9bfc1a98
scenery: Make sure makeEffects has reader writer options.
2012-10-03 21:59:09 +02:00
James Turner
f7a87789ab
Improve decode_bin output slightly.
2012-09-30 16:44:22 +01:00
Mathias Froehlich
7bcf02a0b4
Handle isnan at a more central place.
...
Do not distribute architecture specific
code across a lot of places.
2012-09-27 18:44:14 +02:00
Mathias Froehlich
fcd1733787
Fix line segment plane intersect.
2012-09-27 18:21:13 +02:00
Mathias Froehlich
c04ec5953f
bvh: Build bigger leaf nodes for paged bvh nodes.
...
Flatten the leaf nodes in the paged bounding volume tree
as good as possible. The implementation still assumes a
whole world database which actually holds for our usual
scenery.
2012-09-27 18:21:13 +02:00
Mathias Froehlich
63aa16b97c
scene: Factor out a common primitive functor.
...
This kind of work is done two times for different
flavours of bounding volume generation. Factor
out and use this in BVHPageNodeOSG.cxx and
BoundingVolumeBuildVisitor.hxx.
2012-09-27 18:21:13 +02:00
Mathias Froehlich
cafbf860be
bvh: Make BVHPageNode::_Request fields private.
2012-09-27 18:21:13 +02:00
Frederic Bouvier
700b0bc776
Provide a definition for GL_SAMPLE_ALPHA_TO_COVERAGE_ARB
2012-09-26 08:38:04 +02:00
Frederic Bouvier
98ca36e8f5
MSVC has no std::isnan
2012-09-26 08:36:56 +02:00