Simulating brush strokes for painting application

Posted by DrRobot on Stack Overflow See other posts from Stack Overflow or by DrRobot
Published on 2010-06-18T02:05:58Z Indexed on 2010/06/18 2:13 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

I'm trying to write an application that can be used to create pictures that look like paintings using simulated brush strokes. Are there any good sources for simple ways of simulating brush strokes? For example, given a list of mouse positions that the user has dragged the mouse through, a brush width and a brush texture, how do I determine what to draw to the canvas?

I've tried angling the brush texture in the direction of the mouse movement and dabbing several brush texture images along the path, but it doesn't look great. I think I'm missing something where the brush texture should shrink and grow on corners.

Any simple to follow links would be appreciated. I've found complex academic papers on simulating e.g. oil paints but I just want a basic algorithm to use that produces OK results if possible.

© Stack Overflow or respective owner

Related posts about c

    Related posts about opengl