# Render a wireframe with equal thickness in Cycles?

Is there a way to make a render with freestyle in cycles and use it as a wireframe?

No matter what technique I use, blender always gives me a stretched wireframe. And by that I mean the wireframe is not equal because the thickness of the wires depends on the scaling of the polygons (if you use the image editor for example).

Is there a way to make a render with equal wires like freestyle in the blender internal render engine does?

• – gandalf3 May 10 '14 at 23:29

# Update

As of this commit (will be in 2.72), freestyle is now natively supported in cycles.

This means that you can set up the freestyle lines how you would in BI, then render them straight in cycles:

1. Select your object and enter edit mode (Tab)

2. Mark everything as a freestyle edge by selecting everything (A) and pressing CtrlE> Mark Freestyle edge:

3. Enable Freestyle in Properties editor > Render settings:

4. Enable Edge marks in Properties editor > Render layers:

5. Render.

You can use two scenes, one which will render the lines in freestyle, and one which will render the scene in cycles.

1. Create a linked copy of the new scene by pressing the + icon in the info header and selecting Link Objects:

This way moving objects around in one scene will update them in the other scene too.

2. Enable freestyle in Render settings > Freestyle, and adjust the line thickness as desired.

3. For each object, enter edit mode (Tab), select all (A), and press CtrlE>Mark Freestyle Edge:

4. Disable everything except Freestyle in Properties > Render layers > Layer:

5. In the compositor (be aware that nodes added to the compositor are scene-specific), add a new renderlayer node and set the scene to your BI scene:

6. Combine with an alpha over node:

When you render, both scenes will be automatically rendered and combined.

Example .blend

• is there any way to see the result in cycles rendered viewport? Only when I actually render the scene can the freestyle lines be seen. – rob Oct 14 '14 at 11:38
• @rob Freestyle isn't supported in cycles viewport render yet :/ – gandalf3 Oct 14 '14 at 18:24
• Is the Cycles workflow still supported in v2.78? Just tried it (all the way up here in the year 2018) but can't get the lines to render. Wondering if I'm missing a step... – Alex Aug 27 '18 at 23:51
• Just realized the Freestyle lines are calculated after the rendering is done, and that they can take a while to appear. Problem solved! Thanks so much for posting this answer—a 6-year span between then and now detracts nothing from its value to me :D – Alex Aug 28 '18 at 0:03

One way is the wireframe modifier:

1. Add a wireframe modifier, then disable Replace Original and set the Material Offset to 1 (0 uses the first slot, 1 uses the second, etc.).

Also make sure Relative thickness is disabled

2. Add a material for the wires in the second material slot of the object with the modifier by pressing the plus icon:

Result:

• I know that aproach but I tend not to use it, because I want the wires to be on of the object like a shadeless texture, but thanks anyway. – Vladimir May 10 '14 at 22:54