1
$\begingroup$

I am exporting a very simple scene to svg via the svg addon, this is my scene:

enter image description here

And this is the output:

enter image description here

My issue is that I want the line in the center to be visible (and dashed when occluded). I have tried toying with the edge marking features but no luck so far.

This is the svg add on I am talking about: enter image description here

$\endgroup$
7
  • 1
    $\begingroup$ Is this a special version of Blender? I opened it with 3.6.2 and trying to hit render to see what it looks like crashed my Blender. And even worse, my other opened Blender project was still open, but when I tried to save it it crashed, too... so I'm sorry, I cannot help you with that file... oh, Blender completely refuses to open now, have to restart my PC. What kind of file is that? $\endgroup$ Commented Sep 5, 2023 at 7:52
  • $\begingroup$ The SVG add-on? There are quite a few SVG add-ons for Blender. $\endgroup$ Commented Sep 5, 2023 at 7:52
  • $\begingroup$ @GordonBrinkmann That sounds strange, it's just a blend file, exported normally through the UI. Are you sure it was the file that caused it and not something else? $\endgroup$
    – Makogan
    Commented Sep 5, 2023 at 8:36
  • $\begingroup$ @MartynasŽiemys I added a screenshot of the add on $\endgroup$
    – Makogan
    Commented Sep 5, 2023 at 8:36
  • $\begingroup$ @Makogan Well, it never happened before I tried to render your file, it did not happen when trying to render anything else after I restarted my PC and did not touch your file again... but I made several attempts to open your file and it always crashed when I hit F12, so I may not be sure but I have a strong suspicion. //Edit: I dared to open it again, it only happens when I render in Eevee, when I switch to Cycles everything is fine. But Eevee works on my PC in other projects. $\endgroup$ Commented Sep 5, 2023 at 8:40

1 Answer 1

2
$\begingroup$

I am sorry - this is not a solution. I hope someone will come up with a real answer to your problem. This is just an explanation why you do not get it to work in the first place and what other problems there are with Freestyle.

Unfortunately you cannot create what you want with Freestyle, or at least not really in a simple way. The main reasons you'll find in the Blender Documentation on Freestyle's Known Limitations:

freestyle limitations

So the first thing is, your edge will not work in Freestyle because only faced mesh objects are supported. Now you could extrude the edge to create a face, and if you mark only one edge as Freestyle Edge and use Edge Mark in the Edge Type settings this might have been the way to go...

However, there comes the other limitation: "No edges at face intersections are detected yet" - and what the problem with this is I'll show you with an example. I've set up a thicker line for the visible edges and a thinner dashed line for the hidden edges and have two objects in my scene. Rendered separately, everything looks fine and as expected:

separate objects

Now when objects are in the more or less same location, they are overlapping each other. The larger object hides a lot of the smaller object, which also hides a bit of the parts lying behind it from the camera's view. What you would expect to see is something like this on the right side:

expected overlapping result

But unfortunately, since _Freestyle is not very good at detecting which edges are visible and which not when faces are intersecting, the actual result you'll get is this:

actual result

So here is what I did with your file, I extruded the edge just a little bit to have a face and marked one of them as Freestyle Edge:

extruded edge

But due to the limitations of Freestyle, the result does not look as if the edge was going through the planes but as if it is completely behind them:

edge hidden completely

And if I had made the extruded face larger, although only one edge is marked as Freestyle Edge, rendering it now would make it even worse because the face would still work as an obstacle hiding the edges of the planes:

larger face obstructing planes

All in the only way I see right now is somehow splitting up the edge in several parts and trying to find ways to make everything visible the way it is supposed to be. But as soon as you would be going for a different camera angle you would have to adjust all again. Or you have to render the parts separately and create the correct visible/hidden segments in another software. The best would be of course someone knew a better way which makes it all work automatically the way you want.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .