How to hide Walls when dynamic based on Camera position?

Hello everyone,

how can I hide the walls, as shown in the picture, when the camera is pointing at the wall from the outside? The walls should only be hidden when the camera is directed at them from the outside, as seen in the picture.

If the camera is no longer pointing at the wall, the wall should be displayed again.

Thank you for your answers!

There are two approaches to your problem described on this page

https://sbcode.net/threejs/raycaster2/

2 Likes

I will try it, thanks !

Make the material one sided, so when your camera is at back face of the mesh it’s invisible, you can simple do it on blender, checkout threeverse project

  1. Apartment
  2. Edge Apartment

Hello Umbawa, thanks for your response! I dont use material.