From 0a09d31439e53bb1afd2c99d93b6dea9c5f8d28f Mon Sep 17 00:00:00 2001 From: ha7ilm Date: Thu, 11 Aug 2016 22:07:22 +0200 Subject: [PATCH] Beautiful, smooth movement on the 3D waterfall! (It just goes out of the graph area sometimes...) --- htdocs/openwebrx.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/openwebrx.js b/htdocs/openwebrx.js index 8cee7ca..32f9bc7 100644 --- a/htdocs/openwebrx.js +++ b/htdocs/openwebrx.js @@ -2014,7 +2014,7 @@ function mathbox_init() var remap = function(x,z,t) { var currentTimePos = mathbox_data_global_index/(fft_fps*1.0); - zAdd = -(t-currentTimePos); + zAdd = -(t-currentTimePos)/10; var xIndex = Math.trunc(((x+1)/2.0)*fft_size); //x: frequency var zIndex = Math.trunc(z*(mathbox_data_max_depth-1)); //z: time var realZIndex = mathbox_get_data_line(zIndex); @@ -2031,7 +2031,7 @@ function mathbox_init() else y = (dBValue-waterfall_min_level)/(waterfall_max_level-waterfall_min_level); mathbox_dbg = { dbv: dBValue, indexval: index, mbd: mathbox_data.length, yval: y }; if(!y) y=0; - return {y: y, dBValue: dBValue, zAdd: 0}; + return {y: y, dBValue: dBValue, zAdd: zAdd}; } var points = view.area({