Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1] 2
Author Topic: ZebraTrace - another way to generate SVGs
kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post ZebraTrace - another way to generate SVGs
on: October 31, 2013, 20:31
Quote

Check it out, drawing buddies:
http://maxim-s-barabash.github.io/ZebraTrace/

I've added some photos of my first drawing using ZebraTrace to the drawbots flickr group (to which you all should be contributing) - clicking the photo will take you there.
Spiral Anne Francis - On Polargraph

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: ZebraTrace - another way to generate SVGs
on: October 31, 2013, 21:24
Quote

You are the master kong! Beautiful result as always, and I love the detail of the lines, closeup, the blender-mesh is an inspired step. Good to see your new gondola too, I was wondering how you'd got on. It's strange that the under-chin transition should be so sudden, and is actually definitely confined to those particular arcs, rather than being about arcs a certain distance down the page. My money is on some something less subtle than the gondola, like a wobbly pen or something. It needs watching.

Does it draw in a spiral?

sn

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: October 31, 2013, 22:21
Quote

>Does it draw in a spiral?
Yes, *mostly*, in this case anyway. That's decided by the order that the Freestyle SVG exporter sorts things. There were some peculiar exceptions, when some odd polys got drawn here and there, perhaps because I edited them by hand in Blender or something, but in general it started in the middle and worked its way outward.

I'll post detailed results of my gondola experiments soon. Gotta get ready for 'trick or treaters' right now. Happy All Hallows' Eve!

nosetinker
Newbie
Posts: 5
Permalink
nosetinker
Post Re: ZebraTrace - another way to generate SVGs
on: March 5, 2014, 22:37
Quote

Hi Kongorilla! Thanks for sharing this cool stuff. While trying to replicate this drawing technique I've faced a problem with converting generated spiral curve to a mesh. As you can see in the picture below some triangles got deformed if the points are close to the Y axis. I wonder if you have made additional processing of the spiral curve before importing it to blender?
Image

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: March 6, 2014, 02:12
Quote

Hi N (saw your stuff in the flickr pool - cool!)

In Blender, while in edit mode:
1. Select all faces (keyboard a)
2. Go to Mesh/Faces/Beauty Fill (Shift Alt F)

That should fix much of the problem. Then there's the laborious bit of going over the mesh with a fine-tooth comb, looking for poly edges that don't look good to you.

3. In edge mode, select an edge that's not arranged as you would like it, hit Ctrl E, and then select Rotate Edge CW (or CCW). Repeat until all the triangles are pretty.

It's possible that there are times when it's better to select only a portion of the mesh before doing a 'beauty fill' -- doing the whole mesh in separate batches. I don't know if this spiral is one of those cases.

Hope that get's you through it!

nosetinker
Newbie
Posts: 5
Permalink
nosetinker
Post Re: ZebraTrace - another way to generate SVGs
on: March 7, 2014, 09:04
Quote

Hey konogrilla! Thanks for such detailed answer it helped a lot!

manu_alm
Newbie
Posts: 6
Permalink
manu_alm
Post Re: ZebraTrace - another way to generate SVGs
on: August 3, 2014, 21:57
Quote

one more question kongo, please.
when you trasnform the file in Zebra you leave the default setting or do you change? because I have done changes but the don´t work well, or the spiral is clear o is too saturate I didn´t found the good point.

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: August 4, 2014, 03:45
Quote

It's been almost a year since I used ZebraTrace, but I remember playing with the settings a bit. If I remember correctly, the important settings are the number of curves, the minimum thickness of the curves, and the maximum thickness. If I played with the other settings, I probably didn't do it with much understanding or purpose other than curiosity. I think you can get by with just the three major settings.

Here my memory is fuzzy, but I'm thinking there's a quality setting that adjusts how smoothly the curves go from one value to the next, or the frequency it checks for changes. That's a fine tuning thing that I may have used to keep the SVG at a reasonable level of detail.

It's entirely possible I'm forgetting something important. I'll have to play with ZebraTrace again to bring it all back.

You mention your trace output being too dark or light. Keep in mind that the curves in your drawing won't be as perfectly filled in as what you're seeing in the program (depending on the pen you use and the size you draw the SVG), so a little too dark might be good. You'll have to play around to find the right balance.

manu_alm
Newbie
Posts: 6
Permalink
manu_alm
Post Re: ZebraTrace - another way to generate SVGs
on: August 4, 2014, 17:39
Quote

thanks Kongo I´ll play and if I have good results I´ll post them!

william_b
Newbie
Posts: 10
Permalink
Post Re: ZebraTrace - another way to generate SVGs
on: December 23, 2014, 14:01
Quote

I can't seem to get a spiral out of ZebraTrace.

When I import the output of ZebraTrace (svg) in blender, I cant go to the edit mode. I tried to convert it: mesh from curve. Than I could enter the edit-mode. But I can only convert one curve at a time, selecting all with "a" and converting it does not work.

In the edit-mode it doesn't mesh it, when I select beauty fill. It stays a solid line.

Have I done something wrong?

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: December 23, 2014, 18:02
Quote

I don't know why you had trouble get into edit mode. I just did a quick run-through on the process to refresh my memory, and everything worked as I expected. Here's what I did:

