Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opera support broken in r55 #2996

Closed
WolfgangFellger opened this issue Jan 28, 2013 · 4 comments
Closed

Opera support broken in r55 #2996

WolfgangFellger opened this issue Jan 28, 2013 · 4 comments

Comments

@WolfgangFellger
Copy link

Opera support is now totally broken; meaning that new THREE.WebGLRenderer() will fail at https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js#L208 because getShaderPrecisionFormat() is not available. Of course, "totally broken" quite accurately describes the current state of WebGL support in Opera (to fix the crashes, they appear to have ripped out the lion share of shader support), so I don't expect much.

This is a bit of regression, since http://carvisualizer.plus360degrees.com/threejs/ (r47) works… partly. A nicer error message is probably all this is worth.

Tested with Opera 12.12 on Windows and Linux.

@gero3
Copy link
Contributor

gero3 commented Jan 29, 2013

Yep.
This is already the second report that I hear about this. So this is really a serious problem. And in that one it is chrome.

http://stackoverflow.com/questions/14131447/uncaught-typeerror-object-webglrenderingcontext-has-no-method-getshaderprec

@SteveTJS
Copy link

Hi,
I also wanted to try my projects (r54) on Opera (last version 12.12) on Windows 7, but they don't work. I get errors about shaders, the same errors I get when I try http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html.

[29/01/2013 09:33:51] JavaScript - http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html
User Javascript thread
Opera has modified the JavaScript on mrdoob.github.com (PATCH-815, github: work around misplaced arrows (Opera bug)). See browser.js for details
[29/01/2013 09:33:51] JavaScript - http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html
console.log
THREE.WebGLRenderer 55
[29/01/2013 09:33:51] JavaScript - http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html
console.log
THREE.WebGLRenderer: Float textures not supported.
[29/01/2013 09:33:51] JavaScript - http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html
console.log
THREE.WebGLRenderer: Standard derivatives not supported.
[29/01/2013 09:33:51] JavaScript - http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html
console.log
THREE.WebGLRenderer: Anisotropic texture filtering not supported.
[29/01/2013 09:33:51] JavaScript - http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html
console.log
THREE.WebGLRenderer: S3TC compressed textures not supported.
[29/01/2013 09:33:51] JavaScript - http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html
Inline script thread
Uncaught exception: TypeError: 'j.getShaderPrecisionFormat' is not a function
Error thrown at line 386, column 69 in (a) in http://mrdoob.github.com/three.js/build/three.min.js:
var kb=j.getShaderPrecisionFormat(j.VERTEX_SHADER,j.HIGH_FLOAT),cd=j.getShaderPrecisionFormat(j.VERTEX_SHADER,j.MEDIUM_FLOAT);
called from line 297, column 4 in init() in http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html:
renderer = new THREE.WebGLRenderer( { antialias: true } );
called from line 135, column 3 in http://mrdoob.github.com/three.js/examples/webgl_animation_cloth.html:
init();

And effectively, http://carvisualizer.plus360degrees.com/threejs/ works partly, but it also says that it can't initialize shader :

[29/01/2013 09:38:18] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
console.log
Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.12 | WebGL 1.0 | Opera Software | Vega | WebGL GLSL ES 1.0
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
WebGL shader validation
123: X0007: Non-constant uniform array index used:
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
WebGL shader validation
131: X0007: Non-constant uniform array index used:
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
WebGL shader validation
139: X0007: Non-constant uniform array index used:
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
WebGL shader validation
148: X0007: Non-constant uniform array index used:
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
WebGL shader validation
156: X0007: Non-constant uniform array index used:
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
console.error
123: X0007: Non-constant uniform array index used:
131: X0007: Non-constant uniform array index used:
139: X0007: Non-constant uniform array index used:
148: X0007: Non-constant uniform array index used:
156: X0007: Non-constant uniform array index used:
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
console.error
[29/01/2013 09:38:19] JavaScript - http://carvisualizer.plus360degrees.com/threejs/
console.error
Could not initialise shader
VALIDATE_STATUS: true, gl error [1281]

@gero3
Copy link
Contributor

gero3 commented Jan 29, 2013

steveTJS Opera doesn't have support for many of the extensions nessecary . So It is quite normal that that demo doesn't work in Opera.

PS: Please keep on topic as this should be resolved in this revision.

@jeum
Copy link

jeum commented May 19, 2013

Hi
I did some tests with Opera, tried these gero3 updates (WebGLRenderer.js + LowLevelRenderer.js) and still get the error 'Could not initialise shader'...

So, do you think that we have to consider that, for the time being, Opera should be simply blocked by the "Detector level" ??

@mrdoob mrdoob closed this as completed May 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants