[osg-users] [Fwd: Re: to draw landscapes beginning from a matrix]
aurora restivo
aurora_re at tiscali.it
Thu Feb 28 06:14:36 PST 2008
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: osg-users-bounces at lists.openscenegraph.org [mailto:osg-users-
>> bounces at lists.openscenegraph.org] 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080228/7ec44a7a/attachment.htm
More information about the osg-users
mailing list