1. Export SVG from ZebraTRACE
2. Import SVG into Blender
3. "a" to select all
4. "7" to be in top ortho view
5. "." to center the drawing in the view
6. "cntrl-j" to join all the curves
7. go to "Object/Convert to>mesh from Curve" (or "Alt-C">Mesh from Curve)
8. "tab" into edit mode to view polygons
9. Most likely, you'll want to go to Mesh/Faces/Beauty Fill (Shift Alt F) to reorder the faces a bit.
10. If there are still edges you'd like arranged differently, you can select an edge and hit "cntrl-e" and select one of the rotate edge options.

When I did my refresher run-though, some of the polygons didn't get made when I did my convert to mesh. I don't know why. There were vertices, though, so I could select three verts and hit "f" to make a face.

william_b
Newbie
Posts: 10
Permalink
Post Re: ZebraTrace - another way to generate SVGs
on: December 23, 2014, 19:55
Quote

I have done the first 8 steps. Resulting in the following:
http://i.imgur.com/YVP8X2x.png

It doesn't seem correct to me (or I have done something wrong). The mesh looks to small.
And btw, how do I export to svg?

Thank you in advance.

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: December 24, 2014, 13:38
Quote

What's shown in your image is correct, but yes, it probably has too many polygons for your needs. In ZebraTRACE, there's a setting for "quality" under "Advanced" - if you reduced quality the final result of this whole process will be less polygons (IIRC).

Because of frantic Christmas activity, I can't write a detailed explanation of Blender's Freestyle renderer (that's how you get SVGs out of Blender). There's an old thread about it, but it's out of date (though it should still work).
http://www.polargraph.co.uk/forum/polargraphs-group2/drawing-techniques-forum4/render-3d-meshes-to-svg-using-blender-and-freestyle-thread213.0/
The latest version of Blender has everything you need built in, but it's only a release candidate at the moment, and I haven't had time to try it out:
http://download.blender.org/release/Blender2.73/
I'll give it a go after Christmas, and hopefully have time to write about it.

william_b
Newbie
Posts: 10
Permalink
Post Re: ZebraTrace - another way to generate SVGs
on: December 24, 2014, 16:47
Quote

When I export with 2.73, I only get the contour. Do I have to enable something to get the mesh?

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: December 26, 2014, 22:05
Quote

The default settings for Freestyle will only add lines for the silhouette and "creases" where the angle of the crease is greater than or equal to a set threshold. Since the SVG you've imported is perfectly flat, there are no creases within the default threshold. There are a couple ways to address this:

Option 1: In the Render Layers panel, under Freestyle, in the "Edge Detection Options:" category, change the crease slider to 180 degrees. Now all the edges will be drawn by Freestyle, because they are within the 180 degree threshold.

OR

Option 2: While in edit mode, select all the edges of the SVG object you've meshified, then hit cntrl-e, and select "Mark Freestyle Edge". In the Render Layers panel, under Freestyle, you should have "Lineset" selected, and below, in the "Edge Types" category, put a check mark next to "Edge Mark". Now all the edges you've marked will be rendered.

Option 2, while slightly more complicated, allows you to directly pick and choose which edges will be rendered by marking and unmarking them. If you don't care about that level of control, option 1 is easiest.

maykosalom-
ao
Newbie
Posts: 5
Permalink
Post Re: ZebraTrace - another way to generate SVGs
on: April 5, 2017, 19:58
Quote

Kongorilla very good these effects pity that I am not able to do.
I could make a video explaining how to do it.
Thank you very much in advance!

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: April 5, 2017, 20:51
Quote

What part are you having trouble with?

(Please keep in mind I haven't had to think about this subject in over 2 years, and haven't used this technique since 2013. I'm going to be a bit hazy about the details).

maykosalom-
ao
Newbie
Posts: 5
Permalink
Post Re: ZebraTrace - another way to generate SVGs
on: April 5, 2017, 22:33
Quote

I am not able to use the polygon effect, and also do not know how to export the images after having done in the blender.
In your little tutorial I went to:
6. "cntrl-j" to join all the curves. OK
7. go to "Object / Convert to> mesh from Curve" (or "Alt-C"> Mesh from Curve). OK
8. "tab" into edit mode to view polygons >> at this step I can not find the option you are talking about.

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: April 5, 2017, 23:36
Quote

Step 8 switches you from 'Object Mode' to 'Edit Mode', in which you can manipulate the selected object's vertices, edges, and faces. With the your object selected, hit 'Tab' on your keyboard. Alternately, you can enter edit mode by clicking on the pull-down menu that (in the default layout) is just below the 3D viewport.

Image

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: ZebraTrace - another way to generate SVGs
on: April 5, 2017, 23:40
Quote

To render out the edges, you need to use the Freestyle renderer, and set it to export SVGs. That's a deep subject with many parameters. I'll refer you to the manual:
https://docs.blender.org/manual/en/dev/render/freestyle/index.html

edit: Looking over this thread again, I see I covered the basic Freestyle settings that need to be changed from the defaults (see the post just above yours).

Pages: [1] 2
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.036 seconds.