BabylonJS / Babylon.js

Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
http://www.babylonjs.com
Apache License 2.0
23.22k stars 3.43k forks source link

Use stencil for clipplanes #3539

Closed deltakosh closed 6 years ago

xuchen-shadow commented 6 years ago

Is it possible to add multiple clipping planes support?

deltakosh commented 6 years ago

Nope but I'm interested by your use case as based on htat we may want to consider supporting multiple clip planes

xuchen-shadow commented 6 years ago

Actually I am writing a viewer for an BIM application. The users really need multiple clipping planes. I am now using CustomMaterial for it. But I also want to support it for PBR materials.

deltakosh commented 6 years ago

Ok makes sense so perhaps instead of using stencil for a single plane we should add support for multiple planes

ghost commented 6 years ago

+1 regarding multiple planes. My use case: I have to do medical brain scans and these are non orthagonal. Users need many clipping planes in order to cognitively understand the 3d volumes they are looking at

deltakosh commented 6 years ago

Not needed as we now have: https://github.com/BabylonJS/Babylon.js/issues/3765