【问题标题】:how to build three.js from sources如何从源代码构建three.js
【发布时间】:2013-06-04 22:34:03
【问题描述】:

我在构建 three.js 时遇到了一些麻烦 - 生成的 three.js 文件与我下载的文件明显不同。

这很可能与wiki中此页面的评论“此页面当前无效,需要重写”有关,[“如何生成压缩三”](https://github.com/mrdoob/three.js/wiki/build.py,-or-how-to -generate-a-compressed-Three.js-file)。

不过,我还是有点上头了。

我想将碰撞排除添加到Raycaster.js/intersectObject(), 但是重建会破坏我的应用程序,而不会在控制台中出现错误或警告。

我尝试了可能的--include 的各种排列, 有不同但不成功的结果。

我什至没有尝试构建缩小版。

我在 OSX 上。

任何指针表示赞赏。

【问题讨论】:

    标签: build compilation three.js rebuild


    【解决方案1】:

    在终端窗口转到 utils/build 并运行:

    python build.py --include common --include extras --output ../../build/three.js
    

    或者...运行shell file:

    ./build.sh
    

    【讨论】:

    • 完美运行 - 输出相同。谢谢,我应该知道的。
    猜你喜欢
    • 2010-11-17
    • 2021-10-07
    • 2012-01-21
    • 2012-06-13
    • 2012-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多