【问题标题】:Texture difficulties in Three.jsThree.js 中的纹理困难
【发布时间】:2013-02-26 14:06:05
【问题描述】:

我的模型上的纹理仍然存在一些问题。首先我尝试使用 three.js r50 的 collada 模型,现在我尝试使用 three.js r56 的 .obj 模型,但我的纹理上仍然出现一些黑线,就像纹理的外观一样。有人可以帮助我了解发生了什么吗?这是我的两个例子:

http://victorribeiro.com/modelo3Dobj/ (three.js r56 - model .obj)

http://victorribeiro.com/modelo3D/ (three.js r50 - 模型 collada)

【问题讨论】:

    标签: three.js textures collada


    【解决方案1】:

    我只看到您在以掠射角查看面部时所指的黑线。

    为我解决的问题是在加载程序回调函数中设置 texture.aniostropy,如下所示:

    var map = object.children[0].material.map;
    map.anisotropy = renderer.getMaxAnisotropy();
    

    这当然是特定于机器的。

    否则,我看不出你的模型有什么问题。

    three.js r.56

    【讨论】:

    • 能否请您再次告诉我将这段代码放在我的代码中的什么位置?
    • 你可以在你的加载器回调函数中把它放在scene.add( object )之后。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-26
    • 1970-01-01
    • 1970-01-01
    • 2012-09-17
    • 2017-10-05
    • 2021-01-29
    相关资源
    最近更新 更多