Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Three.js Sketchup模型>;科拉达>;三个js=没有边_Three.js_Collada_Sketchup - Fatal编程技术网

Three.js Sketchup模型>;科拉达>;三个js=没有边

Three.js Sketchup模型>;科拉达>;三个js=没有边,three.js,collada,sketchup,Three.js,Collada,Sketchup,我将一个非常简单的Sketchup模型导出到Collada dae文件中。导入回Sketchup时,边缘为原始黑色;导入到三个编辑器中的边缘为白色;在简单的三个项目中,边根本不会出现,但其他一切似乎都正常。对此有什么想法吗?我昨天发现了你的问题,因为我有同样的问题,正在网上搜索解决方案。没有什么。。。但我解决了 首先,确保从Sketchup导出Collada时,在“选项”按钮中选中“导出边” 如果边缘是白色的,并且希望它们是黑色或任何颜色,则必须在three.js中编辑一行 寻找 fun

我将一个非常简单的Sketchup模型导出到Collada dae文件中。导入回Sketchup时,边缘为原始黑色;导入到三个编辑器中的边缘为白色;在简单的三个项目中,边根本不会出现,但其他一切似乎都正常。对此有什么想法吗?

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

首先,确保从Sketchup导出Collada时,在“选项”按钮中选中“导出边”

如果边缘是白色的,并且希望它们是黑色或任何颜色,则必须在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=新颜色(0x000000)

我希望这能解决你的问题