The Freestyle SVG Exporter page in the manual shows this image: svg_manual_image but doesn't really have any indication of how to achieve this contour line look...

I did some more digging around and found an article from 6 year ago with a similar image, that had a very similar picture and provided a script, which I've yet to try (haven't messed with scripts in blender yet...): similar image

Is there a more "official" way of achieving this? I know e.g. Rhino3D has contour line command so I'm wondering if blender has anything similar?

edit: I want to render the scene as an svg, should have specified. I got the script to work, but it's destructive... it operates on the mesh directly unfortunately. If anyone can find a way around this would be helpful.

  • 2
    $\begingroup$ Do you want to export it as a svg or just render the lines ? $\endgroup$
    – Gorgious
    Apr 22 '20 at 6:57
  • $\begingroup$ Related : blender.stackexchange.com/q/114345/29586 $\endgroup$ Apr 22 '20 at 10:56
  • $\begingroup$ @Gorgious want to render as SVG... should have specified $\endgroup$
    – stillsleep
    Apr 27 '20 at 5:40
  • $\begingroup$ I suggest ask a new question on this link this one $\endgroup$
    – brockmann
    Apr 27 '20 at 8:41

Simple node setup that uses the separated Z texture coordinates and modulo to drive a repeating color ramp.

  • Use the green cursor on the ramp to change thickness of lines.
  • Use the Z Scale to adjust line space
  • For the ground, same texture but using the X texture coordinate component.

enter image description here

  • $\begingroup$ thank you! This does answer the question as it was posted. Though I left out an important detail, the fact that I wanted the lines to render as an SVG. My fault, so I'll mark this as correct in a few days if no one else answers. $\endgroup$
    – stillsleep
    Apr 27 '20 at 5:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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