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

gl.texImage3D is not a function error when using with threejs #304

Open
phongpt156 opened this issue Dec 11, 2024 · 3 comments
Open

gl.texImage3D is not a function error when using with threejs #304

phongpt156 opened this issue Dec 11, 2024 · 3 comments

Comments

@phongpt156
Copy link

phongpt156 commented Dec 11, 2024

I'm got this error when init WebGLRenderer object in threejs library. I'm using version 0.171.0 of threejs

@heijieke
Copy link

I have the same problem. It might be caused by a mismatch in the WebGL version. But I don't know the correct version, have you resolved this issue?

@eulertour
Copy link

I can confirm this error first occurs on r163 of three.js, presumably because that's the revision that dropped support for WebGL1 and since texImage3D is part of the WebGL2 spec. The paths forward I see are

  1. Stay on r163 of three.js (fine in the short term, bad in the long term)
  2. Support WebGL2 in headless-gl (an unknown amount of effort in the short term, best for the long term)

@dhritzkiv Do you have an estimate as to how much effort is required to support WebGL2 in headless-gl?

@eulertour
Copy link

Alternatively, the proper solution may be to instead try to render with the WebGPU API
nodejs/node#42896 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants