Giter Club home page Giter Club logo

Comments (15)

ponchio avatar ponchio commented on May 30, 2024

I am afraid I need some help with narrowing the scope of the problem...

The program not compiling seems to be an issue with the context, some extension missing.
Could you debug line 71 of relight-canvas.js to see which context is being used? (webfl2, webgl or experimental-webgl?)

from relight.

sepastian avatar sepastian commented on May 30, 2024

Thanks for the reply @ponchio, I found some time to test what you said.

It is webgl2 (WebGL2RenderingContextPrototype).

I'm running

  • Firefox 68.5.0esr (64-bit) on
  • Linux x220 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) x86_64 GNU/Linux

The error I get in the console:

onmozfullscreenchange is deprecated. relight-canvas.js:75:5
onmozfullscreenerror is deprecated. relight-canvas.js:75:5
Ignoring get or set of property that has [LenientThis] because the “this” object is incorrect. relight-canvas.js:75:5
Error: WebGL warning: linkProgram: Must have an compiled fragment shader attached. relight-core.js:776:5
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-core.js:777:5
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:781:24
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:782:24
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:783:24
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:785:23
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:786:26
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:788:20
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:789:20
Error: WebGL warning: getAttribLocation: `program` must be linked. relight-core.js:802:21
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:803:5
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:804:5
Error: WebGL warning: getAttribLocation: `program` must be linked. relight-core.js:810:19
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:811:5
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:812:5
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:814:25
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-core.js:818:19
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-core.js:582:7
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-core.js:947:5
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-core.js:947:5
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:901:5
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:902:5
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:907:5
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-core.js:908:5
Error: WebGL warning: drawElements: The current program is not linked. relight-core.js:914:5

from relight.

sepastian avatar sepastian commented on May 30, 2024

This may not be relevant. But I ran a test, webgl2 is working on this machine/browser.

webgl2

from relight.

jacopomazzoni avatar jacopomazzoni commented on May 30, 2024

I'm having a similar issue, I checked your online examples to see how those worked and you have a materials.bin file that my version of relight doesn't seem to be producing.

any suggestions on what to do? i tried feeding the software images with an lp file and a fully formed ptm file. i tried to export in rbf and ptm i get a materials.png file but no materials.bin file.

Help?

from relight.

ponchio avatar ponchio commented on May 30, 2024

from relight.

sepastian avatar sepastian commented on May 30, 2024

from relight.

ponchio avatar ponchio commented on May 30, 2024

Sorry Sapastian, I was anwering to Jacopo without noticing the previous messages.

Anyway It looks like it's a problem with the shaders, could you send me (or post here) the json for the RTI?

from relight.

sepastian avatar sepastian commented on May 30, 2024

Here you go, sorry for the wait!

Is this, what you were after @ponchio?

