【问题标题】:Internet Explorer 11 does not open local three.js, not even with local serverInternet Explorer 11 打不开本地three.js,连本地服务器也打不开
【发布时间】:2018-06-01 02:34:36
【问题描述】:

这也包括三个.js 示例,虽然它们确实在线打开。 我尝试了 python 和 node.js 服务器,它接收文件列表,但是当点击 HTML 时,屏幕仍然是黑色的。它们在 Firefox、Chrome、SeaMonkey 等中打开良好。当然,问题在于 IE 11,而不是 three.js。

任何想法如何让 IE 11 打开本地 three.js 文件?

【问题讨论】:

  • 下载repo然后在根目录下执行npm install和npm start是否有效?服务器在localhost:8080 下运行
  • 下载什么仓库,three.js?我确实下载了three.js-dev.zip,然后在分区的根目录上尝试了'npm install'和'npm start'(单独尝试并使用zip文件名并出现错误),并且没有启动服务器(在本地主机:8080)。顺便说一句,我没有使用 git。
  • 我解压了 zip,然后运行 ​​'npm install three.js-dev' 并排除其他错误,包括。 '没有存储库'它最后提到了three.js 93。 'npm run' 没有引发错误,但仍然没有服务器。我不知道那个“神秘”指令实际运行的是什么......

标签: three.js localhost internet-explorer-11


【解决方案1】:

在我执行以下操作后,IE 11 开始直接运行本地 three.js 文件(通过拖放 HTML 文件):

Internet 选项/高级/安全 选择: “允许活动内容在我的电脑上的文件中运行”并重新启动计算机。

但我发现 IE 11 只有部分 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

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/)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-26
    • 1970-01-01
    • 1970-01-01
    • 2020-02-26
    • 1970-01-01
    相关资源
    最近更新 更多