It is currently Fri Apr 19, 2024 7:22 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Fun with the Mathmap Composer , for dummies
PostPosted: Sat Aug 11, 2012 12:04 pm  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
o previous knowledge is required , it is only required Mathmap already installed

WHAT YOU NEED TO KNOW BEFORE START


First : in mathmap not all the filter controls are accessible from the “User Value” tab , where are only those specific to each filter , there are others very important controls in the “Setting” tab

Image


On top, to the right side the controls for animations :
a box to mark in case you want create a animation (if not will be no animation at all, even using animated filters), and other related control (how many frames, loop animation or not ,…)

on the left side (framed in red in the illustration) the "supersampling option " OFTEN OVERLOOKED BUT PRECIOUS :

In simple words “supersampling” will give better , more smooth and neat results
without requiring much more resources , with no perceptible disadvantages

It would be nice if was enabled by default but, alas, as default is switched off so I suggest to switch it on at soon you open Mathmap

The other option framed in red “ Edges behaviors” are also very important for
what I want show , and again the default is not adapt:

Most of “map” and “distort” filters may change shape and size of the image and so create “empty” spaces , “Edges behaviors” determine how this spaces should be filled , the default is the most obvious method “Color” that would fill the space with a solid color that may be even total transparency if the layer you are working on has a alpha channel
( In case you don't know what is a "alpha channel : just rename it "transparency channel" and magically its function will become clear :cool ) … but here images explain better : “Color” option leave a empty space

Image


the other option framed in red in the illustration , “Reflect” solve by filling the space as in a reflection
That for our use is a much better solution… note that X and Y edges ( = Horizontal and Vertical edges ) have independent control you should set both to "reflect"

Image


OK , now we are ready to start !

Fun with the Composer


I will show how to use the Composer to make a more flexible and powerful version of a series of filter already included but first

A good example is "Fisheye" that does exactly what expected : create a fisheye distortion

ORIGINAL

Image


AFTER


Image


But the effect is only centered in the very center of the image... most reasonable default but the problem is that is not the default, but the only option available:

And there are other cool mathmap filters with the same limitation as example Pond , Enhanced pond, Circular Slice , Square, rect2ellipsoid , just to quote a few

Now i want show you how to use the composer to create much more flexible version of all those filters :
create and save, any combination may be saved as new filter with just a couple of clicks

Example same filter as before , "fisheye" but with the effect centered in the middle of the right vertical edge
Image

another example with "Circular Slice " ; this the effect now

Image


the modified filter will do as default the same but will allow to do also this

Image

HOW TO IN PRACTICE

First is important to know
that for Mathmap the images are no limited by their edges or the edges of the canvas but have infinite extension
( Obviously that only for mathmap, once gimp will receive the image it will crop back to original layer size)


Then if we know how to code the solution would be trivial ,BUT we are supposed to know nothing about coding

And is even more quick and fun solve using Mathmap Composer

The last is the more simple case to solve

BUT remember this filter and the others that we will create should be used with this setting

Image


( Again "supersampling" will allow a better quality and "reflect" option switched on here is very important )



------------------------------------------------------------------------------------------------

1) open a image, call mathmap, click the composer tab
2) in the center there is a filter list , click on Circular Slice to load the first component of the Composer
(if apparently nothing happens, pan in the lower left corner of the composer windows, the component may be there )
3) Now a filter to offset : here i goofed it was already one ready ( translate in "Geometry" ) but when i discover it i had already written another "Offset_XY" that does exactly the same

Anyway .. click on "Offset_XY "(or "Translate") to load in the Composer

now click on the little "out" circle of the Circular Slice and , without releasing move to the "in" circle of the Offset_XY and you will see a red line connecting the 2

TO MAKE THE USER CONTROL APPEAR YOU SHOULD CLICK "PREVIEW "
To save the new filter you may use the "Save as " button , under the composer tab

--------------------------------------------------------------------------------------

This simple solution works well with this filter but we may do better

Let s try with Distort/Enhanced Pond , again we want be able to offset the effect so we may still have this , the actual effect

Image

But also this where i moved the center of the effect on the upper right corner

[align=center]Image
[/align]

To do this we need