{
"width": 2000, "height": 2000,
"format": "jpg",
"type":"rbf",
"colorspace":"mrgb",
"sigma": 0.125,
"lights": [0.442, -0.862, 0.247, 0.940, -0.264, 0.215, 0.824, 0.530, 0.197, 0.180, 0.968, 0.177, -0.550, 0.816, 0.179, -0.955, 0.208, 0.209, -0.815, -0.512, 0.271, -0.246, -0.930, 0.275, 0.092, -0.922, 0.375, 0.721, -0.590, 0.363, 0.925, 0.118, 0.362, 0.559, 0.762, 0.327, -0.187, 0.929, 0.318, -0.782, 0.526, 0.335, -0.918, -0.169, 0.359, -0.552, -0.734, 0.395, 0.379, -0.776, 0.505, 0.831, -0.233, 0.504, 0.745, 0.462, 0.481, 0.161, 0.867, 0.471, -0.478, 0.735, 0.481, -0.861, 0.184, 0.473, -0.736, -0.459, 0.498, -0.239, -0.819, 0.522, 0.044, -0.770, 0.636, 0.595, -0.498, 0.630, 0.774, 0.102, 0.625, 0.471, 0.662, 0.583, -0.176, 0.781, 0.599, -0.665, 0.436, 0.606, -0.779, -0.135, 0.612, -0.476, -0.610, 0.633, 0.283, -0.611, 0.739, 0.627, -0.179, 0.759, 0.583, 0.322, 0.746, 0.106, 0.677, 0.729, -0.358, 0.578, 0.733, -0.672, 0.158, 0.723, -0.575, -0.364, 0.733, -0.210, -0.623, 0.753, 0.006, -0.519, 0.855, 0.397, -0.343, 0.851, 0.523, 0.047, 0.851, 0.297, 0.433, 0.851, -0.134, 0.540, 0.831, -0.460, 0.299, 0.836, -0.547, -0.092, 0.832, -0.330, -0.422, 0.845, 0.134, -0.352, 0.926, 0.352, -0.121, 0.928, 0.337, 0.194, 0.921, 0.032, 0.405, 0.914, -0.223, 0.343, 0.912, -0.416, 0.101, 0.904, -0.343, -0.209, 0.916, -0.141, -0.348, 0.927, -0.002, -0.218, 0.976, 0.151, -0.156, 0.976, 0.222, 0.022, 0.975, 0.125, 0.208, 0.970, -0.051, 0.262, 0.964, -0.170, 0.166, 0.971, -0.237, -0.034, 0.971, -0.161, -0.160, 0.974],
"nplanes": 9,
"quality": 95,
"basis": [
18,20,18,20,21,21,21,23,21,20,22,21,20,22,21,19,20,20,19,21,21,17,19,18,19,21,20,21,22,21,21,23,23,20,21,21,21,23,22,22,24,24,19,21,20,18,20,19,20,22,21,22,24,22,24,25,25,22,24,23,21,23,23,24,26,25,22,24,23,20,22,21,22,23,23,25,26,25,23,25,
25,22,24,24,23,25,25,25,27,26,21,23,22,20,22,22,23,25,26,24,26,26,27,29,31,26,27,29,25,27,27,28,30,32,25,26,26,22,24,24,27,29,30,29,31,31,32,34,35,29,31,32,30,33,34,31,33,35,26,28,29,26,28,29,30,33,32,31,34,35,35,38,37,34,37,37,35,37,37,37,
41,40,31,34,34,29,30,31,35,38,36,35,38,35,44,48,45,44,48,46,50,53,50,37,41,39,33,35,35,32,35,34,168,172,167,173,176,173,177,181,177,173,177,175,174,177,174,173,176,175,172,176,175,167,171,168,173,176,173,177,180,177,176,181,181,173,177,176,177,181,179,180,185,183,172,176,174,170,174,170,
175,179,175,180,184,180,184,188,186,179,183,183,177,181,180,184,189,188,180,184,182,174,178,175,179,182,181,187,191,187,183,188,188,179,184,185,183,188,187,188,192,191,178,182,180,176,181,179,180,185,183,185,190,188,191,197,197,186,191,192,186,191,191,193,199,195,187,191,190,179,184,185,188,193,192,196,201,197,202,207,
204,195,199,200,199,206,205,199,206,203,188,193,193,186,191,189,195,200,196,198,204,200,210,217,213,208,216,213,209,215,213,218,226,222,201,208,205,192,196,195,208,215,209,211,217,209,231,239,231,232,241,234,246,254,245,217,225,220,205,211,210,201,207,203,90,88,85,107,107,104,138,140,138,151,154,155,151,152,154,132,
134,133,106,106,103,88,86,81,99,98,95,123,123,122,143,146,146,148,151,152,141,143,142,123,124,121,96,95,92,91,89,87,95,92,91,109,109,107,139,140,138,147,149,150,145,147,148,134,136,134,105,105,103,93,91,89,100,99,97,124,125,122,143,146,146,146,150,151,141,143,143,124,124,121,97,96,94,92,90,88,
93,90,90,108,108,105,142,144,140,150,154,153,149,152,152,137,139,137,102,102,101,91,89,86,94,91,90,122,123,121,157,161,155,161,165,163,153,158,154,118,118,117,89,87,87,84,82,83,77,74,78,97,96,96,148,152,145,183,189,182,184,189,181,144,146,144,85,84,86,75,73,77,70,69,75,111,112,110,200,207,
197,248,254,241,205,205,201,86,86,90,58,56,63,58,55,63,109,108,107,90,86,83,76,74,71,105,105,104,142,143,148,154,156,162,156,160,165,136,137,139,104,103,101,84,82,80,94,92,89,123,124,126,157,160,164,165,169,173,145,148,150,123,123,123,113,113,112,97,96,93,82,80,78,109,110,109,139,141,144,167,
172,176,153,156,160,132,134,134,109,108,106,86,84,83,95,94,92,124,124,126,157,161,164,165,169,173,140,143,143,123,123,123,115,115,114,102,101,98,81,78,78,108,108,108,140,144,146,173,178,178,149,154,156,131,132,132,109,108,106,80,79,81,80,80,81,117,119,121,172,177,178,166,174,174,138,142,142,122,122,121,
112,113,112,95,94,94,57,57,61,85,87,93,147,150,152,207,215,210,151,158,156,130,132,131,96,97,101,63,63,71,36,39,47,110,115,121,254,253,253,190,196,188,141,145,144,120,121,121,126,127,136,120,122,132,101,100,110,75,73,76,70,67,67,102,101,102,114,115,120,123,122,130,124,125,135,118,118,129,91,89,
97,78,75,78,82,81,83,107,106,112,117,117,124,124,125,133,123,124,133,123,124,134,111,109,120,82,80,88,80,77,82,98,96,103,111,112,120,120,121,129,123,124,134,122,122,134,96,96,108,81,77,86,90,86,95,114,113,121,116,116,126,122,123,131,122,124,133,125,128,138,119,119,131,85,83,100,79,77,91,107,
107,120,115,116,127,120,121,130,126,128,138,131,133,146,108,108,128,79,78,99,99,100,114,123,124,137,119,120,131,122,124,134,128,132,144,137,140,153,143,147,163,103,106,131,88,92,113,143,146,164,124,127,141,123,126,139,147,152,167,162,168,180,199,202,227,176,184,209,225,223,254,148,152,170,132,136,152,134,140,153,
134,136,144,160,163,172,158,162,171,146,149,157,128,130,134,92,92,90,90,89,91,104,104,108,144,147,156,156,160,167,147,151,158,136,137,142,121,122,125,102,102,104,97,96,99,120,120,127,133,135,141,155,158,165,150,153,160,140,142,147,128,130,133,114,115,117,94,94,99,109,107,114,143,145,152,150,154,159,139,141,
147,131,133,138,126,127,130,107,107,110,102,101,108,120,121,127,133,134,140,150,153,159,140,141,148,132,133,138,127,129,132,122,124,127,96,98,104,110,109,115,142,143,151,146,149,154,124,126,133,123,124,129,137,138,140,107,109,117,101,101,108,119,120,128,131,131,140,150,152,156,121,122,131,93,96,105,116,117,124,148,
150,154,94,96,106,107,107,117,132,133,144,126,126,136,32,45,43,32,51,50,254,227,252,115,121,124,93,96,105,110,113,122,196,203,211,175,177,189,128,128,140,104,103,109,101,99,105,112,110,115,147,148,156,190,195,204,177,182,193,141,144,154,114,113,121,104,102,107,110,108,114,131,132,140,168,170,178,187,193,200,
180,185,191,158,161,171,124,122,132,111,108,116,109,107,114,117,116,124,144,144,152,175,180,185,162,166,174,132,132,142,116,115,124,112,111,118,115,114,119,125,125,132,153,155,161,175,177,183,164,167,172,141,142,152,113,114,122,117,116,125,118,116,123,113,113,122,131,129,137,161,163,169,141,140,152,112,111,123,112,111,
118,127,124,132,125,125,128,108,105,114,135,134,141,158,156,161,126,122,128,102,99,110,78,80,86,138,137,141,157,155,155,92,93,100,92,90,103,129,126,132,46,48,59,28,31,43,74,83,78,254,229,240,154,147,154,17,27,31,58,57,66,75,70,79,112,113,115,108,111,112,106,111,110,136,139,135,127,129,122,97,
99,92,84,83,81,99,98,100,116,118,121,104,107,111,128,131,130,137,140,137,111,114,107,76,74,75,95,94,96,112,112,115,120,120,126,112,114,118,102,107,109,138,141,140,133,134,132,87,87,86,86,85,89,110,108,114,123,124,129,99,101,107,125,129,130,141,146,145,116,118,116,75,76,78,106,106,114,122,123,128,
131,134,139,117,119,123,90,97,98,145,148,147,145,146,147,86,89,92,96,98,105,124,124,131,136,139,146,93,98,104,115,122,122,168,171,168,127,130,134,84,87,95,123,124,133,142,144,151,167,169,174,134,136,142,60,72,77,167,170,173,204,205,207,71,86,91,130,133,144,158,159,167,189,187,195,98,107,115,8,40,
30,243,223,254,108,126,135,147,154,168,196,193,204,212,212,218,137,134,119,140,136,119,139,135,105,134,131,101,137,136,105,122,120,92,132,131,102,134,132,113,137,134,116,138,135,114,135,132,101,134,132,104,135,135,103,137,133,100,136,133,110,136,133,115,138,134,114,140,135,112,139,133,104,133,131,98,136,135,101,137,
133,95,137,134,103,137,133,110,140,134,111,141,134,105,136,130,96,135,132,98,137,134,96,139,135,98,137,133,105,138,134,112,139,134,110,142,135,105,142,133,95,135,130,91,140,135,91,140,133,86,139,135,99,137,134,108,145,137,104,146,135,98,142,131,78,134,129,82,142,134,77,148,138,82,141,133,98,143,137,107,
155,143,99,155,141,96,153,138,70,146,134,59,152,137,58,158,140,52,150,139,81,151,140,99,180,156,86,178,152,82,193,155,21,231,176,42,254,191,68,166,141,40,169,149,78,170,152,95,135,134,133,141,142,141,158,158,158,142,141,142,110,107,106,111,107,107,125,123,122,127,125,124,135,135,133,147,147,146,153,152,
152,126,124,123,99,97,95,112,108,108,123,122,120,130,130,127,131,130,128,136,135,132,156,155,153,141,139,139,112,109,107,101,97,95,123,121,120,127,126,125,128,127,123,140,138,134,153,151,149,125,124,124,99,96,95,119,116,115,129,128,127,128,127,124,124,122,118,122,120,114,149,147,144,143,141,139,111,107,107,108,
104,107,134,133,133,130,128,126,113,110,102,117,117,111,160,155,147,133,130,130,94,92,92,144,142,143,139,138,136,124,122,117,103,105,93,88,88,75,125,123,112,161,152,150,108,106,105,147,138,147,171,165,163,135,133,126,60,69,46,49,64,36,140,130,125,128,121,119,127,120,129,254,213,239,172,162,161,116,115,104],
"materials": [
{
 "range": [928.953,512.528,528.872,426.245,402.583,551.605,503.968,402.052,361.033],
 "scale": [6.29287,6.29287,6.29287,6.29287,6.29287,6.29287,6.29287,6.29287,6.29287],
 "bias": [0.24491,0.396324,0.359185,0.401809,0.214249,0.145642,0.203407,0.321152,0.179476] }
]
}

