Robert Osfield
d05236bfb4
Implemented intial KdTree triangle intersection code, but without culling implemented
2008-07-07 13:21:37 +00:00
Robert Osfield
c4e8d6ee42
Changed the DatabasePager so that it bypasses the Registry::readNode() method and calls
...
readNodeImplementation() directly to avoid calling the KdTreeBuilder.
Updated wrappers.
2008-07-06 18:27:10 +00:00
Robert Osfield
44d144997e
Added prelimnary KdTree data structure and automatic kdtree build support
...
into osgDB::Registry/osgTerrain so that newly created subgraphs can have
KdTree built on all osg::Geometry automatically on load/creation.
2008-07-04 15:57:48 +00:00
Robert Osfield
4d60d73eca
Reorginized the TerrainTile/TerrainTechnique dirty mechanism so that TerrainTile
...
now holds the dirty flag and enables/disables event traversal in response dirty
being set/unset. This allows terrain to be automatically updated in response
to Terrain scale and sample ratio changes.
2008-05-27 15:30:20 +00:00
Robert Osfield
1519d0d546
From John Vidar Larring, "Added vertical scale as a property of osgTerrain::Terrain. Lets you configure vertical scale when initializing the terrain model. E.g:
...
osgTerrain::Terrain* terrain = findTopMostNodeOfType<osgTerrain::Terrain>(model.get());
if (!terrain)
{
terrain = new osgTerrain::Terrain;
terrain->addChild(model.get());
terrain->setVerticalScale(2.0f);
model = terrain;
}
viewerWindow->setSceneData(model.get());
"
2008-05-27 13:11:47 +00:00
Robert Osfield
e70d44e6a5
Added cast to avoid warning
2008-04-25 08:34:54 +00:00
Robert Osfield
78964b4baa
Reverted the changes for ill fated tweaks for Apple build
2008-04-24 11:34:43 +00:00
Robert Osfield
8ae30c9bfc
Refactored the inclusion of the headers in the ADD_LIBRARY so that they aren't
...
added under OSX.
2008-04-23 20:50:53 +00:00
Robert Osfield
5c08b0ccb0
Added return.
2008-04-22 14:31:30 +00:00
Robert Osfield
234bfeb648
Removed hardware down sampling hack from GeoemtryTechnique and replaced with Terrain::g/setSampleRatio()
...
usage.
2008-04-22 11:39:47 +00:00
Robert Osfield
960e0bd378
Set Texture::setMaxAnisotropy() to 16.0f for better quality terrain when looking at shallow angle.
2008-03-28 18:42:03 +00:00
Robert Osfield
3f81a994b7
Introduced mutex into Terrain node to manage the tile system data structures
2008-03-28 15:31:46 +00:00
Robert Osfield
2567b810cf
Removed TileSystem class, and added support for TerrainTile's automatically
...
registering and unregistering themseles with the enclosing Terrain node.
2008-03-27 13:21:36 +00:00
Robert Osfield
6396a156a2
Renamed osgTerrain::TerrainSystem to osgTerrain::Terrain
2008-03-27 11:55:03 +00:00
Robert Osfield
35c5bd2c92
Renamed Terrain to TerrainTile
2008-03-27 10:55:39 +00:00
Robert Osfield
a9d283ca73
Introduce TerrainSystem node which decorates a complete terrain model made up of Terrain tiles.
2008-03-26 20:06:54 +00:00
Robert Osfield
600dbf5470
Added sampling down to 32x32 mesh for 64x64 height fields as a workaround to
...
memory consumption issues with high res whole earth paged databases.
2008-03-24 18:06:40 +00:00
Robert Osfield
67f1503c7d
Refactored osgTerrain so that the interface for setting up layer is more straight forward, and added support into GeometryTechnique for handling multiple layers
2008-02-22 11:52:23 +00:00
Robert Osfield
6516bf4910
Added TextureUnit entry to osg::TransferFunction and osgTerrain::Layer
2008-02-20 12:34:13 +00:00
Robert Osfield
4163f173a0
Added missing checks for null pointers
2008-01-22 10:28:48 +00:00
Robert Osfield
5e9c708582
Added use of ref_ptr<> throughout geometry setup code to prevent memory leaks
2008-01-19 18:25:45 +00:00
Robert Osfield
d2aaa26c88
Disabled the default enabling of update traversal on osgTerrain::Terrain as this was preventing PagedLOD subgraphs from expiring inactive subgraphs
2008-01-19 13:31:12 +00:00
Robert Osfield
574582f206
Added support for rendering skirts into osgTerrain::GeometryTechinque
2008-01-18 16:36:05 +00:00
Robert Osfield
bb7ba24f59
Commented out debug message
2008-01-17 22:26:29 +00:00
Robert Osfield
fc85978077
Added computation of skirt height for osgTerrain::Terrain height fields.
2008-01-17 22:25:41 +00:00
Robert Osfield
bc6c7fcece
Added call to ClusterCullingCallback to determine if the Terrain node is culled
...
by cluster culling.
2008-01-17 17:10:12 +00:00
Robert Osfield
efdc026114
Fixed the computation of terrain bounding volume so that it properly accounts for
...
elevation layers
2008-01-17 15:37:35 +00:00
Robert Osfield
ae33e4a459
Changed the Texture clamp mode to CLAMP_TO_EDGE
2008-01-16 15:05:04 +00:00
Robert Osfield
828851c08a
Refactor osgTerrain::ProxyLayer so that it is now a pure Proxy, defering implementations
...
to an Implementation rather than a subclass of ProxyLayer. Updating the osgTerrain and GDAL plugins
to comply with this refactor.
2008-01-14 14:53:49 +00:00
Robert Osfield
a46eb79311
Indentation/bracket fixes and change of default size
2008-01-09 21:17:10 +00:00
Robert Osfield
2cab28c3b8
Added support for min to max level ranges for Layers in support of VirtualPlanetBuilder usage of this.
2007-12-20 15:51:13 +00:00
Robert Osfield
f7e91fa28e
Added Locator::s/getTransformScaledByResolution(bool) to assist with VPB integration
2007-12-13 17:51:43 +00:00
Robert Osfield
f4afa427a7
From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)."
2007-12-10 17:30:18 +00:00
Robert Osfield
8e7e6529be
From David Callu, warning fixes
2007-09-07 15:03:56 +00:00
Robert Osfield
9704ded891
From Maria Ten, fix lat/long usage.
2007-09-07 09:53:40 +00:00
Robert Osfield
92b1e7d53f
Changed tabs to four spaces to make merges more straight forward
2007-09-05 17:03:43 +00:00
Robert Osfield
a2447d493c
Added option to Locator to help specify here the locator value was defined from.
...
Update wrappers and Gdal plugin to use this new parameter
2007-09-05 14:15:55 +00:00
Robert Osfield
f4d2d1241d
Further work on osgTerrain::Locator and GDAL plugin
2007-08-30 19:26:52 +00:00
Robert Osfield
9a9ffbe229
Further work on new ProxyLayer
2007-08-29 16:29:05 +00:00
Robert Osfield
2f895b839e
Added ProxyLayer support into osgTerrain plugin
2007-08-29 12:18:41 +00:00
Robert Osfield
5b1b648ef5
Replaced CartesianLocator and EllipsoidLocator by a single general purpose
...
Locator class
2007-08-27 16:59:51 +00:00
Robert Osfield
f9ab446512
Changed debug comments to output to notify level and tweaked the handling of the .terrain file.
2007-08-24 19:16:35 +00:00
Robert Osfield
a981202953
Set the debug out to info notification level
2007-08-24 16:16:08 +00:00
Robert Osfield
c1dc079f56
Added missing clear() implementation
2007-08-21 09:32:16 +00:00
Robert Osfield
ffc8123a73
Changed the tolower of the file extension into the plugin name construction code.
...
Added support for CompositeLayer.
2007-08-16 18:49:46 +00:00
Robert Osfield
3c82058c68
Updated wrappers
2007-08-16 15:29:50 +00:00
Robert Osfield
2f41234793
From Maria Ten, "I divide the init method of the
...
geometrytechnique in submethods to made more easy the inheritance
between the user and osg-class. This is a first step to add more
functions in osgTerrain. Maybe the subdivision of the method have to
be in the terraintechnique because is the base class of
GeometryTechnique. If Robert or anyone think that this is better i
change this class too."
2007-08-16 14:13:10 +00:00
Robert Osfield
1049bd2939
Updated CMakeLists.txt to reflect renaming of TerrainNode.
2007-08-07 22:31:43 +00:00
Robert Osfield
1c6193ba78
Renamed osgTerrain::TerrainNode to osgTerrain::Terrain and introduced basic
...
.osg read support for osgTerrain::Terrain.
2007-08-07 19:53:57 +00:00
Robert Osfield
6b4e2fbdf2
From Alexandre Amalric, Fox example
...
From Robert Osfield, CMake build support for FOX example
2007-07-24 14:02:53 +00:00