【问题标题】:Sketchup model > Collada > THREE js = no edgesSketchup 模型 > Collada > 三个 js = 没有边
【发布时间】:2017-08-26 10:37:36
【问题描述】:

我将一个非常简单的 Sketchup 模型导出到 Collada dae 文件中。当导入回 Sketchup 时,边缘是原来的黑色;导入三个编辑器边缘是白色的;在简单的三个项目边缘根本没有出现,但其他一切似乎都很好。对此有何想法?

【问题讨论】:

    标签: three.js collada sketchup


    【解决方案1】:

    我昨天才发现您的问题,因为我遇到了同样的问题,正在网上搜索解决方案。没什么……但我解决了。

    首先确保当您从 Sketchup 导出 Collada 时,在选项按钮中的 Export Edges 被选中。

    如果边缘是白色的,而您希望它们是黑色或任何颜色,则必须在 three.js 中编辑一行

    搜索

        function LineBasicMaterial( parameters ) {
    
        Material.call( this );
    
        this.type = 'LineBasicMaterial';
    
        this.color = new Color( 0xffffff );
    
        this.linewidth = 1;
        this.linecap = 'round';
        this.linejoin = 'round';
    
        this.lights = false;
    
        this.setValues( parameters );
    
    }
    

    并改变这一行

    this.color = new Color( 0xffffff );
    

    到这里

    this.color = new Color(0x000000);

    希望能解决你的问题

    【讨论】:

      猜你喜欢
      • 2015-02-06
      • 2019-01-11
      • 2016-03-26
      • 1970-01-01
      • 2017-04-23
      • 2015-08-31
      • 1970-01-01
      • 2014-06-05
      • 2018-04-04
      相关资源
      最近更新 更多