It is currently Sat Jul 06, 2024 7:27 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Any coder in "C" around here?
PostPosted: Wed Jul 05, 2017 1:44 am  (#1) 
Offline
GimpChat Member
User avatar

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

List any relevant plug-ins or scripts:
Gimp Render/Pattern/Qbist

List any ERROR messages you received:
no possibility to use it from inside a (.py) filter



If there is some C expert and if (s)he likes to take a challenge, it could be interesting to add to the mentioned Gimp filter (Qbist) the possibility of being called from inside a filter, using the PDB interface, to generate random QBist patterns without the necessity to pre-load a set of generated patterns.
Thanks.

_________________
"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: Any coder in "C" around here?
PostPosted: Wed Jul 05, 2017 5:59 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Hi dinasset.
I noticed the qbist filter is implemented from gimp-gap in the 'Filter all layers' menu.
So probably using the PDB interface. It works on one layer or many layers.

Image


Top
 Post subject: Re: Any coder in "C" around here?
PostPosted: Wed Jul 05, 2017 6:27 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Yes, but it's the user's clicking that generates random patterns. As a far as I can tell you always get the same initial pattern once Gimp is started.

_________________
Image


Top
 Post subject: Re: Any coder in "C" around here?
PostPosted: Wed Jul 05, 2017 10:09 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Quote:
it's the user's clicking that generates random patterns

Your right ofnuts. Looking at qbist.c
https://github.com/piksels-and-lines-orchestra/gimp/blob/master/plug-ins/common/qbist.c#L1
it seems the main formula and 8 variations are coded into the plugin.
I guess re-writing qbist.c to be totally random is not a possibility because the new version would have to be distributed with the proposed plugin. Maybe including the 'random genetic formula' from qbist.c into the new plugin would be a solution? I'm sure Python can either load or include c code.


Top
 Post subject: Re: Any coder in "C" around here?
PostPosted: Thu Jul 06, 2017 1:55 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
Tas_mania wrote:
Quote:
it's the user's clicking that generates random patterns

Your right ofnuts. Looking at qbist.c
https://github.com/piksels-and-lines-orchestra/gimp/blob/master/plug-ins/common/qbist.c#L1
it seems the main formula and 8 variations are coded into the plugin.
I guess re-writing qbist.c to be totally random is not a possibility because the new version would have to be distributed with the proposed plugin. Maybe including the 'random genetic formula' from qbist.c into the new plugin would be a solution? I'm sure Python can either load or include c code.


Yes, you can write a Python module in C, but in this case that would be more complicated than distributing a "qbist-with-api" plugin together with the script.

_________________
Image


Top
 Post subject: Re: Any coder in "C" around here?
PostPosted: Thu Jul 06, 2017 4:56 am  (#6) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7746
Location: On the other side of this screen
Like the qbist pattern. Look forward to see if you can make anything with it.

_________________


Top
 Post subject: Re: Any coder in "C" around here?
PostPosted: Thu Jul 06, 2017 5:30 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
The subject of my query is exactly that one, Sallyanne.
I have created a filter (my last ancillary) which makes use of QBist patterns, but the user has to have a set of pre-created patterns (which I attached also),

_________________
"Where am I ?"


Top
 Post subject: Re: Any coder in "C" around here?
PostPosted: Sat Jul 08, 2017 9:55 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
The only member of Gimp Chat i have ever seen mess with C programing is/was Scott (Tux).
When he added scrolling to script-fu.exe plug-in. =)

_________________
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: Any coder in "C" around here?
PostPosted: Sat Jul 08, 2017 11:16 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks Rod,
Unfortunately he is no more active now, unless....he likes to take this challenge!

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2



* Login  



Powered by phpBB3 © phpBB Group