What would be the best way to draw basic strokes using the pressure sensing from the wacom tablet api? Before I was using JInput, I drew lines between each call of mouseDragged from a MouseListener, which seems like the most crude and basic way of doing it. So how would I do this that would be able to incorporate the pressure variable and also make the strokes smoother?
IIRC, paint programs like paint shop pro and GIMP make the line darker or lighter, and the edges blended, depending on the tool thats used, that way, a light stroke across the table with a pencil like tool will produce a very light grey line, the line may also fade at the edges into the paper colour. Pressing hard and moving it across the tablet produces an almost black line, the edges may become more well defined. Using a spray can tool, you would get more or less spray depending on the pressure.
I’m not an artists though, and I’ve not really explored a huge amount, I just had a quick play when I got the tablet for the work for JInput
HTH
Endolf
You can change:
- thickness
- grittiness (through some form of distortion)
- intensity
- other tints
There are so many different variables that can give more life to the drawing by using the pressure, and the best effect is achieved when they are combined. When you are drawing your tools will each react differently, pencils become (a) darker, (b) thicker, and © take longer to erase! A fountain pen gets thicker and and leaves a deeper pit in the paper! Think like that and you will be able to give your artists a quality tool.
Thanks for the ideas guys. I’m going to continue this thread in the Newless Clubies with more of a focus on the actual drawing, which doesn’t relate as much to JInput, and add pressure support later.