Note that there are some explanatory texts on larger screens.

plurals
  1. POPhotoshop-style brushes in OpenGL
    text
    copied!<p>I am trying to implement free-hand sketching (it should look like a pencil). I did some research and I'm surprised there is so little info about this on the internet. The best information I got was by drawing in Photoshop and observing the result. I think Photoshop works something similar like this:</p> <p>1) Each brush has its own pixel map, telling what opacity has each pixel 2) Settings (like weight, color etc.) apply to this pixel map before drawing 3) When pressing the mouse, Photoshop starts slowly filling the pixels under the pointer according to the pixel map given opacities 4) When drawing fast (so that the distance between two mouse frames is bigger than the fill ratio), Photoshop somehow interpolates the brush so that it looks homogeneous. I am not sure, but I think it also applies some kind of transformations to the pattern, because the line does not look regular.</p> <p>Another effect I would like to implement is the line getting thinner before the pencil lifts (based on the speed of the pencil) - just as in real life.</p> <p>I will appreciate any hints about: 1) How precisely Photoshop brushes (or a similar tool) work 2) Any open-source tools which do something similar 3) Keywords to look for (apparently I am googling with the wrong words)</p> <p>Here a link I found in the research process (unfortunately closed source): <a href="http://www.youtube.com/watch?v=3RPphJxxscY" rel="nofollow noreferrer">http://www.youtube.com/watch?v=3RPphJxxscY</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload