This question already has an answer here:

I'd like to take a simple cross section in Blender 2.7 using the Cycles renderer. I would think this would be easy, and there is even a tutorial about how to do it, but that tutorial is for Blender 2.4, and does not work with 2.7. Can someone post a simple tutorial about how to create a cross section in the latest version of blender. Here is that I have come up with so far, but the edge is not sharp and I cannot figure out how to adjust it:

enter image description here


marked as duplicate by gandalf3, Vader, David, Keavon, CharlesL May 11 '14 at 23:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ Also related: blender.stackexchange.com/q/5113/599 $\endgroup$ – gandalf3 May 11 '14 at 20:15
  • $\begingroup$ You could get the effect you want with your existing node setup if you add a Math node set to Greater than between the gradient texture node and the mix factor. For more control, you could instead use a color ramp node set to constant interpolation in the same place. $\endgroup$ – gandalf3 May 11 '14 at 20:17

If I would be trying to achieve a cross section like effect, I wouldn't use the compositor but a mesh with a boolean modifier. In my opinion it's much more flexible.

To accomplish this add a cube to our scene and position it to intersect with your object in the place you want gone. Then add a boolean modifier to the object, select diffrence for the mode, and chose your masking cube. Be sure to disable renderability/hide the cube you masked the object with.

I have created an example in which the object being cross-sectioned is suzane in a box. You can download it here. Here's the example render and viewport screenshot.



While this method works with almost any render system, the blender internal and cycles have trouble with multimaterial objects. In that case just split it into separate objects with one material each.


Not the answer you're looking for? Browse other questions tagged or ask your own question.