Visualization of Digital elevation model (.tiff file)with x,y and z axis in 3D view.

Hi all,

I have a Digital Elevation Model (DEM) in .tiff format. While I am able to load the file into ParaView , it only appears as a flat surface in 3D view, without any relief features. How can I apply vertical exaggeration in the 3D view to better visualize and appreciate the DEM’s relief features?

Hi @kannan

You can use the “WarpByScalar” filter to transform the data.

Best,

That filter is greyed out when i tries to apply to my .tiff file.

Please share your data.

dem.tif (130.2 KB)
attached .tif file along with its associated file
dem.tfw (80 Bytes)

Add a CellDataToPointData first:

Hi Mathieu,
Thanks for your support and this looks great. actualy i am bit new to this software. Could you please brief me the steps to achieve this . this is exactly what i want it.

  • run ParaView
  • File → Open → dem.tiff
  • Select “GDal Raster Reader”, Ok
  • Filters → CellDataToPointData → Apply
  • Filters → WarpByScalars → ScaleFactor: 1e-5 → Apply

Here is a statefile that contains it all:

state_dem.pvsm (487.0 KB)

1 Like

@mwestphal thanks for detailed reply. i could now able to plot dem in 3D as shown below. but the issue is that if i change the scale factor for increasing Z exagerration, the original data values along Z axis also get altered.
is there any way to the scale Z axis for viewing only without changing data values and tick mark values along that Z axis ?. kind of exagerrating Z values for veiwing purpose.

In the Display properties, look for the “Transform”.

I changed Disply -Transform-scale factor to 4 to exaggerate the view,still the Z value got changed. Pixel value of my DEM (Z/Height) ranges from 1916 to 201 only whereas after scaling value got changed till 8000. Attched screenshot after changing disply values as given below. also aatching stat file.


stat.pvsm (472.9 KB)

Properties(WarpByScalar1)- scale factor 1 and normal 0 0 1
Display(StructuredGridRepresentaion)- Transform-Scale-0 0 4

Indeed, you are right, this is unexpected to me, and can arguably be considered a bug imo.

Data Axes grid should also respect the transform.

I’m afraid I dont have a solution at this point, there is no way to show an 3d axes grid with unequal axes in ParaView afaics.

1 Like