Rendering only If the mesh position is front of camera

Hi,
I am facing an issue, I don’t know whether this is an issue or behaviour. The below is my camera position and target,

camera.position = new BABYLON.Vector3(0, 1.2, -0.2);
camera.target = new BABYLON.Vector3(0, 1.15, 0);

My scenario is similar to being inside of a car. I am creating hotspots in several positions like dashboard, rear seat , etc., I am creating hotspot at live time. hotspots are created using meshes and textures only. While creating hotspots, if the camera is looking dashboard , then the rear seat hotspot is not being rendered. If the camera is looking rear seat, then dashboard hotspot is not being rendered. What is the reason for this. How to solve this?

A reproduction would be very helpful. Have you tried setting the mesh to always be active (mesh.alwaysSelectAsActiveMesh)?

2 Likes

Yup definitely related to culling

1 Like

might also be a mirror culling issue, a tiny repro in the playground would be great

1 Like