Robert Osfield wrote:
> Hi Mike,
> 
> On 6/28/06, Mike Weiblen <[EMAIL PROTECTED]> wrote:
> 
>> I was trying to quickly view a heightfield image using the "--dem"
>> flag, but it
>> doesn't seem to work.  Seems only the gdal plug implements
>> readHeightField(),
>> but I thought this worked directly with some image plugins in the past?
> 
> --dem only really exists to exercise the GDAL plugin, you need all the
> coordinates of geotiff or a dem that only GDAL can read, the other
> plugins just read images so don't have enough info to help create a
> properly sized image.

my intent was to render generic heightfield images, such as depth images or math
data on a regular square grid, no geolocation nor projection necessary.


>> Any suggestions how to view a height image without generating with
>> osgdem?
>> Perhaps could --dem force gdal to load the image?
> 
> You could possibly have other plugins that could support the
> readHeightField, so tiring tothe GDAL plugin doesn't seem appropriate.

but currently few (no?) image plugins actually implement readHeightField.  I
didn't necessarily want to tie to gdal per se, but it seemed a quick converter
from raster to height data.

I was pondering a generic heightfield pseudoloader like:
        osgviewer data.png.heightfield


> Can't you just pre load the gdal plugin?
> 
>  osgviewer -e gdal --dem mymodel.tif

indeed, that worked great!

thanks
-- mew


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to