Can I create a hole in space?

I’m trying to put a window in a building. I tried to use transparency like in this playground https://www.babylonjs-playground.com/#8NGJT7#4 which is almost there. The middle sphere disappears everything behind it too though, not just inside it.

Is there a way to create an invisible box with a material that disappears everything inside the box, but not things outside the box?

As an aside, I’d just like to say, since it’s my first post here, that I really appreciate all the hard work you’ve done, not only on the product, but also all the resources to get newcomers up to speed and productive really quickly. Babylon is amazing.

2 Likes

hi.maybe this helps you
https://playground.babylonjs.com/frame.html#EEOWP#7 or this Developing Build a House from a Floorplan - Babylon.js Documentation
Use PolygonMeshBuilder - Babylon.js Documentation

1 Like

Welcome @peej

I’d use COLLISION Boxes to hide things.

https://doc.babylonjs.com/babylon101/intersect_collisions_-_mesh