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
The 1st code below is the current code in the ui.three.js file (starting at line 75) that is passing improper texture.
The 2nd code is what works for me but can probably be changed.
Good catch! Your suggested fix works however it should not be necessary to use CanvasTexture. TGALoader is normally returning an instance of DataTexture so maybe:
Description
TGA textures are not handled properly in Map properties of a material.
This is the error in Firefox browser on Windows computer:
THREE.WebGLState: TypeError: WebGL2RenderingContext.texSubImage2D: Argument 7 is not valid for any of the 7-argument overloads.
texSubImage2D https://threejs.org/build/three.module.js:23147
uploadTexture https://threejs.org/build/three.module.js:24540
setTexture2D https://threejs.org/build/three.module.js:23917
setValueT1 https://threejs.org/build/three.module.js:18444
upload https://threejs.org/build/three.module.js:18999
setProgram https://threejs.org/build/three.module.js:29794
renderBufferDirect https://threejs.org/build/three.module.js:28645
renderObject https://threejs.org/build/three.module.js:29344
renderObjects https://threejs.org/build/three.module.js:29313
renderScene https://threejs.org/build/three.module.js:29182
render https://threejs.org/build/three.module.js:28987
renderToCanvas https://threejs.org/editor/js/libs/ui.three.js:944
setValue https://threejs.org/editor/js/libs/ui.three.js:160
loadFile https://threejs.org/editor/js/libs/ui.three.js:84
The 1st code below is the current code in the
ui.three.js
file (starting at line 75) that is passing improper texture.The 2nd code is what works for me but can probably be changed.
Reproduction steps
Code
Live example
Screenshots
No response
Version
r153
Device
Desktop
Browser
Firefox
OS
Windows
The text was updated successfully, but these errors were encountered: