summaryrefslogtreecommitdiffstats
path: root/Smoke/report/chapter7.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Smoke/report/chapter7.tex')
-rw-r--r--Smoke/report/chapter7.tex17
1 files changed, 17 insertions, 0 deletions
diff --git a/Smoke/report/chapter7.tex b/Smoke/report/chapter7.tex
index 3a277b5..f4ad82e 100644
--- a/Smoke/report/chapter7.tex
+++ b/Smoke/report/chapter7.tex
@@ -22,6 +22,23 @@ vertex we used the stored height from the array and render the vertex using that
To see more depth in the picture we also included some ambient and diffuse light to the program. In order to let the light have effect on the surface we calculated
the normal vector for each vertex. \\
+\begin {center}
+ \includegraphics[width=\textwidth]{height_plot.png} \\
+ Figure 9: A height plot of the density \\
+\end {center}
+
+The above picture (figure 9) shows a height plot of a fluid where the height encodes the density of the fluid. The colormap is also mapped to the density but this
+is not necessarily the case. In the snapshot on the next page (figure 10), the height is visualizing the velocity of the fluid while the colormap shows differences
+in the density. \\
+
+As you can see from the second height plot, the bright yellow colors are not on the highest point of the height map. This means the density is not always the
+largest where the velocity is high. \\
+
+\begin {center}
+ \includegraphics[width=\textwidth]{height_plot2.png} \\
+ Figure 10: Another height plot, but this time of the velocity \\
+\end {center}
+
\subsection{Normal vector}
For the calculation of the normal vector for a given vertex, say $ v_0 $, we first take the two neighboring vertices in that cell, $ v_{1} $ and $ v_{2} $. We take