I have a scene where I have an avatar with a number of animationGroups where I can switch between each one. Setting the layerMask for the meshes in the scene disables the animations from running.
The animations were imported from Mixamo and applied to ReadyPlayerMe avatars.
Here is a video demonstrating the issue with the Debug Layer.
switching the layerMask from 0x1000000 to 0xFFFFFFFF makes the animation work. Moving back and forth should animate the avatar as shown at 18 seconds. In this case, every element but the avatar has the layerMask 0x10000000.
The mirror camera does not have a layer mask but the active camera has the layerMask 0x10000000.
I am using this to prevent the avatar from showing up for the active camera but to be visible in the mirror.
const layerMask = 0x10000000;
scene.meshes.forEach((mesh:BABYLON.AbstractMesh)=>{
mesh.layerMask = layerMask;
});
scene.activeCamera.layerMask = layerMask;
I have a complex issue that I can’t build a playground for that demonstrates the issue. Any suggestions?