Commit 4a99f725 authored by Jean Rabreau's avatar Jean Rabreau Committed by Jean Rabreau
Browse files

rti display without iframe

parent 018e0daa
......@@ -1963,6 +1963,34 @@
"json5": "^2.1.2"
}
},
"gzip-size": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-5.1.1.tgz",
"integrity": "sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA==",
"dev": true,
"requires": {
"duplexer": "^0.1.1",
"pify": "^4.0.1"
}
},
"source-map": {
"version": "0.6.1",
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
"dev": true
},
"ssri": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-7.1.0.tgz",
"integrity": "sha512-77/WrDZUWocK0mvA5NTRQyveUf+wsrIc6vyrxpS8tVvYBcX215QbafrJR3KtkpskIzoFLqqNuuYQvxaMjXJ/0g==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
......@@ -14641,6 +14669,60 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.1.2",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.1.2.tgz",
"integrity": "sha512-8QTxh+Fd+HB6fiL52iEVLKqE9N1JSlMXLR92Ijm6g8PZrwIxckgpqjPDWRP5TWxdiPaHR+alUWsnu1ShQOwt+Q==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"chalk": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz",
"integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"loader-utils": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
"integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
"dev": true,
"optional": true,
"requires": {
"big.js": "^5.2.2",
"emojis-list": "^3.0.0",
"json5": "^2.1.2"
}
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-matomo": {
"version": "3.14.0-0",
"resolved": "https://registry.npmjs.org/vue-matomo/-/vue-matomo-3.14.0-0.tgz",
......
/*************************************************************************/
/* */
/* WebMultiRes */
/* JavaScript 3D Graphics Library on top of SpiderGL for web */
/* visualization of high resolution RTI images */
/* */
/* Copyright (C) 2013-2015 */
/* Gianpaolo Palma */
/* Visual Computing Laboratory */
/* ISTI - Italian National Research Council (CNR) */
/* http://vcg.isti.cnr.it/rti/webviewer.php */
/* mailto: gianpaolo[DOT]palma[AT]isti[DOT]cnr[DOT]it */
/* */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/> */
/*************************************************************************/
#ifdef GL_ES
precision highp float;
#endif
uniform vec3 u_color;
void main(void)
{
gl_FragData[0] = vec4(u_color, 1.0);
}
/*************************************************************************/
/* */
/* WebMultiRes */
/* JavaScript 3D Graphics Library on top of SpiderGL for web */
/* visualization of high resolution RTI images */
/* */
/* Copyright (C) 2013-2015 */
/* Gianpaolo Palma */
/* Visual Computing Laboratory */
/* ISTI - Italian National Research Council (CNR) */
/* http://vcg.isti.cnr.it/rti/webviewer.php */
/* mailto: gianpaolo[DOT]palma[AT]isti[DOT]cnr[DOT]it */
/* */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/> */
/*************************************************************************/
#ifdef GL_ES
precision highp float;
#endif
uniform mat4 u_model_view_projection_matrix;
uniform vec3 u_world_box_min;
uniform vec3 u_world_box_max;
attribute vec3 a_position;
void main(void)
{
vec3 world_box_size = u_world_box_max - u_world_box_min;
vec3 vert = a_position.xyz + 0.5;
vec3 world_pos = vert * world_box_size + u_world_box_min;
gl_Position = u_model_view_projection_matrix * vec4(world_pos, 1.0);
}
/*************************************************************************/
/* */
/* WebMultiRes */
/* JavaScript 3D Graphics Library on top of SpiderGL for web */
/* visualization of high resolution RTI images */
/* */
/* Copyright (C) 2013-2015 */
/* Gianpaolo Palma */
/* Visual Computing Laboratory */
/* ISTI - Italian National Research Council (CNR) */
/* http://vcg.isti.cnr.it/rti/webviewer.php */
/* mailto: gianpaolo[DOT]palma[AT]isti[DOT]cnr[DOT]it */
/* */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/> */
/*************************************************************************/
#ifdef GL_ES
precision highp float;
#endif
uniform int ordlen;
uniform sampler2D coeff0;
uniform sampler2D coeff1;
uniform sampler2D coeff2;
uniform sampler2D coeff3;
uniform sampler2D coeff4;
uniform sampler2D coeff5;
uniform sampler2D coeff6;
uniform sampler2D coeff7;
uniform sampler2D coeff8;
uniform float lweight0;
uniform float lweight1;
uniform float lweight2;
uniform float lweight3;
uniform float lweight4;
uniform float lweight5;
uniform float lweight6;
uniform float lweight7;
uniform float lweight8;
uniform float gmax0;
uniform float gmax1;
uniform float gmax2;
uniform float gmax3;
uniform float gmax4;
uniform float gmax5;
uniform float gmax6;
uniform float gmax7;
uniform float gmax8;
uniform float gmin0;
uniform float gmin1;
uniform float gmin2;
uniform float gmin3;
uniform float gmin4;
uniform float gmin5;
uniform float gmin6;
uniform float gmin7;
uniform float gmin8;
uniform float leftTex;
uniform float rightTex;
uniform float bottomTex;
uniform float topTex;
varying vec2 v_texcoord;
varying vec2 v_world_texcoord;
void main(void)
{
vec3 color = vec3(0.0);
if (v_world_texcoord.x <= leftTex || v_world_texcoord.x >= rightTex || v_world_texcoord.y <= bottomTex || v_world_texcoord.y >= topTex)
{
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
return;
}
vec3 rgbCoeff = texture2D(coeff0, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin0 + gmax0;
color += (rgbCoeff * lweight0);
rgbCoeff = texture2D(coeff1, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin1 + gmax1;
color += (rgbCoeff * lweight1);
rgbCoeff = texture2D(coeff2, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin2 + gmax2;
color += (rgbCoeff * lweight2);
rgbCoeff = texture2D(coeff3, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin3 + gmax3;
color += (rgbCoeff * lweight3);
if (ordlen > 4)
{
rgbCoeff = texture2D(coeff4, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin4 + gmax4;
color += (rgbCoeff * lweight4);
rgbCoeff = texture2D(coeff5, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin5 + gmax5;
color += (rgbCoeff * lweight5);
rgbCoeff = texture2D(coeff6, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin6 + gmax6;
color += (rgbCoeff * lweight6);
rgbCoeff = texture2D(coeff7, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin7 + gmax7;
color += (rgbCoeff * lweight7);
rgbCoeff = texture2D(coeff8, v_texcoord).xyz;
rgbCoeff = rgbCoeff * gmin8 + gmax8;
color += (rgbCoeff * lweight8);
}
gl_FragColor = vec4(color, 1.0);
}
/*************************************************************************/
/* */
/* WebMultiRes */
/* JavaScript 3D Graphics Library on top of SpiderGL for web */
/* visualization of high resolution RTI images */
/* */
/* Copyright (C) 2013-2015 */
/* Gianpaolo Palma */
/* Visual Computing Laboratory */
/* ISTI - Italian National Research Council (CNR) */
/* http://vcg.isti.cnr.it/rti/webviewer.php */
/* mailto: gianpaolo[DOT]palma[AT]isti[DOT]cnr[DOT]it */
/* */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/> */
/*************************************************************************/
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D coeff0;
uniform float leftTex;
uniform float rightTex;
uniform float bottomTex;
uniform float topTex;
varying vec2 v_texcoord;
varying vec2 v_world_texcoord;
void main(void)
{
if (v_world_texcoord.x <= leftTex || v_world_texcoord.x >= rightTex || v_world_texcoord.y <= bottomTex || v_world_texcoord.y >= topTex)
{
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
return;
}
vec3 color = texture2D(coeff0, v_texcoord).xyz;
gl_FragColor = vec4(color, 1.0);
}
/*************************************************************************/
/* */
/* WebMultiRes */
/* JavaScript 3D Graphics Library on top of SpiderGL for web */
/* visualization of high resolution RTI images */
/* */
/* Copyright (C) 2013-2015 */
/* Gianpaolo Palma */
/* Visual Computing Laboratory */
/* ISTI - Italian National Research Council (CNR) */
/* http://vcg.isti.cnr.it/rti/webviewer.php */
/* mailto: gianpaolo[DOT]palma[AT]isti[DOT]cnr[DOT]it */
/* */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/> */
/*************************************************************************/
#ifdef GL_ES
precision highp float;
#endif
uniform int ordlen;
uniform sampler2D coeff0;
uniform sampler2D coeff1;
uniform sampler2D coeff2;
uniform float lweight0;
uniform float lweight1;
uniform float lweight2;
uniform float lweight3;
uniform float lweight4;
uniform float lweight5;
uniform float gmax0;
uniform float gmax1;
uniform float gmax2;
uniform float gmax3;
uniform float gmax4;
uniform float gmax5;
uniform float gmin0;
uniform float gmin1;
uniform float gmin2;
uniform float gmin3;
uniform float gmin4;
uniform float gmin5;
uniform float leftTex;
uniform float rightTex;
uniform float bottomTex;
uniform float topTex;
varying vec2 v_texcoord;
varying vec2 v_world_texcoord;
void main(void)
{
vec3 color = vec3(0.0);
if (v_world_texcoord.x <= leftTex || v_world_texcoord.x >= rightTex || v_world_texcoord.y <= bottomTex || v_world_texcoord.y >= topTex)
{
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
return;
}
vec3 coeffH = texture2D(coeff0, v_texcoord).xyz;
vec3 coeffL = texture2D(coeff1, v_texcoord).xyz;
color = texture2D(coeff2, v_texcoord).xyz;
float lum =
(
(coeffH.x - gmin0 / 255.0) * gmax0 * lweight0 +
(coeffH.y - gmin1 / 255.0) * gmax1 * lweight1 +
(coeffH.z - gmin2 / 255.0) * gmax2 * lweight2 +
(coeffL.x - gmin3 / 255.0) * gmax3 * lweight3 +
(coeffL.y - gmin4 / 255.0) * gmax4 * lweight4 +
(coeffL.z - gmin5 / 255.0) * gmax5 * lweight5
);
color *= lum;
gl_FragColor = vec4(color, 1.0);
}
/*************************************************************************/
/* */
/* WebMultiRes */
/* JavaScript 3D Graphics Library on top of SpiderGL for web */
/* visualization of high resolution RTI images */
/* */
/* Copyright (C) 2013-2015 */
/* Gianpaolo Palma */
/* Visual Computing Laboratory */
/* ISTI - Italian National Research Council (CNR) */
/* http://vcg.isti.cnr.it/rti/webviewer.php */
/* mailto: gianpaolo[DOT]palma[AT]isti[DOT]cnr[DOT]it */
/* */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/> */
/*************************************************************************/
#ifdef GL_ES
precision highp float;
#endif
uniform mat4 u_model_view_projection_matrix;
uniform vec3 u_world_box_min;
uniform vec3 u_world_box_max;
uniform vec4 u_scale_bias;
uniform vec2 u_texcoord_scale_bias;
attribute vec2 a_position;
varying vec2 v_texcoord;
varying vec2 v_world_texcoord;
void main(void)
{
vec3 world_box_size = u_world_box_max - u_world_box_min;
vec3 vert = vec3(a_position + vec2(0.5), 1.0);
vec2 texcoord = vert.xy * u_scale_bias.xy + u_scale_bias.zw;
texcoord = texcoord * u_texcoord_scale_bias.x + u_texcoord_scale_bias.y;
vec3 world_pos = vert * world_box_size + u_world_box_min;
v_texcoord = texcoord;
v_world_texcoord = world_pos.xy;
gl_Position = u_model_view_projection_matrix * vec4(world_pos, 1.0);
}
This diff is collapsed.
/*************************************************************************/
/* */
/* WebMultiRes */
/* JavaScript 3D Graphics Library on top of SpiderGL for web */
/* visualization of high resolution RTI images */
/* */
/* Copyright (C) 2013-2015 */
/* Gianpaolo Palma */
/* Visual Computing Laboratory */
/* ISTI - Italian National Research Council (CNR) */
/* http://vcg.isti.cnr.it/rti/webviewer.php */
/* mailto: gianpaolo[DOT]palma[AT]isti[DOT]cnr[DOT]it */
/* */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/> */
/*************************************************************************/
#ifdef GL_ES
precision highp float;
#endif
uniform int ordlen;
uniform sampler2D coeff0;
uniform sampler2D coeff1;
uniform sampler2D coeff2;
uniform sampler2D coeff3;
uniform sampler2D coeff4;
uniform sampler2D coeff5;
uniform float lweight0;
uniform float lweight1;
uniform float lweight2;
uniform float lweight3;
uniform float lweight4;
uniform float lweight5;
uniform float gmax0;
uniform float gmax1;
uniform float gmax2;
uniform float gmax3;
uniform float gmax4;
uniform float gmax5;
uniform float gmin0;
uniform float gmin1;
uniform float gmin2;
uniform float gmin3;
uniform float gmin4;
uniform float gmin5;
uniform float leftTex;
uniform float rightTex;
uniform float bottomTex;
uniform float topTex;
varying vec2 v_texcoord;
varying vec2 v_world_texcoord;
void main(void)
{
vec3 color = vec3(0.0);
if (v_world_texcoord.x <= leftTex || v_world_texcoord.x >= rightTex || v_world_texcoord.y <= bottomTex || v_world_texcoord.y >= topTex)
{
gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
return;
}
vec3 rgbCoeff = texture2D(coeff0, v_texcoord).xyz;
color += (rgbCoeff - gmin0 / 255.0) * gmax0 * lweight0;
rgbCoeff = texture2D(coeff1, v_texcoord).xyz;
color += (rgbCoeff - gmin1 / 255.0) * gmax1 * lweight1;
rgbCoeff = texture2D(coeff2, v_texcoord).xyz;
color += (rgbCoeff - gmin2 / 255.0) * gmax2 * lweight2;
rgbCoeff = texture2D(coeff3, v_texcoord).xyz;
color += (rgbCoeff - gmin3 / 255.0) * gmax3 * lweight3;