It is currently Fri Apr 26, 2024 5:27 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 16 posts ] 
Author Message
 Post subject: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 4:22 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
GIMP Version: 2.8.18
Operating System: Windows
GIMP Experience: Basic Level

List any relevant plug-ins or scripts:
my filter Mosaic_Lyle_Style

List any ERROR messages you received:
no error, simply wrong transparency values



After a while, stimulated by other Gimp chatters, I wanted to re-visit that filter an create an outcome.
I got a very strange outcome where the pieces of the mosaic did not appear correctly.
I started debugging the filter stopping at a point where the texture for the pieces was prepared, and I noticed that the "points" created by stroking (the filter uses a created brush to stroke using points and not lines) had different alpha values: some 32, some 60 or so, other close to 255.
In the PDB it is written that the gimp-edit-stroke and correlated ...stroke-vectors is influenced (only) by the foreground colour, which was set to (0,0,0,255), thus pure black w/o transparency.
Any idea?
(for those who like to enter into the code, the code is available under Gimp Scripts Plug-ins)

BTW, to succeed in creating a mosaic look, I had to add a trick to scan all pixels of the texture layer and reset the transparency to 255.
Did any other user of my filter have similar problems? If so, I have to post an amended version, but before I would like to understand where the cause of this strange Alpha values lies

_________________
"Where am I ?"


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 8:20 am  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
Link to plugin code?

_________________
Image


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 9:09 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
http://gimpscripts.com/2016/02/diego-mosaic-lyle-style/
download the update
Attachment:
DIEGO_MOSAIC_Lyle_Style.7z [5.07 KiB]
Downloaded 158 times

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 9:58 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
I've always got good results with this filter, Dinasset. Is this last filter you posted, the one you have mended?

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:00 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I guess I discovered the cause.
In setting the characteristics of the brush, I didn't set among the others the "hardness" (likely because I was duplicating "2. Hardness 100" std brush and I wrongly supposed that the duplication did it for me).
And it could be that -for some previous online adjustment for other tests- I had modified the "opacity" of the active brush.
So I presume that the newly created brush this morning assumed the active opacity.
And this explain also why up to now I didn't have that problem (very likely I keep the default opacity to 100 in 99.9% of my plays).

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:00 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I guess I discovered the cause.
In setting the characteristics of the brush, I didn't set among the others the "hardness" (likely because I was duplicating "2. Hardness 100" std brush and I wrongly supposed that the duplication did it for me).
And it could be that -for some previous online adjustment for other tests- I had modified the "opacity" of the active brush.
So I presume that the newly created brush this morning assumed the active opacity.
And this explain also why up to now I didn't have that problem (very likely I keep the default opacity to 100 in 99.9% of my plays).

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:02 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Issabella, no it's the official one, for Ofnuts.
Thanks for your input.
Now please double-check my hypothesis just written above.
Set opacity of your Paintbrush to something like 30, instead of the std 100.
After that rerun the filter and see whether you get wrong results.
If so, my guess is correct.

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:16 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
I see it alright. I set the brush at opacity 30%


Attachments:
A-Festivo-Opacity 30.jpg
A-Festivo-Opacity 30.jpg [ 1.36 MiB | Viewed 2618 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:18 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
you set opacity at 30 BEFORE running the filter?

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:19 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
Yes I did.

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:20 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
so, that behaviour is only on my PC...

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:21 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks Issabella for your tests

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:27 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
double-checked me too:
restored the official version (w/o hardness)
called the filter having std opacity at 100: OK as expected
called the filter having opacity set at 30: still OK! what did happen this morning??? (and I tried more than once, there must be some other environment variable in the play)

_________________
"Where am I ?"


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sat Sep 24, 2016 10:32 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
We all can continue testing it with different opacities and if strange behaviour, tell you. No problem for now :bigthup

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sun Sep 25, 2016 6:25 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Set opacity to 30% and ran the filter default settings.
Image
Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: strange behaviour of gimp_edit_stroke / ..._stroke_vectors
PostPosted: Sun Sep 25, 2016 6:30 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks Rod.
What happened to me Yesterday morning is still a "mystery" for me...

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Edit stroke made by pencil tool

3

No new posts Stroke: how to remove space between test & stroke

3

No new posts Attachment(s) stroke selection/stroke path

2

No new posts Attachment(s) Is there a script for doing Stroke outside selection?

4

No new posts Attachment(s) stroke path with pattern

26



* Login  



Powered by phpBB3 © phpBB Group