from relight.

ponchio avatar ponchio commented on May 30, 2024

from relight.

sepastian avatar sepastian commented on May 30, 2024

Hi @ponchio, check out https://www.sebastiangassner.com/rti_test/.

Its using the latest version, but still no luck in Linux x220 5.6.0-1-amd64 #1 SMP Debian 5.6.7-1 (2020-04-29) x86_64 GNU/Linux. It works on another Linux PC at my office, though.

And it works on my mobile phone.

Could you try in Linux?

Here's the output from my browser.

XHRGEThttps://www.sebastiangassner.com/rti_test/info.json
[HTTP/2.0 200 OK 30ms]

Error: WebGL warning: linkProgram: Must have an compiled fragment shader attached. relight-viewer.min.js:1:13596
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-viewer.min.js:1:13622
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:13680
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:13737
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:13794
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:13850
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:13908
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:13964
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:14029
Error: WebGL warning: getAttribLocation: `program` must be linked. relight-viewer.min.js:1:14412
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:14457
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:14516
Error: WebGL warning: getAttribLocation: `program` must be linked. relight-viewer.min.js:1:14721
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:14766
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:14823
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:14881
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:14936
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-viewer.min.js:1:9823
Error: WebGL warning: useProgram: Program has not been successfully linked. 2 relight-viewer.min.js:1:17358
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-viewer.min.js:1:17358
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:16474
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:16533
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:16670
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:16727
Error: WebGL warning: drawElements: The current program is not linked. relight-viewer.min.js:1:16879

