It is currently Thu Apr 18, 2024 8:23 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 12:58 pm  (#1) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Have a play, the illusion is very sensitive to which colours you pick. Please let me know what settings you've used if you find any particularly effective colour combinations as I'm trying to get a list of what works and what doesn't for future creations.
Example of what it does here http://www.gimpchat.com/viewtopic.php?f=11&t=4612

Enjoy..

CODE:

#Kitaoka Spin Illusion V0.0
#Written by step7 (2012)
#Renders positional displacement illusion "Spinning Sectors"
#based on Akiyoshi Kitaoka's "Rotating Snakes"
#
#Wiring:
#None
#
#User Values:
#Just play..
#
#Contact me about the filter on Gimp Chat Forum or Mathmap Google Group
#
filter KittyRings (image in, float sectors:10-80 (30), float zoom:1-30 (8),float inner_radius:0-2 (0), float outer_radius:0-2 (1), int R1:0-255 (113),int G1:0-255 (0),int B1:0-255 (113), int R2:0-255 (0),int G2:0-255 (255),int B2:0-255 (0))v=(sectors*a/(pi*2))+(floor(log(r)*zoom)*0.5); v=v-floor(v);out=rgbaColor(0,0,0,1);if inintv(r,inner_radius,outer_radius) then if inintv(v,0.15,0.5) then out=rgbaColor(R1/255,G1/255,B1/255,1);end;if inintv(v,0.5,0.65) then out=rgbaColor(1,1,1,1);end; if inintv(v,0.65,1) then out=rgbaColor(R2/255,G2/255,B2/255,1);end;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 Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 2:44 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
I tried an experiment. Rather than try a bunch of colors, I wanted to see what reverse colors might show using at least one default. The first example on the left, default r1 and r2 and on the right r1 and r2 default values reversed. The second example is as noted. My eyes are not the best. I see movement in the first example and maybe a bit in the second example.

I picked the color in the second example from the Solarized palette because the color should show equally well on a black or white background.


Attachments:
Spin-Illusion-exp-01-gc.png
Spin-Illusion-exp-01-gc.png [ 45.39 KiB | Viewed 6344 times ]
Spin-Illusion-exp-02-gc.png
Spin-Illusion-exp-02-gc.png [ 254.88 KiB | Viewed 6344 times ]

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)
Top
 Post subject: Re: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 3:35 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 7304
Location: Göteborg at last!
Thanks step7. Do we copy and save this as MM?


Top
 Post subject: Re: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 4:12 pm  (#4) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
You can just paste the code into the expressions window then hit the "Save As" button. Recommend you put it in the "mathmap\expressions\render\" folder.

Glad to see you experimenting Odin, thanks for noting a few colours for me.

I might try changing the colour selectors to L.ab seeing as this a perception based thing - that means doing some reading though as I don't know the math for Lab to RGB conversion (Mathmap only works in RGB/HSV).

Interesting the 2nd wheel barely seems to spin, even though the colours the same??, I'll have a puzzle on that one.


Top
 Post subject: Re: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 4:58 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Extremely cool indeed. Added my own "spin" to the rendered result. Thanks a heap. :)


Attachments:
spin_ill.png
spin_ill.png [ 1.01 MiB | Viewed 6312 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 5:59 pm  (#6) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
playing now, i found difficult set colors i would much prefer color selector widget instead then sliders to chose the colors

a color widget is used as example in "Map--> Sphere to chose the BG color and may be interesting that may create semitransparent colors

my first attempt

Image

but..what would happen by merging illusory and real movements ?

Image

_________________
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 Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 6:06 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Now that's cool Lyle.
Thanks Step7. :ninja

_________________
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: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 6:08 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
You guys are having so much fun...very interesting PC.

_________________
Image


Top
 Post subject: Re: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 6:43 pm  (#9) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
I wasn't aware of the widgets, thanks PC. Modified code:

#Kitaoka Spin Illusion V0.1
#Written by step7 (2012)
#Renders positional displacement illusion "Spinning Sectors"
#based on Akiyoshi Kitaoka's "Rotating Snakes"
#
#Wiring:
#None
#
#User Values:
#Just play..
#
#Contact me about the filter on Gimp Chat Forum or Mathmap Google Group
#

filter KittyRings (image in, float sectors:10-80 (30), float zoom:1-30 (8),float inner_radius:0-2 (0), float outer_radius:0-2 (1), color colour1, color colour2)v=(sectors*a/(pi*2))+(floor(log(r)*zoom)*0.5); v=v-floor(v);out=rgbaColor(0,0,0,1);if inintv(r,inner_radius,outer_radius) then if inintv(v,0.15,0.5) then out=colour1;end;if inintv(v,0.5,0.65) then out=rgbaColor(1,1,1,1);end; if inintv(v,0.65,1) then out=colour2;end;end;out end


Top
 Post subject: Re: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Wed Jun 27, 2012 8:20 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Definitly like your updated script better step7. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Never look into the owl's eyes.
PostPosted: Fri Mar 01, 2013 7:47 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
I repeat; never look into the owl's eyes. lol


Attachments:
owls_eyes.png
owls_eyes.png [ 544.19 KiB | Viewed 924 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: New Mathmap Filter: "Spinning Sectors" Optical Illusion
PostPosted: Fri Mar 01, 2013 8:29 am  (#12) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
cool Lyle

and looking again to your previous , i believe something similar but animated could be done "linking" (here i mean :using the MM "composer" , not coding) this filter with "Animated Sphere"

Or even "Spinning Sectors"> mirror (to get 4 sectors , as in L example on previous page )instead then 2 )>Aanimated Sphere



First you need to have mathmap installed in gimp
Then just copy the script (on a text editor , NOT a word editor but a simple text editor as Win notepad )save with "mm" extension in your mathmap "expression folder.

take care to really save with a mm extension (i.e. spinning_sectors.mm), Windows may be a bit tricky and so try to add a txt extension (as spinning_sectors.mm.txt) and may even be so nasty to hide that added txt extension
(this will happen with the default setting for " search "(accessible also from My Computer>"operation for files and folders ), to avoid file extension be hidden you should unmark the option "hide extension for commune file types )

_________________
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 Filter: "Spinning Sectors" Optical Illusion
PostPosted: Fri Mar 01, 2013 11:03 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Mathmap's official site is below Gram. :)

http://www.complang.tuwien.ac.at/schani/mathmap/

Believe Graechan compiled it for 64-bit (don't believe it's necessary for this plugin to be 64-bit unlike G'MIC), but way too lazy to find the link but it was a thread here that Graechan started as I recall. :)

_________________
Lyle

Psalm 109:8

Image


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Optical Illusion

22

No new posts I made a new MathMap filter

21

No new posts Attachment(s) Spinning coin

68

No new posts Attachment(s) Spinning coin

5

No new posts Attachment(s) MathMap

11



* Login  



Powered by phpBB3 © phpBB Group