Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/113.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 三个JS 3D对象有时会在Safari上消失_Ios_Three.js_Safari_Webgl_Gltf - Fatal编程技术网

Ios 三个JS 3D对象有时会在Safari上消失

Ios 三个JS 3D对象有时会在Safari上消失,ios,three.js,safari,webgl,gltf,Ios,Three.js,Safari,Webgl,Gltf,我正在使用threejs在mapbox图层上加载3D对象。但有时Safari和Iphone上的对象会消失。 Safari控制台显示以下错误: “ReferenceError:找不到变量ImageBitmap” 我正在使用包含纹理的GLB文件,我们也尝试过使用GLTF,但我们有相同的行为。 此问题仅在Safari和IOS设备上出现,在Chrome for IOS上呈现良好。 我增加了threejs版本,但仍然相同。ImageBitmap在Safari中还不受支持。您可能在代码中使用此API导致此问

我正在使用threejs在mapbox图层上加载3D对象。但有时Safari和Iphone上的对象会消失。 Safari控制台显示以下错误: “ReferenceError:找不到变量ImageBitmap”

我正在使用包含纹理的GLB文件,我们也尝试过使用GLTF,但我们有相同的行为。 此问题仅在Safari和IOS设备上出现,在Chrome for IOS上呈现良好。
我增加了threejs版本,但仍然相同。

ImageBitmap
在Safari中还不受支持。您可能在代码中使用此API导致此问题。你能用一个官方的例子重现这个问题吗?如果不是,这可能是一个与应用程序相关的问题。在一些示例中,我们遇到了这个错误:“[Log]ReferenceError:找不到变量:createImageBitmap(webgl\u loader\u imagebitmap.html,第48行)(匿名函数)-three.module.js:42678”是的,正如我之前所说,这是因为Safari不支持此API。
ImageBitmap
在Safari中还不受支持。您可能在代码中使用此API导致此问题。你能用一个官方的例子重现这个问题吗?如果不是,这可能是一个与应用程序相关的问题。在一些示例中,我们遇到了这个错误:“[Log]ReferenceError:找不到变量:createImageBitmap(webgl_loader_imagebitmap.html,第48行)(匿名函数)-three.module.js:42678”是的,就像我之前说的,这是因为Safari不支持这个API。