diff --git a/www/WebDevPlayground/three.js/examples/ARforCIFT.js b/www/WebDevPlayground/three.js/examples/ARforCIFT.js index dd83056b4b560df4e1c3cc06f3ec6799e6f922ac..639867cd9c2f0391b29031a1927c19218975c2d3 100644 --- a/www/WebDevPlayground/three.js/examples/ARforCIFT.js +++ b/www/WebDevPlayground/three.js/examples/ARforCIFT.js @@ -4,7 +4,7 @@ var vectFieldDat = "http://localhost:8081/arrows" //URL of the vectorfile in json-format - // =====Default Offset parameters===== + // =====Offset range parameters===== var offsetXmin = -1.0; var offsetXmax = 1.0; var offsetYmin = -1.0; @@ -16,18 +16,22 @@ var updateFrequency = 1000; // =====Arrow depiction parameters===== - var arrowMaxLength = 2.0; + var arrowMaxLength = 2.0; //default values of arrow length var arrowMinLength = 0.5; - var maxRange = 4.0; - var minRange = 0.0; + var maxRange = 4.0; //defines the range wihich can be + var minRange = 0.0; //choosen for the range + //edit this to fit your needs - var minColor = 'red'; - var maxColor = 'blue'; + var minColor = 'red'; //color of too small arrows + var maxColor = 'blue'; //color of too large arrows - var hexMax = 255; - var pivotPoint = 50; - var hexDivisor = hexMax / pivotPoint + var hexMax = 255; //max hex value of colors + var pivotPoint = 50; //precentage at which color gradient + //switches + + var hexDivisor = hexMax / pivotPoint //value needed for correct + //calculation of color // ====Default sizes for non depictable arrows ====== var nonArrowLength = 0.1; @@ -43,7 +47,11 @@ this.arrowMinLength = 0.5; }; - var vecDataTransferHelper; + var vecDataTransferHelper; //variable to transfer vectordata + //from read method to update method + //(porbably not optimal and needs + //revisiting + ) var oldVecArrayLength = 0; var vectorlist = [];