-
Notifications
You must be signed in to change notification settings - Fork 31
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
Error: Unsupported getParameter() option #37
Comments
Looks like this is resolved from #34 ? |
No this is something else. |
OK - I'll need some more details here. Stack trace, what was the argument passed into getParameter etc. |
I ran in to the same problem trying to use this project with three.js var maxVertexTextures = gl.getParameter( gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS );
^
Error: Unsupported getParameter() option
at new WebGLCapabilities (/home/gaz/prog/native-threejs/node_modules/three/build/three.js:15851:30)
at initGLContext (/home/gaz/prog/native-threejs/node_modules/three/build/three.js:23321:19)
at new WebGLRenderer (/home/gaz/prog/native-threejs/node_modules/three/build/three.js:23370:3)
at Object.<anonymous> (/home/gaz/prog/native-threejs/main.js:16:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at this location in the library: https://github.com/mrdoob/three.js/blob/c4b7b422b3f17900e530d27e3bbf0cdd76200cc1/src/renderers/webgl/WebGLCapabilities.js#L73 I commented out some to see which would work and
threw errors when called with |
Guessing they need to have cases here: node-gles/binding/webgl_rendering_context.cc Line 2539 in f1e76c5
edit: I created a pull request at #47 Next thing is that |
Hi @AlexVestin yeah we can change that block to not fail if the param is not implemented. It should be as easy as matching up context values. I'll try and take a look this week at this. I'm behind on getting a new build out. |
Hi @nkreeger , is it still not supported for the parameters of extensions? const ext = gl.getExtension('WEBGL_debug_renderer_info');
if (ext != null) {
const rendererInfo = gl.getParameter(ext.UNMASKED_RENDERER_WEBGL);
const vendorInfo = gl.getParameter(ext.UNMASKED_VENDOR_WEBGL);
console.log(rendererInfo, vendorInfo);
} |
Params are supported - however those params are not implemented: That block can probably be changed to not throw an exception. For node-gles - I'd recommend asking renderer info like so: |
Hi @nkreeger . Unfortunately, there are some useful extension parameters that are not supported, such as EXT_texture_filter_anisotropic. Could you extend the getParameter method more compatibly? It is very much appreciated. |
I'm trying to use node-gles with three.js and get the following error:
Error: Unsupported getParameter() option
I guess get Parameter is not implemented yet?
When do you think it's realistic for me to try my three.js experiment again?
The text was updated successfully, but these errors were encountered: