diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 08:16:30 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 08:16:30 (GMT) |
commit | 1224c8e7a27821d11ab3ec59d9f60199cd32465d (patch) | |
tree | 839621f753b92adfc64be288155dd517833ae210 | |
parent | 5ca469e284321902ec0f8fe98880dfc7d1dcec56 (diff) | |
download | 2iv35-1224c8e7a27821d11ab3ec59d9f60199cd32465d.zip 2iv35-1224c8e7a27821d11ab3ec59d9f60199cd32465d.tar.gz 2iv35-1224c8e7a27821d11ab3ec59d9f60199cd32465d.tar.bz2 |
-rw-r--r-- | Smoke/Week 2.suo | bin | 67072 -> 67072 bytes | |||
-rw-r--r-- | Smoke/gui_requirements.txt | 1 | ||||
-rw-r--r-- | Smoke/quake.bmp | bin | 0 -> 43256 bytes | |||
-rw-r--r-- | Smoke/renderer_gl.c | 3 |
4 files changed, 2 insertions, 2 deletions
diff --git a/Smoke/Week 2.suo b/Smoke/Week 2.suo Binary files differindex ab16484..4e5fc42 100644 --- a/Smoke/Week 2.suo +++ b/Smoke/Week 2.suo 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 Binary files differnew file mode 100644 index 0000000..b7891dd --- /dev/null +++ b/Smoke/quake.bmp 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(); |