[vtkusers] How to use vtkGeoView/vtkGeoTerrain/vtkGeoSource

Olli gammelnerd at gmail.com
Tue Feb 16 18:03:25 EST 2010


Thanks. This is a normal way to render elevation files. Now, my problem is how to save and organize the results in order to form a vtkGeoSource object. At least I think so. I just don't get the idea, how to build that multi-resolution tree of terrain pathces.

Olli 

satyanarayana reddy kirjoitti 16.2.2010 kello 12.02:

> Hi,
> See the following it might be useful to you.. For more information see the examples which use vtkDEMReader
> 
> vtkDEMReader* demReader = vtkDEMReader::New();
> demReader->SetFileName(argv[1]);
> demReader->Update();
> vtkImageDataGeometryFilter *filter = vtkImageDataGeometryFilter::New();
> filter->SetInputConnection(demReader->GetOutputPort());
> vtkWarpScalar *warp = vtkWarpScalar::New();
> warp->SetInput(filter->GetOutput());
> warp->SetScaleFactor(1);
> warp->UseNormalOn();
> warp->SetNormal(0, 0, 1);
> warp->Update();
> vtkElevationFilter *elevation = vtkElevationFilter::New();
> elevation->SetInputConnection(warp->GetOutputPort());
> 
> vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
> mapper->SetInputConnection(elevation->GetOutputPort());
> 
> 
> 
> 
> 
> On Tue, Feb 16, 2010 at 2:50 PM, Olli <gammelnerd at gmail.com> wrote:
> Hi,
> 
> I have a set of DEM files and should implement a multi-resolution terrain rendering solution. And ultimately place some 3D data objects to terrain view.
> 
> Because my data visualization already utilizes VTK, I'm looking for a solution that would use VTK also for terrain rendering. I took a look to vtkGeoView and vtkGeoTerrain classes, which already implement a multiresolution scheme. I just couldn't figure out how to get from DEM files to correct data representation.
> 
> - How to process DEM files to get proper vtkGeoSource geometry tiles?
> - Do I manage with elevation data and color map only, or do I need some texture file to cover earth surface?
> - It is possible to use vtkGeoView and vtkGeoTerrain to render terrain for smaller areas than the whole globe?
> - And I'd like to render in planar projection, not spheric, as GeoView currently. Possible?
> 
> Some question to start with. I'm a bit confused...
> 
> Thanks,
> 
> Olli
> 
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 




More information about the vtkusers mailing list