QGIS 3D Animations
Page Under Construction
Introduction
This page explains how to make a 3D animation using QGIS. QGIS version 3.38.3 has been used for this example.
Data Required
As a minimum you will need:
- Digital Elevation Model (DEM)/TIN; and
- 2D Model Results.
The DEM and 2D results for Tutorial Module 1 are used in this example. The complete model is available from Tutorial Introduction.
Set Up QGIS Workspace
The following steps demonstrate how to display the water level (_h) datasets, these steps may equally be followed using other datasets you may have.
- Load the DEM.tif into the QGIS workspace
- Load the 2D results dataset using the M01_5m_001.xmdf results file located in the TUFLOW\results\ folder using the TUFLOW Viewer. For more details on loading map outputs, refer to TUFLOW Viewer - Load Results - Map Outputs.
- Select 'Depth' results to display in the workspace and change map styling to your preference. In this example, the 'blues' colour ramp has been selected and the temporal bar has been moved to show depth results near the peak of the event. For more details on map styling, refer to TUFLOW Viewer - Map Outputs - Styling Scalar Types.
The QGIS workspace should look similar to below:
Configure DEM in 3D Map View
- Create a new 3D map view under View >> 3D Views >> New 3D Map View:
The following 3D Map View window will appear:
- Within the 3D Map View window, configure the DEM to display as a 3D mesh:
- Use the Zoom Full tool to center the map view onto the DEM
- Click Settings > Terrain tab
- Within the Terrain tab, enable the following settings:
- Type: Mesh
- Elevation: M01_5m_001
- Smooth triangles enabled
- Render style: Color Ramp Shader
- Color ramp: Greys >> Invert Color Ramp
- Click OK
The figure below demonstrates the resultant 3D surface. For more details on navigating within the 3D map view, refer to QGIS Documentation - 3D Map View, Navigation Options
Load Results in 3D Map View
The following steps demonstrates how to load the maximum water level results in the 3D Map View.
- Open Layer Properties of the Results Mesh Layer, by right-clicking the layer in the Layers Panel and selecting "Properties..."
- Navigate to the 3D View Panel within the Layer Properties window, and enable the following settings:
- Enable 3D Renderer
- Enable Smooth Triangles
- Dataset group for vertical value: "Water Level/Maximums"
- Rendering style: "2D Contour Color Ramp Shader"
- Click OK
Note, the "2D Contour Colour Ramp Shader" rendering style option sets the symbology of the results to replicate the current symbology in the current 2D map view.
Up |
---|
Back to QGIS Tips And Tricks |