Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Render 3D meshes to SVG using Blender and Freestyle
kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Render 3D meshes to SVG using Blender and Freestyle
on: June 4, 2013, 07:56
Quote

I've added six photos to my Flickr stream showing off some 3D mesh drawings. Basically, you can load or make a mesh in Blender, then use the newly integrated Freestyle renderer to make the line segments, which a script exports as an SVG file.

The script:
http://www.geocities.jp/blenderyard/freestyle/svgwriter_b26/README.html

To see the photos, start here:
http://flic.kr/p/eCtQp9

I made the drawings months ago, but have been waiting for Freestyle to be added to the "main trunk" of Blender before sharing, thinking it would be easier to make a tutorial. Well, it's in Blender 2.67 now, and I've read the export script is being considered for trunk as well (which would make things even easier), but I'm just too swamped at the moment to make a huge how-to post. Hopefully the few Blenderheads reading this will be able to put the pieces together.

AndyB
Beginner
Posts: 28
Permalink
AndyB
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 7, 2013, 15:18
Quote

Mother of god, that is mental! Fantastic!

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 8, 2013, 17:56
Quote

Yes it totally is ace - I love that there's a workflow for this. It's a physical machine with a human's pen, controlled by a computer, drawing a human-readable rendering of a digital model of a physical thing. I love it. Thanks Kong for letting us know - great results too!

polargraph-
er
Newbie
Posts: 5
Permalink
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 11, 2013, 10:37
Quote

Simply Awesome! had to emulate for myself.. (my attempt..)

http://www.flickr.com/photos/95787138@N03/9009999626/in/pool-2164129@N25
Completely new to blender until this weekend - thus quickly came unstuck with creating a similar looking but happier vector file! The Makehuman mesh simply crashed blender - too many vertices and too little memory!! so a basic head mesh was used. The solid wireframe addon in blender created a 3d effect when exported into the polargraph via the freestyle script. So a little advise is sought after.. how did you achieve the 2d affect from a 3d mesh? and single lines?
Although i'm no blenderhead i put a few pieces together just need help now..cheers kongorilla .. the polargrapher.

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 11, 2013, 18:43
Quote

@polargrapher - It might not have been the look you were after, but I like that solid wireframe drawing of yours very much. To make the drawing more like mine is actually easier than what you did: next time don't use the solid wireframe addon. That's about it. Freestyle will take care of the rest.

edit: Getting anything useful out of Blender during your first weekend of fiddling with it automatically puts you in the "extremely gifted" category. That the drawing turned out so well is only confirmation.

polargraph-
er
Newbie
Posts: 5
Permalink
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 12, 2013, 16:00
Quote

Results can be eye popping when advice is given and tried out! Finally put the last pieces together in blender, thanks to your original inspirational 'annoyed drawing' (which is simply awesome ) and of course big thanks to Sandy for making this possible..(many will agree i'm sure..)

http://www.flickr.com/photos/95787138@N03/9026176912/

For those new blenderheads like myself.. follow the original guidance in kongorilla's top post and for what i overlooked in finally achieving 'eye popping' results refer too..

http://wiki.blender.org/index.php/User:Flokkievids/Freestyle/LineSets

cheers kongorilla & sn..the polargrapher.

AndyB
Beginner
Posts: 28
Permalink
AndyB
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 13, 2013, 13:43
Quote

Guys,
can you pin-point me to what render settings I need to enable/disable in blender? I can render a solid object into an svg just fine, but it refuses to output meshed objects. The post render window shows a meshed object, but there's no output. Hmm. Should it be set to 'wire' under the materials tab?

polargraph-
er
Newbie
Posts: 5
Permalink
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 13, 2013, 14:31
Quote

@AndyB with nearly a week of blender experience i'll try too assist - maybe can even help me!

Assuming you've follow'd kongorilla's original post - scripts loaded in text editor too?

so does your solid object svg show only outer (freestyle) lines of the object in question? if so you need to mark the freestyle edges now - see above wiki.blender.org webpage
To achieve this - highlight your object.. then change from object mode to edit mode. Then Ctrl E - mark freestyle edge. Hope this assists - look foward in seeing your 'mother of god, eye popping results!'

AndyB
Beginner
Posts: 28
Permalink
AndyB
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 13, 2013, 14:59
Quote

Hey thanks,

Have everything setup as described, script loaded in text editor and all. Hmm, your trick didn't do much, still getting a image to vector traced type output (contours without the mesh). I'll tinker a bit around, sure is a lot of settings in blender. Thanks for the tip.

EDIT: Ah, got it! Figured I actually had to click drag mark the object/polygons before CTRL-E and mark freestyle edge.

polargraph-
er
Newbie
Posts: 5
Permalink
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 13, 2013, 15:18
Quote

@AndyB - when you mark freestyle edges make sure the the object is in wireframe first and highlighted - (you'll notice the green highlight under the orange when freestyle edges are marked). the polargrapher

polargraph-
er
Newbie
Posts: 5
Permalink
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 13, 2013, 15:35
Quote

Too make sure all your freestyle lines are 'perfectly tight' when you render your object - change back to parameter editor mode from python scripting under render layers option,
then deselect all options (contour, silhouette etc) but leave the edge mark on - in the freestyle line set dropdown box.
(this will elimnate any loose lines) then change back to python scripting mode for rendering.
Cheers kongorilla for original post the polargrapher.

AndyB
Beginner
Posts: 28
Permalink
AndyB
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: June 13, 2013, 22:08
Quote

Yep, figured that out after a couple of tries, thanks. And yeah, cheers kongorilla. This is great stuff, so much to explore. And cheers sandy for this quirky awesome machine that have us finding so many interesting ways of making a simple pen drawing 🙂

Visualbyte
Beginner
Posts: 33
Permalink
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: March 4, 2015, 10:30
Quote

The same results can be achieved in Maya.

krummrey
Advanced
Posts: 66
Permalink
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: April 4, 2016, 11:13
Quote

Is there a tutorial, that will go into detail what all the options do? I've found a few general tutorials to get me going. Now I want o get the most of it. 🙂
There are still a few areas where I'd like to have more lines rendered. Changing the crease angle has no effect right now.
Other than that freestyle is awesome!

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Render 3D meshes to SVG using Blender and Freestyle
on: April 4, 2016, 21:29
Quote

Have you gone over the Freestyle section in the Blender manual?
https://www.blender.org/manual/render/freestyle/index.html

Setting the crease angle to 180 should draw all edges if you have "Crease" selected as an edge type. If you'd like to choose (by hand) some edges to be drawn, select them, hit Ctrl-e, click "Mark Freestyle Edge" and make sure to add "Edge Mark" to your edge types.

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