3
$\begingroup$

I've got a simple question that likely has a very complicated answer.

Simple enough, I need to know how to make these freestyle lines completely sharp. I'm trying to make pixel art. By default, freestyle has some hefty anti aliasing. I don't know which settings to change in order to make the lines totally solid, and I haven't been able to figure it out.

anti-aliased freestyle lines

$\endgroup$
  • $\begingroup$ I think AA is a property of the renderer rather than freestyle? Have you tried rendering with samples set to 1? $\endgroup$ – hekete Aug 18 at 7:17
  • $\begingroup$ One option could be to pixellate a higher resolution render using the compositor. $\endgroup$ – Tavi Kohn Aug 18 at 11:00
1
$\begingroup$

Seems you can't switch off antialiasing for Freestyle, and you'd be better probably with separating the rendering twice - once with freestyle but with layer material override set to emission white. Then you can use thresholds in the compositor to Make the freestyle pass completely black/ transparent (use math node - larger than). It seems the render itself is pixelated enough, so there won't be a problem.

Read more about View layers here: https://docs.blender.org/manual/en/latest/render/layers/layers.html#view-layers

And material override here:

https://docs.blender.org/manual/en/latest/render/layers/layers.html#override

Find material override here:

$\endgroup$
  • $\begingroup$ It looks like material override isn't available in the new blender 2.8, I did a lot of digging and just couldn't find it. I did manage to get the render layers separated though. $\endgroup$ – Humble Hat Aug 21 at 6:43
  • $\begingroup$ it's there, just tested and added a picture here too. $\endgroup$ – Vilém Duha Aug 23 at 12:01
  • $\begingroup$ OH! Gotta be in cycles render. The option isn't available for eevee. Oh no :c I'll have to remake all of my materials, wont I? $\endgroup$ – Humble Hat Aug 26 at 16:06
1
$\begingroup$

I figured it out!

Set the sampling to 1, and it will get the effect extremely close, I might have to touch these up a little bit in a 2D art tool, but the effort will be minimal.

enter image description here

$\endgroup$
  • $\begingroup$ This is a great way to make 2d pixel art. $\endgroup$ – Millard Aug 26 at 19:06

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.