It is currently Sat Jul 20, 2024 8:30 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: New Matmap Filter: Fascinator
PostPosted: Fri Jun 29, 2012 7:41 am  (#1) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Attachment:
fascinator.gif
fascinator.gif [ 135.72 KiB | Viewed 3017 times ]


Generates patterns just for fun but could be used in other other compositions or as image frames. The output is based on the math of a circle but is surprisingly varied.

Recommend tiny changes to the input values, hope you have fun playing with it (and post any good patterns you find with settings).

CODE:

#Fascinator V0.0
#Written by step7 (2012)
#Pattern renderer
#
#Pick a colour then just play with the settings.
#Before going mad with the sliders, try some low
#value factors and try adjusting the focus
#Contact me about the filter on Gimp Chat Forum or Mathmap Google Group
#
pixel filter fascinator(pixel image in,
int cR:0-255 (127),int cG:0-255 (127),int cB:0-255 (127),
int yfactor:1-2000 (1),int xfactor:1-2000 (1),
float bloat:0-10 (0.8), int focus:0-500 (10),
float phase:-3.142-3.142 (0), float zoom:0-2 (1))
out = in(xy * zoom);
zx = (0.1 * bloat) * X * cos(a*yfactor+phase);
zy = (0.1 * bloat) * X * sin(a*xfactor+phase);
zx = floor((zx)+(0.5*sign(zx)));
zy = floor((zy)+(0.5*sign(zy)));
if inintv(floor((x*zoom)+(0.5*sign(x))),zx-focus,zx+focus) && inintv(floor((y*zoom)+(0.5*sign(y))),zy-focus,zy+focus) then
out = rgbaColor(cR/255,cG/255,cB/255,1);
end;
out
end


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: New Matmap Filter: Fascinator
PostPosted: Fri Jun 29, 2012 8:07 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
Looks interesting. I was wondering if it would be possible for those who create these filters to make them into MM files and zip them and attach them. The last time I tried to copy one of these something went wrong and I can't figure it out. It would be easier to just be able to download the file.


Top
 Post subject: Re: New Matmap Filter: Fascinator
PostPosted: Fri Jun 29, 2012 8:25 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
Strange. This one worked OK for me.

Image


Top
 Post subject: Re: New Matmap Filter: Fascinator
PostPosted: Fri Jun 29, 2012 8:51 am  (#4) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
The Mathmap expression editor can be really twitchy, glad you got it working. Once you've saved it as an MM you can drag the filter into composer and try stacking them so the output of the first is wired to the input of the second and so on.

Here's two different coloured Fascinators as a backdrop..

Attachment:
example.jpg
example.jpg [ 87.12 KiB | Viewed 2994 times ]


Four fascinators chained to create the daisy, a bit of twirl and a recolour in Gimp for the storm..

Attachment:
example2.png
example2.png [ 54.57 KiB | Viewed 2983 times ]


Right enough playing, time to go drink some beer :clap


Top
 Post subject: Re: New Matmap Filter: Fascinator
PostPosted: Fri Jun 29, 2012 10:39 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
It works well for me.
Thank Step7.
But I second the motion:
Erisian wrote:
Looks interesting. I was wondering if it would be possible for those who create these filters to make them into MM files and zip them and attach them. The last time I tried to copy one of these something went wrong and I can't figure it out. It would be easier to just be able to download the file.

It will be much easier - and eliminate errors copy-paste-save.
for example: http://www.gimpchat.com/viewtopic.php?f=9&t=4602#p57330
it does not work for me.
Please upload files to download.

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: New Matmap Filter: Fascinator
PostPosted: Fri Jun 29, 2012 10:53 am  (#6) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
You need to save the script you quoted (not posted by me) as an .MMC. I'll see what I can do with uploading.


Top
 Post subject: Re: New Matmap Filter: Fascinator
PostPosted: Sun Jul 01, 2012 1:12 pm  (#7) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
MareroQ wrote:

But I second the motion:

Erisian wrote:
Looks interesting. I was wondering if it would be possible for those who create these filters to make them into MM files and zip them and attach them. The last time I tried to copy one of these something went wrong and I can't figure it out. It would be easier to just be able to download the file.

It will be much easier - and eliminate errors copy-paste-save.
for example: http://www.gimpchat.com/viewtopic.php?f=9&t=4602#p57330
it does not work for me.
Please upload files to download.
[/quote]

I don't second the motion ...come on ! copy and paste is not a difficult operation have to save ,zip and upload is more a pain..and will be a pain also from the other side, download, unzip, move the file in the expression folder instead than just open the mathmap editor tab and paste there


the code you quoted didn't work for a error in the code, zip it would have not fixed

I understand the point but i found much more helpful 2 commented screenshots so :

HOW TO COPY - PASTE, TEST, CORRECT IF NEEDED,AND SAVE A MM script

1 ) select and copy the text of the filter

2) open gimp, open also a image, any you wish, and open mathmap from
Filters/Generic/Mathmap/ mathmap

note mathmap/mathmap don't use any other submenu (i would suggest to never use the other mathmap submenu, they offer no advantages respect to the main one but give severe limitations )

now in mathmap click the expression tab, to open it...you will see some text in just ...delete it

3)

paste

Image

Image

If you know that a filter was working (as in the example the Odinic version of step7 code) usually the error is something really simple to fix ,if you know also where is the error, and MM will tell you where

in this case you may see that all the first lines of the code start with # except the first...reading (they do not explode if read ) you may notice are in plain English

so you may guess that comment lines start with # and that the error in the first line could not be a "error in the code" because that is not a code, ..the error is a lost # in the first line

so just add a # at the very beginning will fix...you may correct directly in the editor and click again preview to test

SAVE

well if the filter doesn't give error, or you fixed now you may just use the SAVE AS button
Don't use "Save" (except if you want intentionally overwrite some filter ), only "Save As "

well.... its' all folks :paint

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: New Matmap Filter: Fascinator
PostPosted: Sun Jul 01, 2012 2:55 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7316
Location: Göteborg at last!
I have to disagree with you PC. If I make a mistake copying the code I cannot know what I've done wrong because I'm not a coder or scriptwriter. I've had scripts that fail when others have been successful with them so the script is not at fault. What's so hard about zipping the mm file and attaching it to a post? It would make life so much easier for most of us. :)


Top
 Post subject: Re: New Matmap Filter: Fascinator
PostPosted: Sun Jul 01, 2012 7:25 pm  (#9) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Quote:
I have to disagree with you PC. If I make a mistake copying the code I cannot know what I've done wrong because I'm not a coder or scriptwriter. I've had scripts that fail when others have been successful with them so the script is not at fault. What's so hard about zipping the mm file and attaching it to a post? It would make life so much easier for most of us.


the only mistake could be done with copy and paste is miss a line or a word.
and mathmap will advice of the error and even tell where is (did you seen the last screenshot ?)

Save from the mathmap editor is really easy and copy and paste it is not so difficult

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) cli345's cartoon filter as a native GEGL Filter.

10

No new posts Attachment(s) Carve.. filter

3

No new posts Attachment(s) Made with new filter in G'mic

23

No new posts Attachment(s) what filter might help with this image?

7

No new posts Attachment(s) My last Aquarelle filter

21



* Login  



Powered by phpBB3 © phpBB Group