In my Web Application users can upload a png-file. Then i want to set this image as Texture in my scene. It works fine on Chrome, FF and on Android. But Edge says ERROR ReferenceError: 'ImageBitmap' is not defined. And on ios Nothing happens.
const loader = new THREE.TextureLoader();
if ( image === undefined ) { console.log( 'Texture is not valid!' ); }
loader.load(image, (texture) => {
const material = new THREE.MeshPhongMaterial({
map: texture,
});
By removing the material the Object will be shown without the texture and without errors.
Can you create jsfiddle that shows the issue?
I assume the OP does not use the latest version of three.js. Please try it with R103.
Closing for now.
This is definitely still a thing. I'll work on a jsfiddle later.
Most helpful comment
I assume the OP does not use the latest version of
three.js. Please try it withR103.