EDIT 6 august
I was upset by no any reply, but reading better i see that what i wrote just doesn't make sense, i mean was far to be clear
I hope the mod may lock this topic:
what i wish automate and why is better explained in the tutorial on Mathmap ( "[color=#FF0000]Fun and immediate results with the Matmap Composer, for Dummies ") that i will post shortly in the tut board.[/color]
######################################################################à
Well i hope the problem sufficiently generic to not require a speciphic knowledge of Mathmap syntax:
I like some MM script but a really dislike that they only make the effect centered in the very center of the image while i want be able to offset
Anyway Mathmap images have a infinite extension, are not cropped to canvas size, if not after rendering so could sort of solve
with this snippet
Quote:
stretched
filter simple_int (stretched image in ,float offset_X: -1-1 (0),float offset_Y: -1-1 (0))
u=x+offset_X;
v=y+offset_Y;
in(xy:[u,v])
end
And the idea was
1 first offset as example
Offset_XY : offset_X = -0.5 Offset_Y =0.4
2 )Here as inside a sandwich the the filter to use i.e. "pond" "enhanced pond"
3) here the problem AUTOMATICALLY revert the offset
that is simple as multiply for -1 the values used for Offset_x and Offset Y in 1)
but if the math is trivial i had no success for 3...not sure were is the problem i try both to wrote a "normal" MM filter
and to use the composer to make a "composited filter...in both case no luck
No luck because some errors that literally crash MM so i can't even use it to locate the line where is the error
-------------------------------------------------------------------------
I hope i was clear...the problem , and so the solution is the same for many filters but just to have a sort of template i will use Enhanced pond
So here my simple Offset_XY
1)
Quote:
stretched
filter simple_int (stretched image in ,float offset_X: -1-1 (0),float offset_Y: -1-1 (0))
u=x+offset_X;
v=y+offset_Y;
in(xy:[u,v])
end
2 ) a filter to offset
filter enhanced_pond (image in, float max_freq: 1-10 (4),
float amp: 0-1 (0.02), float r_off: 0-1 (0.1))
in(ra+ra:[sin(max_freq/(r+r_off)+t*2*pi)*amp,0])
end
3 Again 1) to run with this values
Offset_X *(-1) , Offset_Y(-1)
the single pieces works but i fail to merge them in a single filter