【问题标题】:ThreeJS - render mesh with curved surface as black and white drawingThreeJS - 将具有曲面的网格渲染为黑白绘图
【发布时间】:2016-02-19 22:43:59
【问题描述】:

我想用如下图所示的曲面渲染网格:

使用 EdgesHelper 我得到了这个

或者,增加面数和 EdgeHelper 的 thresholdAngle:

有什么想法吗?

【问题讨论】:

    标签: three.js


    【解决方案1】:

    我找到了解决办法! 遵循这个建议Three.js outlines

    我使用了 EdgeHelper plus:

    var outline_mat = new THREE.MeshBasicMaterial({color : 0x000000, side: THREE.BackSide});
    var outline = new THREE.Mesh(mesh.geometry, outline_mat);
    outline.scale.multiplyScalar(1.02);
    scene.add(outline);
    

    结果:

    【讨论】:

      猜你喜欢
      • 2019-01-15
      • 2012-11-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-13
      • 1970-01-01
      • 1970-01-01
      • 2020-12-02
      相关资源
      最近更新 更多