Jordans osl shader as boolean slice solution in blender

@Moult
Blender could take advantage of Jordans osl shader to handle boolean slices, this is a CPU Cycles feature only solution, but it is able to properly fill the sections / and even support shadows.
https://blender.stackexchange.com/a/110078/34831
Sample file
https://blender-archipack.org/jordans_boolean.blend

Comments

  • Very, very cool @stephen_l - I'll look at adding it as an additional feature. I won't remove the Eevee shader though, since that works well in real-time, whereas a Cycles approach won't be. That would be very good for people to create explanatory diagrams.

  • edited July 15

    Real-time alternatives may be

    • Turn osl scripts into first citizen shaders in blender's rendering pipeline (unlikely to occurs soon).
    • Offscreen open-gl processing using a custom glsl shader - if ever opengl support such kind of ray travel hits analysis. https://github.com/daign/clipping-with-caps/blob/master/js/shader.js
    • Create kind of blender mix node on c side that support such things out of the box. (trying to see if such approach is valid with a cycles dev)
Sign In or Register to comment.