Hi everybody,
I noticed a bug since BABYLON Version 8.22.3.
Here’s what happens :
Version 8.22.1 :
The zoom is working perfectly (item 15 of the camera matrix)
Actual version :
Nothing is working.
Here’s the code in the slider function (num is the float returned by the slider):
updateScale(num) {
// Récupère la matrice de projection de la caméra active
var matrixia = scene.activeCamera.getProjectionMatrix();
// Met à jour l'élément m[15] de la matrice avec le paramètre num
matrixia._m[15] = num;
// Applique les modifications à la matrice de projection de la caméra active
scene.activeCamera.getProjectionMatrix().setRow(0, matrixia.getRow(0));
scene.activeCamera.getProjectionMatrix().setRow(1, matrixia.getRow(1));
scene.activeCamera.getProjectionMatrix().setRow(2, matrixia.getRow(2));
scene.activeCamera.getProjectionMatrix().setRow(3, matrixia.getRow(3));
What happens in the last version :
Matrixia._m[15] = 0 when i’m looking at the console. So the zoom is not working any more. I tried to have a look with a PG but i did not manage to reproduce the bug.
If anyone could help me…
Thanks,
Boris