Hi Mike!
I have resolved the problem of the visualization of the skirt, using
osgTerrain::Locator, osgTerrain::NoDataValue, and drawing with
osgTerrain::GeometryTechnique instead of drawing the HeightFieldLayer
with ShapeDrawable.
I am using Locator however I don't want my terrain to be drawn using the
locator->setCoordinateSystemType(osgTerrain::Locator::GEOCENTRIC)
I have tried to apply "GEOGRAPHIC" but it doesn't visualize anything.
I would perhaps need a Cartesian Locator for the correct visualization
of my terrain.
Thanks in advance
Aurora
Mike Weiblen ha scritto:
The existence of the skirt is controlled by your NODATA value. You must
set the NODATA value appropriate for your dataset:
hfLayer->setValidDataOperator(new osgTerrain::NoDataValue(
YOUR_NODATA_VALUE ));
Here are various links to review concerning the concept of NODATA:
http://gdal.org/gdal_datamodel.html
http://map.hut.fi/doc/Geo-GDAL/html/create_raster.html
http://www.gdal.org/gdalwarp.html
http://www.csc.noaa.gov/crs/tcm/faq.html
http://cses.washington.edu/cig/maps/dataFormat.shtml
-- mew
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:osg-users-
[EMAIL PROTECTED] On Behalf Of aurora restivo
Sent: Wednesday, February 27, 2008 8:30 AM
To: OpenSceneGraph Users
Subject: [osg-users] [Fwd: Re: to draw landscapes beginning from a
matrix]
please I need urgent an answer! :(
Aurora
I need to get the terrain as in the figure that I send you, but
without
visualizing the skirt.
Aurora
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org