我使用.glb对象并想弯曲它。我尝试使用Three.js 3D Text Bending
中的信息所以,现在它不起作用。错误是:
for (var i = 0; i < geometry.vertices.length; i++) {
该行是:glbLoader.load('3d_models/ed-object.glb', function (geometry,) {
staticObj = geometry.scene.children[0];
...
var direction = new THREE.Vector3(0, 0, -1);
var axis = new THREE.Vector3(0, 1, 0);
var angle = Math.PI / 6;
var modifier = new THREE.BendModifier();
modifier.set(direction, axis, angle).modify( staticObj.geometry );
}
我的代码:
{{1}}
希望你能帮助我。