It is currently Thu Mar 28, 2024 4:08 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: NEW _ MathMap Kaleidoscope- (with offset option )
PostPosted: Tue Feb 15, 2011 5:45 am  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
from the google mathmap group a new version of the kaleidoscope filter, with option to offset the center

filter newkaleido (image in, int ng: 2-20, float rot: 0-6.28319, float sx:
0-1, float sy: 0-1, float rad: 0-100)
intang=2*pi/ng;
na=a+pi/2;
ang=intang/2-na%intang;
ang=rot+(intang/2-sqrt(ang^2));
xr=r*rad;
foo=min(X,Y);
bar=foo*rad;
if xr<bar then
nr=xr;
else
ang=2*ang;
nr=bar*xr/R;
end;
nx=nr*cos(ang);
ny=nr*sin(ang);
nx=(nx+sx)%(W-1)-(X-1);
ny=(ny+sy)%(H-1)-(Y-1);
in(xy:[nx,ny])
end

NOTE
i believe the author modify the old Kaleidoscope script but not the filter name
So i changed the filter name in the first line of the code to avoid conflict
(in case you want have both version)
to add to mathmap simply save as "new kaleidoscope.mm" (or any name you wish the point is the.mm extension) in your mathmap expression folder ( i suggest there the "map" subfolder )

you may also do this directly from mathmap , first open the expression tab, clear, paste the code and click the "save as"button
I just got it , didn't test yet

_________________
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


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 _ MathMap Kaleidoscope- (with offset option )
PostPosted: Sun Feb 27, 2011 11:48 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
It has no t variable for the animation. It works as a Kaleidoscope filter, but no animation.

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: NEW _ MathMap Kaleidoscope- (with offset option )
PostPosted: Mon Feb 28, 2011 12:03 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I have the animation working.
Attachment:
AniTest.gif
AniTest.gif [ 375.88 KiB | Viewed 3037 times ]

Here is my mod:

filter newkaleido (image in, int ng: 2-20, float rot: 0-6.28319, float sx:
0-1, float sy: 0-1, float rad: 0-100)
intang=2*pi/ng;
na=a+pi/2;
ang=intang/2-na%intang;
ang=(rot+(intang/2-sqrt(ang^2)))*(t+1);
xr=r*rad;
foo=min(X,Y);
bar=foo*rad;
if xr<bar then
nr=xr;
else
ang=2*ang;
nr=bar*xr/R;
end;
nx=nr*cos(ang);
ny=nr*sin(ang);
nx=(nx+sx)%(W-1)-(X-1);
ny=(ny+sy)%(H-1)-(Y-1);
in(xy:[nx,ny])
end

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: NEW _ MathMap Kaleidoscope- (with offset option )
PostPosted: Mon Feb 28, 2011 12:14 am  (#4) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
WOW!! that was fast ...Thank PhotoMaster!

_________________
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 _ MathMap Kaleidoscope- (with offset option )
PostPosted: Mon Feb 28, 2011 12:17 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
Here's a better example. I did it with more frames and slightly different settings.


Attachments:
AniTest2.gif
AniTest2.gif [ 1.64 MiB | Viewed 3035 times ]

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.
Top
 Post subject: Re: NEW _ MathMap Kaleidoscope- (with offset option )
PostPosted: Mon Feb 28, 2011 12:18 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I haven't been able to do much with this old machine, but this was easy for it.

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) S640 pen cursor offset with brush

0

No new posts Kaleidoscope & Mandala Art

19

No new posts Slow Change Kaleidoscope

7

No new posts Attachment(s) Kaleidoscope Plugin Source Code

1

No new posts Attachment(s) Access built-in Kaleidoscope with Python

7



* Login  



Powered by phpBB3 © phpBB Group