It is currently Wed May 22, 2013 10:59 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Somebody may help for a Mathmap script ?
PostPosted: Sun Aug 05, 2012 8:13 am  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 4957
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

_________________
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 Mon Aug 06, 2012 5:43 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Profile  
 

 Post subject: Re: Somebody may help for a Mathmap script ?
PostPosted: Sun Aug 05, 2012 4:04 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 4957
well this is wat i get till now ..too bad that doesn't work and i have no idea why

stretched
filter pond_offset (stretched image in ,float offset_X: -1-1 (0),float offset_Y: -1-1 (0),float max_freq: 1-10 (4),
float amp: 0-1 (0.02), float r_off: 0-1 (0.1))
u=x+offset_X;
v=y+offset_Y;

#offset the image to filter
in(xy:[u,v])

#apply the filter
ra+ra:[sin(max_freq/(r+r_off)+t*2*pi)*amp,0]

# compensate the initial offset moving back to the original position
(xy:[x,y])
end

MM see a error in this line "in(xy:[u,v])" , and that confuse me even more because error should be after, maybe even before but not on that line

_________________
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
 Profile  
 
 Post subject: Re: Somebody may help for a Mathmap script ?
PostPosted: Mon Aug 06, 2012 5:45 pm  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 4957
Please, a mod may lock this topic ? (why in the First message now edited )

_________________
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login   * Subscribe to RSS Feed


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group