from relight.

ponchio avatar ponchio commented on May 30, 2024

from relight.

sepastian avatar sepastian commented on May 30, 2024

Thanks, I updated the test page, the error output is now showing, see below.

I haven't done any WebGL programming myself but found a similar issue here.

According to webglreport.com the Browser is indeed using WebGL GLSL ES 3.00, which seems to cause the issue.

Output from browser console:

Navigated to https://www.sebastiangassner.com/rti_test/
XHRGEThttps://www.sebastiangassner.com/rti_test/info.json
[HTTP/2.0 200 OK 69ms]


#ifdef GL_ES
precision highp float;
#endif

const int np1 = 10;
const int nj = 3;

uniform vec3 base[np1];
uniform float bias[np1];
uniform float scale[np1];
uniform float opacity;

uniform sampler2D planes[nj];

varying vec2 v_texcoord;
void main(void) {
	vec3 color = base[0];

	for(int j = 0; j < nj; j++) {
		vec4 c = texture2D(planes[j], v_texcoord);
		color += base[j*3+1]*(c.x - bias[j*3+1])*scale[j*3+1];
		color += base[j*3+2]*(c.y - bias[j*3+2])*scale[j*3+2];
		color += base[j*3+3]*(c.z - bias[j*3+3])*scale[j*3+3];
	}
	gl_FragColor = vec4(color, opacity);
}
relight-viewer.min.js:1:14603
0:2(12): warning: extension `GL_ARB_gpu_shader5' unsupported in fragment shader
0:15(39): error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later
relight-viewer.min.js:1:14627
Error: WebGL warning: linkProgram: Must have an compiled fragment shader attached. relight-viewer.min.js:1:14749
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-viewer.min.js:1:14775
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:14833
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:14890
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:14947
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:15003
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:15061
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:15117
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:15182
Error: WebGL warning: getAttribLocation: `program` must be linked. relight-viewer.min.js:1:15565
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:15610
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:15669
Error: WebGL warning: getAttribLocation: `program` must be linked. relight-viewer.min.js:1:15874
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:15919
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:15976
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:16034
Error: WebGL warning: getUniformLocation: `program` must be linked. relight-viewer.min.js:1:16089
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-viewer.min.js:1:10630
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-viewer.min.js:1:18511
Error: WebGL warning: useProgram: Program has not been successfully linked. relight-viewer.min.js:1:18511
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:17627
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:17686
Error: WebGL warning: vertexAttribPointer: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:17823
Error: WebGL warning: enableVertexAttribArray: -1 is not a valid `index`. This value probably comes from a getAttribLocation() call, where this return value -1 means that the passed name didn't correspond to an active attribute in the specified program. relight-viewer.min.js:1:17880
Error: WebGL warning: drawElements: The current program is not linked. relight-viewer.min.js:1:18032

from relight.

ponchio avatar ponchio commented on May 30, 2024

from relight.

sepastian avatar sepastian commented on May 30, 2024

Great, it's working now, check https://www.sebastiangassner.com/rti_test/.

Just out of curiosity, do you know what caused the issue, i.e. what's the difference between the WebGL used on my PC and on other PCs?

What do you get when you run this in the browser inspector? Are my versions older than yours?

gl.getParameter(gl.SHADING_LANGUAGE_VERSION);
"WebGL GLSL ES 3.00"
gl.getParameter(gl.VERSION);
"WebGL 2.0"

Thanks for your help @ponchio!

from relight.

ponchio avatar ponchio commented on May 30, 2024

from relight.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.