It is currently Fri Apr 26, 2024 9:39 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 96 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
 Post subject: The Droste 10 filter is coming to G'MIC
PostPosted: Fri Jan 08, 2016 9:17 pm  (#1) 
Offline
GimpChat Member

Joined: Dec 19, 2015
Posts: 46
I've been a cryptic since I joined the group a few weeks ago but I'm finally at the point that I am announcing that I have converted the MATHMAP Droste to G'MIC using the mathematical parser. I guess it has been a concern that there will be a version of GIMP that can't run MATHMAP an then we will be without the spiraling Droste effect.

I used the so called "Droste 10" source hat includes all the features that are typically shown in the MATHMAP Droste tutorials and videos. The source was originally develop by people such as "breic" and Josh Sommers many years ago. My small part was converting the MATHMAP coding and coordinate mapping to G'MIC's mathematical parser (and a whole load of expanding out complex math into regular math).

As I said it's the full Droste 10 source so it has support for multiple strands, "hyperdroste" fractal effects and the all important grid. I won't claim that it is pixel perfect but it certainly should be close. The only thing that isn't implemented is the antialiasing/supersampling that comes "free" on all MATHMAP filters. I'm up for discussion on the best way to anti-alias.

In terms of speed it works as fast if not faster than the MATHMAP version and it should use all the engine cores on your machine instead of just one for MATHMAP (so I hear).

The only question I have is how do I move it out into the community? I have it in my user.gmic file but how do I distribute it to everyone else. It's about 400+ lines with some comments and spacing. I have some real quick images I did with it, below:

Image

Image

Image

Image

This last one shows the filter screen showing a preview which updates quickly and seems to be accurate and the grid option superimposed on it.

Image

Souphead.


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: The Droste 10 filter is coming to G'MIC
PostPosted: Fri Jan 08, 2016 9:26 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Now that would be cool Souphead. Looking forward to it. Hopefully you can get it added quickly under test and David, I'm sure, will add it to Deformations once you are happy with it. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sat Jan 09, 2016 1:24 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
excellent work, Souphead!
Me too I hope David can release the filter under official G'mic

_________________
"Where am I ?"


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sat Jan 09, 2016 3:44 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Hello Souphead,

That's awesome news ! This particular script was on my TODO list for several years now, but I hadn't take the time to convert it properly.
I'm so glad someone else did it :)
Now, about sharing it to the community :

1. If you think you will have the envy to develop other filters for G'MIC in the future (that would be nice :) ), the best way would be
that I add you as a contributor to the 'gmic-community' repository, available here : https://github.com/dtschump/gmic-community
and you could add your user.gmic file there, naming it as 'souphead.gmic' (or with your real name of course).
This would define a new filter source that I'll add to the filter update system, to make it available for other people just as easily as with other filters
developed by contributors of this repository. The cool thing here is that you would have the possibility to modify this file when you want, to
make updates, add new filters, or fix bugs in filters (if any).
(That's the preferred solution of course :))

2. If you think this is the only G'MIC filter you will work on, then I'll manage the inclusion of your filter in my own filter source 'ronounours.gmic' in 'gmic-community'. You won't have easy ways to modify and update this filter, except sending me a mail with the modifications.

That should be as simple as this. In any way, please tell me also how I can add you to the list of contributors, eventually your real name, a link to your web page, you G+ profile if you have one.
This filter has always been awesome in Mathmap, and having it running in G'MIC is such a good news !
I'd want to make a proper announcement with all the credits you deserve.

Thanks again!


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sat Jan 09, 2016 3:48 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Also, about the 'anti-aliasing' option, I assume this is only working because Mathmap performs some interpolation on the resulting pixels when the pixel coordinates are float-valued ? If so, this is also something G'MIC can do. Depending on how your script has been done, it can be enabled in several ways.
If you are using expressions as : 'i(x,y,z,c) = i(X,Y,Z,C)' to set the pixel value in your long expression (with X,Y,Z,C float-valued), then you can specify the use of linear interpolation in the right-hand size of the equation, as : 'i(x,y,z,c) = i(X,Y,Z,C,1)'.


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sat Jan 09, 2016 11:12 am  (#6) 
Offline
GimpChat Member

Joined: Dec 19, 2015
Posts: 46
OK, take me through the gmic-community process. Hopefully, it's not too hard. There's probably more stuff in MATHMAP to convert. Don't know if I am image enough to create anything really new though.

As to the anti-aliasing, my approach is to read from the original image and write to a second as it would trash the original otherwise. So if I were to drop in the pixel with interpolation, wouldn't I only have some other pixels around it for the interpolation calculation. In other words, I would have to build the entire image and then parse it a second time to add anti aliasing? And at that point I might as well use something like a -CONVOLVE or similar. Or am I mis-understanding how the fifth option of I() works.

Souphead.


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sat Jan 09, 2016 11:29 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
To add you in the repo, I just need your github account name.
Also, I can have a look at your script to see how interpolation can be done (as well as setting the boundary conditions,
to avoid "black" area in the generated images).
This is something I'll be happy to try.
Maybe it's better if you send me a direct e-mail for these technical details, my e-mail is available on my web page :
https://tschumperle.users.greyc.fr/


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sat Jan 09, 2016 11:46 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Could make the black areas transparent. That what I like to do when using Mathmap. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sun Jan 10, 2016 10:50 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
And here it is! Thanks to Souphead, this popular droste filter is now available for everyone.
Thanks again Martin ! We will enjoy this cool effect !

Attachment:
gmic_continuous_droste.png
gmic_continuous_droste.png [ 359.45 KiB | Viewed 5610 times ]


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sun Jan 10, 2016 1:44 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks folks! Nicely done. I will enjoy this one also.

_________________
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: The Droste 10 filter is coming to G'MIC
PostPosted: Sun Jan 10, 2016 2:02 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Now that's and awesome mouth you have there, David. lolol

Rod gave me the head's up. Thanks a heap, Souphead for getting this one ported to G'MIC and of course to David too. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Sun Jan 10, 2016 3:58 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Impresssive; pretty fast as well. :)


Attachments:
fp030407-20_ext.jpg
fp030407-20_ext.jpg [ 900.87 KiB | Viewed 1407 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 2:01 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Lyle,
I'm unable to get acceptable results: could you pls post some hints on how to get images like yours? (source image, parameters)
thanks

_________________
"Where am I ?"


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 3:30 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
OK; had to toy with the settings a bit Diego, but here is my original (for the example, above, I blew the image up, but did not do so for the log file) and log file. :)

[gmic_gimp]./preview/ -v -99 -souphead_droste10_preview 15.1,50.5,2.5,6,1,0,0,0,0,0,5,10,2,0,88,0,0,0,0,1,0,0,1,1,0,0,0,0

[gmic_gimp]./apply/ -v -99 -souphead_droste10 15.1,50.5,2.5,6,1,0,0,0,0,0,5,10,2,0,88,0,0,0,0,1,0,0,1,1,0,0,0,0


Attachments:
fp030407-20_ext.png
fp030407-20_ext.png [ 491.78 KiB | Viewed 1391 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 3:37 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
And, why not click the show both poles option (only lowrez this time). :)


Attachments:
fp030407-20_extbp.png
fp030407-20_extbp.png [ 553.61 KiB | Viewed 1389 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 3:42 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
And, using the same settings (but unclicked the show two poles) is my extracted Tithonia from a few years back. Just amazed at how fast G'MIC processes these. :)


Attachments:
Tithonia_dst.png
Tithonia_dst.png [ 1.26 MiB | Viewed 1388 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 4:46 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks a lot Lyle ! ! ! Saved your preset !
(I still don't understand why filters are released with presets which do nothing acceptable...IMO each released filter should create a nice outcome with defaults, from where to start to personalize, but this is just my opinion...)

_________________
"Where am I ?"


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 4:51 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
I saved it as a favorite too; didn't want to have to re-invent this one again. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 5:05 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I think everybody must save your preset for Droste, Lyle! Fantastic!

As an hommage I took that outcome and played with some crystallizing ...
Attachment:
fp030407-20_ext_LYLEdroste_DNcrystals.png
fp030407-20_ext_LYLEdroste_DNcrystals.png [ 2.59 MiB | Viewed 1379 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: The Droste 10 filter is coming to G'MIC
PostPosted: Mon Jan 11, 2016 5:27 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
adding a step to restore (some) original color...
Attachment:
fp030407-20_ext_LYLEdroste_DNcrystalsI.png
fp030407-20_ext_LYLEdroste_DNcrystalsI.png [ 3.67 MiB | Viewed 1376 times ]

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 96 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Multiple Continuous Droste GIF

1

No new posts Droste Lotza Turtles

4

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

10

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

23

No new posts Found a 'new' (for me) Filter

0



* Login  



Powered by phpBB3 © phpBB Group