summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-01-09 08:16:30 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-01-09 08:16:30 (GMT)
commit1224c8e7a27821d11ab3ec59d9f60199cd32465d (patch)
tree839621f753b92adfc64be288155dd517833ae210
parent5ca469e284321902ec0f8fe98880dfc7d1dcec56 (diff)
download2iv35-1224c8e7a27821d11ab3ec59d9f60199cd32465d.zip
2iv35-1224c8e7a27821d11ab3ec59d9f60199cd32465d.tar.gz
2iv35-1224c8e7a27821d11ab3ec59d9f60199cd32465d.tar.bz2
-rw-r--r--Smoke/Week 2.suobin67072 -> 67072 bytes
-rw-r--r--Smoke/gui_requirements.txt1
-rw-r--r--Smoke/quake.bmpbin0 -> 43256 bytes
-rw-r--r--Smoke/renderer_gl.c3
4 files changed, 2 insertions, 2 deletions
diff --git a/Smoke/Week 2.suo b/Smoke/Week 2.suo
index ab16484..4e5fc42 100644
--- a/Smoke/Week 2.suo
+++ b/Smoke/Week 2.suo
Binary files differ
diff --git a/Smoke/gui_requirements.txt b/Smoke/gui_requirements.txt
index 83adcf5..e887a10 100644
--- a/Smoke/gui_requirements.txt
+++ b/Smoke/gui_requirements.txt
@@ -13,6 +13,7 @@ GLYPHS
+ choose vector field
- grid resolution (var_dim)
- choose different glyph
+- change glyph scaling
DIVERGENCE
diff --git a/Smoke/quake.bmp b/Smoke/quake.bmp
new file mode 100644
index 0000000..b7891dd
--- /dev/null
+++ b/Smoke/quake.bmp
Binary files differ
diff --git a/Smoke/renderer_gl.c b/Smoke/renderer_gl.c
index 3fde744..3fc3a75 100644
--- a/Smoke/renderer_gl.c
+++ b/Smoke/renderer_gl.c
@@ -81,7 +81,6 @@ static void render_legend(void)
{
float value, clamp_scaled_min, clamp_scaled_max, scale_scaled_min, scale_scaled_max;
-
value = (float)((float)i/winWidth);
color = colormap_get_color(value);
@@ -221,7 +220,7 @@ static void render_normals(void)
struct point *normals;
DIM = fluids_get_dim();
- wn = (fftw_real)winWidth / (fftw_real)(DIM + 1); // Grid cell width
+ wn = (fftw_real)winWidth / (fftw_real)(DIM + 1); // Grid cell width
hn = (fftw_real)winHeight / (fftw_real)(DIM + 1); // Grid cell height
height = heightplots_get_frame();