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 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.


hi.maybe this helps you 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.