Internet Explorer 11无法打开本地three.js,即使使用本地服务器也无法打开 [英] Internet Explorer 11 does not open local three.js, not even with local server
问题描述
尽管它们确实是在线打开的,但也包括three.js示例. 我尝试了python和node.js服务器,它接收文件列表,但是当单击HTML时,屏幕保持黑色.它们可以在Firefox,Chrome,SeaMonkey等中正常打开.当然,这是IE 11的问题,而不是three.js.
有什么想法可以使IE 11打开本地three.js文件吗?
在执行以下操作之后,IE 11开始直接运行本地Three.js文件(通过拖放HTML文件):
Internet选项/高级/安全性 已选择: 允许活动内容在我的电脑"上的文件中运行"并重新启动计算机.
但是我发现IE 11仅具有 partial WEBGL支持,因为它仅支持WEBGL 0.94,而不是THREE.js所需的WEBGL 1.0.
比较:
Firefox 60
Chrome v67
IE 11.096
(根据在线测试 https://browserleaks.com/webgl )
因此,无论在本地还是在线,它都不会运行很多three.js示例(和其他实现).这是一个子集:
webgl_postprocessing_crossfade
webgl_buffergeometry_instancing_lambert
webgl_lines_fat </p>
webaudio_sandbox
webaudio_timing
webaudio_visualizer
webgl_depth_texture-不支持"
webgl_geometry_minecraft
webgl_gpgpu_birds
webgl_interactive_cubes_gpu
webgl_kinect
webgl_loader_amf
webgl_loader_collada_kinematics
webgl_loader_draco
webgl_loader_gltf
webgl_loader_gltf_extensions
(来自 https://threejs.org/examples/)
That includes three.js examples too, while they do open online. I tried both python and node.js servers, it receives the file list, but when the HTML is clicked, the screen remains black. They open fine in Firefox, Chrome, SeaMonkey etc. Of course, it's IE 11 the problem, NOT three.js.
Any ideas how to make IE 11 open local three.js files?
IE 11 started to run local three.js files directly (with drag and drop the HTML file) after I did the following:
Internet Options/Advanced/Security selected: "Allow active content to run in files on My Computer" and rebooted the computer.
But I found out that IE 11 has only partial WEBGL support, as it only supports WEBGL 0.94 instead of WEBGL 1.0 required for THREE.js.
Comparison:
Firefox 60
Chrome v67
IE 11.096
(According to online test https://browserleaks.com/webgl )
As a consequence, it won't run many three.js examples (and other implementations) whether locally or online. Here is a subset:
webgl_postprocessing_crossfade
webgl_buffergeometry_instancing_lambert
webgl_lines_fat
webaudio_sandbox
webaudio_timing
webaudio_visualizer
webgl_depth_texture - "NO SUPPORT"
webgl_geometry_minecraft
webgl_gpgpu_birds
webgl_interactive_cubes_gpu
webgl_kinect
webgl_loader_amf
webgl_loader_collada_kinematics
webgl_loader_draco
webgl_loader_gltf
webgl_loader_gltf_extensions
(from https://threejs.org/examples/ )
这篇关于Internet Explorer 11无法打开本地three.js,即使使用本地服务器也无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!