Hi Guys, this is my first post
I got these errors “THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.” and “THREE.DirectGeometry: Faceless geometries are not supported.”
As I complied these codes:
var paraFunction = function (a, b) {
var x = -5 + 5 * a;
var y = -5 + 5 * b;
var z = (Math.sin(a * Math.PI) + Math.sin(b * Math.PI)) * -7;
return new THREE.Vector3(x, y, z);
}
var paraGeometry = new THREE.ParametricGeometry(paraFunction, 8, 8);
var paraMaterial = new THREE.MeshLambertMaterial({color: 0xF3FFE2});
var paraMesh = new THREE.Mesh(paraGeometry, paraMaterial);
paraMesh.position.set(0, -2, -100);
scene.add(paraMesh);
any idea or incompatibility on the newest ThreeJS ?