You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gl.texImage3D is not a function error when using with threejs #304
Activity
heijieke commentedon Dec 20, 2024
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 commentedon Jan 4, 2025
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
@dhritzkiv Do you have an estimate as to how much effort is required to support WebGL2 in headless-gl?
eulertour commentedon Jan 4, 2025
Alternatively, the proper solution may be to instead try to render with the WebGPU API
nodejs/node#42896 (comment)