I am new to the forum and to Babylon.js, but like the framework very much. I have worked with Three.js for the past several years.
I am trying to achieve the same effect of “solid” geometry using clipping planes and stencil materials as is done in Three.js here:
I want to do it in real time, same way they do, so CSG is an overkill and not an option for me.
Here is my playground with what I have so far, using what I have learned about Babylon and what I have seen in other playgrounds:
I am basically importing StanfordBunny.obj into the scene (as I want to be able to do this “slicing” with imported meshes), then add a clipping plane with normal pointing in positive Y direction and an actual plane mesh, whose material I want to show only “inside” the bunny. GUI slider moves the clipping and actual mesh planes up an down in Y direction (similar to how planeY constant does for Three.js demo).
I have spent some time now trying to achieve the same effect as in Three.js and I am sure it’s possible with Babylon. Any help to guide me in the right direction would be very appreciated!