Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/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 连接几何体的顶点_Three.js_Blender - Fatal编程技术网

Three.js 连接几何体的顶点

Three.js 连接几何体的顶点,three.js,blender,Three.js,Blender,我在Triple.js中导入了在blender中创建的一个Three.BufferGeometry。 我想用一个自定义着色器沿法线移动顶点(或多或少像这样:) 问题是所有面都设置了动画。 我尝试使用geometry.computeVertexNormals(),但它只适用于THREE.geometry 我需要THREE.BufferGeometry,因为我将在以后为每个顶点(属性)应用特定参数,而从r72开始,我们似乎无法为THREE.Geometry应用该参数

我在Triple.js中导入了在blender中创建的一个
Three.BufferGeometry
。 我想用一个自定义着色器沿法线移动顶点(或多或少像这样:)

问题是所有面都设置了动画。

我尝试使用
geometry.computeVertexNormals()
,但它只适用于
THREE.geometry

我需要
THREE.BufferGeometry
,因为我将在以后为每个顶点(属性)应用特定参数,而从r72开始,我们似乎无法为
THREE.Geometry
应用该参数