summaryrefslogtreecommitdiffstats
path: root/Smoke/report/chapter3.tex
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-01-11 03:36:08 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-01-11 03:36:08 (GMT)
commit0b2a65158a7b19175bb180acb6fb7199480abcaa (patch)
treebd8919e1f52105192895cccdf35d11f5024643b9 /Smoke/report/chapter3.tex
parent21949a13a8b5c19c8c533e2cb6dc070b8f84acea (diff)
download2iv35-0b2a65158a7b19175bb180acb6fb7199480abcaa.zip
2iv35-0b2a65158a7b19175bb180acb6fb7199480abcaa.tar.gz
2iv35-0b2a65158a7b19175bb180acb6fb7199480abcaa.tar.bz2
weeee wa? hopelijk gaat dat mergen wel goed op 3 en 7 :p
Diffstat (limited to 'Smoke/report/chapter3.tex')
-rw-r--r--Smoke/report/chapter3.tex11
1 files changed, 5 insertions, 6 deletions
diff --git a/Smoke/report/chapter3.tex b/Smoke/report/chapter3.tex
index 7cf56a2..3ab4c9e 100644
--- a/Smoke/report/chapter3.tex
+++ b/Smoke/report/chapter3.tex
@@ -1,18 +1,17 @@
\chapter{Color mapping}
-In chapter 2 we saw a figure (figure 2) which showed a fluid in motion. The fluid had a very bright grey color. How is this color determined at every vertex?
+In chapter 2 it was seen from figure (figure 2) that the fluid had a very bright grey color. How is this color determined at every vertex?
\section{Description}
-The technique that maps a value to a specific color is called color mapping. We already explained that the simulation is divided into cells with each 4 vertices that can contain different values, a uniform quad grid. A colormap calculates the color, given a certain colormap function, for every value at a vertex. \\
+The technique that maps a value to a specific color is called color mapping. It has already been explained that the simulation is divided into cells with each 4 vertices that can contain different values, a uniform quad grid. A colormap calculates the color, given a certain colormap function, for every value at a vertex. \\
Example:
-In figure 2 we saw the smoke using a grey scaled colormap. If we know that the values at the vertices ranges from 0 to 1, we can use the value to determine each
-color aspect, red, green and blue. This means, for each vertex:
+In figure 2 the smoke was using a grey scaled colormap. If the value of vertices range from 0 to 1, the value can be used to determine each color aspect, red, green and blue. This means, for each vertex:
$$ red = green = blue = value $$
-To be able to reason about the colored images, we added a legend at the top of the screen. The leftmost colors indicate low values and the rightmost colors indicate high values. With such a colormap legend, it's easier to understand the produced images and say something about the value of the fluid. \\
+To be able to reason about the colored images, a legend at the top of the screen was added. The leftmost colors indicate low values and the rightmost colors indicate high values. With such a colormap legend, it's easier to understand the produced images and say something about the value of the fluid. \\
Using a slider it is possible to change the number of colors. By default this value is set to 256 colors, but this is easily changed to anything below that. At lower number of colors big bands of colors will start to appear maing variations more visiable. \\
@@ -31,7 +30,7 @@ $$ red = value; green = value / 3; blue = 0; $$
If the value is high, a lot of red, one third of green and no blue is taken. Low values only get a bit of red and almost no green. This gives a black to dark red to orange to almost yellow colormap giving the illusion of fire. \\
-To create a repeating band of colors, we used to following definition:
+To create a repeating band of colors, the following formula was used:
$$ value = (((int)(value * 100)) \texttt{ mod } 10)/10 $$