Hello people, I'am facing a strange problem with multiple faces detection. After detect first face, the API take a longer time to detect the secound face, and sometimes detect only the secound face and ignore the first face.
I don't know if I'm doing something wrong, there's no diference from my code and the demos, except the fact that I'm using plane geometry and loading .png images instead of 3d models.
` var threeStuffs = THREE.JeelizHelper.init(spec, SETTINGS.maxFaces, detect_callback);
//Carrego o primeiro sticker
geometry = new THREE.PlaneGeometry(1,1,1);
material = new THREE.MeshBasicMaterial({
map : THREE.ImageUtils.loadTexture('assets/stickers/sticker1.png'),
transparent: true,
//color: 0x0000ff,
side: THREE.DoubleSide
});
plane = new THREE.Mesh(geometry, material);
plane.scale.set(3,3,3);
plane.position.set(0.0, 1.1, 0.0);
plane.frustumCulled = false;
threeStuffs.faceObjects.forEach(function(faceObject) {
faceObject.add(plane.clone());
});
//CREATE THE CAMERA
var aspecRatio=spec.canvasElement.width / spec.canvasElement.height;
THREECAMERA=new THREE.PerspectiveCamera(SETTINGS.cameraFOV, aspecRatio, 0.1, 100);`