1
\$\begingroup\$

I'm working on drawing lines in Unity, I've already implemented smooth line drawing with LineRenderer. But I need lines have effect of fountain pen or gel ink pen, just as the picture showed below, I have no idea about this, may shaders make the effect ?can anyone help?

Now I can draw common lines with Unity:

Common Lines by Unity

Effect needed:

By Paper app

\$\endgroup\$
  • \$\begingroup\$ Why did you tag it with shaders? You question does not mention them. And please read the tag description for graphics. It's very broad and not really helping users find your question. \$\endgroup\$ – Vaillancourt Nov 3 '17 at 23:58
  • \$\begingroup\$ @AlexandreVaillancourt, maybe we need shaders to achieve this effect, any problem? \$\endgroup\$ – Suge Nov 4 '17 at 0:00
  • \$\begingroup\$ Well the thing is, you don't really know. The question as it is written now is not about shaders, it's about graphics-effects in unity. If you specifically want a solution that relies on shaders, then I suggest you edit the question and add it to the text. Who knows, maybe the best answer will not rely on shaders. \$\endgroup\$ – Vaillancourt Nov 4 '17 at 0:04
  • \$\begingroup\$ @AlexandreVaillancourt Are you an Unity user? I think in this issue, when we talking about graphic effect, shaders are already in the subject. Well, I will mention it directly in the post. \$\endgroup\$ – Suge Nov 4 '17 at 0:10
  • \$\begingroup\$ Sure, you just have to be aware of the XY Problem :) \$\endgroup\$ – Vaillancourt Nov 4 '17 at 0:14
1
\$\begingroup\$

If you can find areas where the derivative is reasonably high (direction changes quickly) and make this thicker, and then slowly reduce thickness until you reach another, that might work.

No idea how to implements this in unity , but thats’s my General thought.

\$\endgroup\$

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.