QGIS 3D Animations: Difference between revisions

Content deleted Content added
No edit summary
Line 16:
<br>
 
=Method=
=Set=Configure Upthe QGIS Workspace==
TheConfigure followingthe stepsQGIS demonstrateworkspace how toand display the depth (d) datasets. The same process can be followed for other output datasets.
<ol>
<li>Load the '''DEM.tif''' into the QGIS workspace.
<li>Open the TUFLOW Viewer from the TUFLOW plugin toolbar: <br>
<li>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 | TUFLOW Viewer - Load Results - Map Outputs]].
</li><br>
<li>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 | TUFLOW Viewer - Map Outputs - Styling Scalar Types]].
[[File:tuflow_plugin_tuflow_viewer.png]]<br>
</ol>
</li><br>
<br>The QGIS workspace should look similar to below: <br>
<li>Load Open the 2D model results. datasetGo usingto 'File' > 'Load Results - Map Outputs' from the TUFLOW Viewer menu options and navigate to the '''M01_5m_001*.xmdf''' results file located in the(e.g. '''TUFLOW\results\M01_5m_001.xmdf''' folder using the TUFLOW Viewer). For more detailsinformation on loading map outputs, please refer to <u>[[TUFLOW_Viewer_-_Load_Results_-_Map_Outputs | TUFLOW Viewer - Load Results - Map Outputs]]. </u>
<li>Click on a scalar dataset 'Depth' under the Result Type in the TUFLOW Viewer 'Map Outputs' list.
<li>Select 'Depth' results to display inUpdate the workspace and change map styling to youras preferencedesired. In this example, the 'bluesBlues' colour ramp has been selected and the temporal bar has been movedadjusted 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 | TUFLOW Viewer - Map Outputs - Styling Scalar Types]].<br>
'''Note:''' For more details on map styling, please refer to <u>[[TUFLOW_Viewer_-_Map_Outputs_-_Styling_Scalar_Types | TUFLOW Viewer - Map Outputs - Styling Scalar Types]].</u><br>
<br>
[[File:QGIS 3D ani 1.png||800px]]
<br>
</ol>
 
==Configure DEM in 3D Map View==
<li>WithinCreate thea new 3D Mapmap Viewview window,and configure the DEM to display as a 3D mesh: Mesh.
<ol>
<li> CreateIn athe newtop 3Ddropdown mapmenu viewoptions, undergo <i>to View >> 3D Map Views >> New 3D Map View</i>: <br>.
<br>
[[File:New 3d mapview.jpg||500px]]<br>
<br>
The following 3D Map View window will appear: <br>
[[File:3d<li> mapviewThe following 3D Map View window.png]]<br> will open: <br>
</libr>
[[File:3d DEMmapview configwindow.png|800px]]<br>
 
<br>
<li>Within the 3D Map View window, configure the DEM to display as a 3D mesh:
<li>Configure the DEM to display as a 3D mesh:
* Use the ''Zoom Full'' tool [[File:Zoom full icon.png]] to center the map view onto the DEM
* ClickSelect 'Zoom Full'Settings [[File:SettingsZoom full icon.png]] >to Terraincenter tab''the map view on to the DEM.
* WithinSelect 'Options' [[File:Settings icon.png]] > 'Configure'. A '3D Configuration' window will open. Select the 'Terrain' tab, and enable the following settings: (leave all other settings as default):
** Type: Mesh
** Elevation: M01_5m_001
** SmoothTick triangleson enabled'Smooth triangles'
** RenderRendering style: Color Ramp Shader
** Color ramp: Greys >> Invert Color Ramp <br>
[[image of things to click to get colour ramp]]
** Click OK <br>
[[File:3d DEM config.png|800px]]
</li><br>
 
The figure below demonstrates the resultant 3D surface. For more details on navigating within the 3D map view, refer to [https://docs.qgis.org/3.34/en/docs/user_manual/map_views/3d_map_view.html#navigation-options QGIS Documentation - 3D Map View, Navigation Options]
<br>
[[File:3d mapview DEM config.png|400px800px]]<br>
<br>
 
<li>The 3D Map View now displays the 3D surface:<br>
<br>
[[File:3d mapview DEM.png|400px]]<br>
<br>
The figure below demonstrates the resultant 3D surface.'''Note:''' For more detailsinformation on navigating within the 3D map view, please refer to <u>[https://docs.qgis.org/3.34/en/docs/user_manual/map_views/3d_map_view.html#navigation-options QGIS Documentation - 3D Map View, Navigation Options].</u>
</ol>
 
==Load Results in 3D Map View==
The following steps demonstrate how to loadLoad the maximum water leveldepth results in to the 3D Map View.
<ol>
<li> Open Layer Properties ofIn the ResultsQGIS MeshLayers Layerpanel, by right-clicking the layer inclick the Layersresults Panellayer and selectingselect "'Properties..." '<br>
<br>
[[File:Open layer properties.png]] </li><br>
<li> Navigate to the 3D View Panel within the Layer Properties window, and enable the following settings:
<br>
* Enable 3D Renderer
<li>In the 3D View tab, enable the following settings (leave all other settings as default):
* Enable Smooth Triangles
* Tick on 'Enable 3D Renderer'
* Dataset group for vertical value: "Water Level/Maximums"
* EnableTick on 'Smooth Triangles'
* Dataset group for vertical value: "Water LevelDepth/Maximums"
* Rendering style: "2D Contour Color Ramp Shader"
* Click OK <br>
<br>
[[File:Results 3DView settings.png|none]]<br>
 
<br>
 
<li> Open the 3D Map view windowView to view the 3D Water Level results and terrain.
[[File:3Dview results.png|none]]<br>
<br>
'''Note,:''' that theThe "2D Contour ColourColor Ramp Shader" rendering style option sets the symbology of the results to replicate the current symbology in the current 2D map view. For this example, the water leveldepth results in the 3D map view reflects the depth map output symbology.
 
</li><br>
</ol>
 
=Creating=Create ana 3D Animation= =
To create an animation, refer to instructions published on the QGIS website: [https://docs.qgis.org/3.34/en/docs/user_manual/map_views/3d_map_view.html#creating-an-animation Creating an animation].