Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can a Custom Pencil Brush include Transparency?
#6
Thank you to everyone who posted.

I brought this up on the developer mail list. It's been acknowledged as a known issue that is sort of just sitting there with a big question mark.  I asked where I would need to look to modify the code to support transparency with the pencil tool, and I got helpful directions.  Here's the two responses I got that were most helpful:

Quote:Right, the pencil tool lumps together both binary transparency and
pixel-grid alignment, which are really two independent things.  It has
come up before, and I agree that being able to control these separately
would be useful.  It's one of those simple features where generality and
consistency get in the way:  Should we add this to the pencil tool, or
the paintbrush tool?  What about the other paint tools, which already
suffer from an annoying lack of consistency?  Should we just merge the
pencil and paintbrush tools?  Or, if this separation is convenient, why
not generalize this and allow creating new tools from arbitrary tool
presets, etc.?  It's a slippery slope   Ultimately, though, I agree
that it's a useful feature.
- Ell


And how to modify the pencil tool:
Quote:the regular paintbrush and the pencil tool are both using the
gimppaintcore for painting the brushes. The difference between pencil
and paintbrush is controlled by the "brush mode" property of the paint
options. If it is == GIMP_BRUSH_HARD then the pencil behaviour is used.

In app/paint/gimpbrushcore.c this is used to request the "solidified"
variant of the brush, in app/paint/gimppaintcore.c it is used to round
the coordinates.

If you want to just change it in your personal copy without changes to
the UI it seems to be fairly trivial. If you want to offer a UI it might
be a bit trickier, but it should be doable.
- Simon

Also, Blighty said this:


Quote:No, that is not correct.
You can have
An RGB brush with anti-aliased edges with or without transparency
An RGB pencil without anti-aliased edges with or without transparency

This difference is the transition from the transparent to the non-transparent areas.

Where is this option to use transparency with the RGB pencil?

The developer list acknowledged there is no way to do it, unless the conversation with them was a miscommunication.

I can't find any option anywhere in the UI that lets you use transparency on an RGB pencil.

Wait.. Ok i think I get what you're saying. When you said "This difference is the transition from the transparent to the non-transparent areas.":
Are you meaning to say that the brush will allow graduated transparency (shades of transparency) between full opaque and full transparency.... while the pencil will not?
If that's what you're saying, then that's precisely what I'm trying to point out is the problem. There's no way to do graduated transparency without anti-aliasing as the tool is currently implemented.
Reply


Messages In This Thread
RE: Can a Custom Pencil Brush include Transparency? - by pha3z - 05-25-2019, 03:07 AM

Forum Jump: