From 1224c8e7a27821d11ab3ec59d9f60199cd32465d Mon Sep 17 00:00:00 2001 From: Wilrik de Loose Date: Wed, 9 Jan 2008 08:16:30 +0000 Subject: --- Smoke/Week 2.suo | Bin 67072 -> 67072 bytes Smoke/gui_requirements.txt | 1 + Smoke/quake.bmp | Bin 0 -> 43256 bytes Smoke/renderer_gl.c | 3 +-- 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 Smoke/quake.bmp diff --git a/Smoke/Week 2.suo b/Smoke/Week 2.suo index ab16484..4e5fc42 100644 Binary files a/Smoke/Week 2.suo and b/Smoke/Week 2.suo 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 Binary files /dev/null and b/Smoke/quake.bmp 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(); -- cgit v0.12