1) offset the image before apply the "enhanced pond" filter , we may use the Offset_XY filter
2) apply the filter " Enhanced pond" on the offset image
3) compensate the inizial offset so only the center of the effect has a offset not the image
A solution is use again the same Offset_XY filter with exactly the same values but multiplied for -1 .

so

1) chose Offset_XY in the filter list and click to load in the Composer
2) same for "Enhanced Pound", collect
3) connect the "out" of the first with the "in" of the second
4) now chose and load another instance of Offset_XY, and connect it with the rest
(the "out" of Enhanced Pond to the "in" of OffsetXY-2

This is what you should see in the composer tab

Image


5) CLICK "PREVIEW" TO INITIALIZE THE NEW FILTER AND SO MAKE APPEAR ITS SLIDERS IN THE USER CONTROLS TAB


Image


again do not forget

Image


because if not you will get a lot of holes


Image


Could be noted that is a pain use the sliders to set the last 2 values for X and Y offset, rhe slider may get jumpy or skip too much intermediate value

The best solution would be a snippet to code to just revert to the original position , but we are supposed to don't know how to code, and apparently there is not a similar component already coded and ready to be used in similar combinations

BUT there is a quicker method :
select and copy the values from the numeric boxes of the first 2 " Offset_XY "
paste in the last 2 , and then invert polarity (+ if was - and viceversa )

much quicker then with slider

--------------------------------------------------------------------------------------------------------------------------------
I hope you get the idea
the same idea may be used for many other filters :

Zoom-blur with offset


Image


Radial Eversion with offset

Image


Jitter with offset

Image


Square with offset (here i didn't use the second instance of offset_XY to compensate but to distort

)Image


Oh well you should have gotten the idea so something very different now

ESCHER'S GLOBE


if you have read till here

1) load in the composer Map/Droste
2) now Map/Sphere
3) connect "out" of Droste with the "in" of "sphere
4) CLICK PREVIEW TO INITIALIZE THE FILTER

result

Image

or even

Image



well...have fun and post the most interesting combination you have found

In the zip a copy of my Mathmap "expression" folder with a copy of Offset_XY and all the extra filters i collected till now


MORE INFO ON MATHMAP AND VIDEO ON THE COMPOSER


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

http://video.google.de/videoplay?docid= ... 8308861626

_________________
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


Last edited by PhotoComix on Sat Aug 11, 2012 12:32 pm, edited 5 times in total.

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: Fun with the Mathmap Composer , for dummies
PostPosted: Sat Aug 11, 2012 12:05 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
the zip is here


Attachments:
expressions.zip [89.89 KiB]
Downloaded 1419 times

_________________
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: Fun with the Mathmap Composer , for dummies
PostPosted: Sat Aug 11, 2012 12:24 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
I've only toyed with composer some (and recently you already know about). Very cool tut PC. Node editing is the future (1000 times better then layers and is truely a self documenting form of editing (hate the term lossless)). GEGL suppose to allow GIMP to be able to use nodes; we shall see. Fun to play with in Mathmap; just lazy I am to do so. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Fun with the Mathmap Composer , for dummies
PostPosted: Sat Aug 11, 2012 12:30 pm  (#4) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I would like so much have a Composer in Gmic :
with so many cool filters to combine would have no much (mathmap has quite good filters but for sure no so many and not continuously updated as gmic ...as you know mathmap still work in gimp just by miracle

_________________
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: Fun with the Mathmap Composer , for dummies
PostPosted: Sat Aug 11, 2012 2:17 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
quick update for a new combination the ...

ESCHER'S EGG


BEFORE ...again the same chessboard but tiled :
chessborad image ratio was 1:1 and with 1:1 would be not a ellipsoid but a sphere
i don't want a sphere but a egg so i tiled to get 3:2 image ratio, good for eggs



Image


AFTER


Image

or

Image



To assemble this filter
1 Map/ Droste + Map/ Rectangle2ellipsoid

_________________
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  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts MathMap in 2.10.18

2

No new posts Mathmap

4

No new posts Attachment(s) MathMap

11

No new posts I made a new MathMap filter

21

No new posts [solved] Mathmap folder in Preferences

12



* Login  



Powered by phpBB3 © phpBB Group