YOUR ACCOUNT

Login or Register to post new topics or replies
DHZ

Posts: 3
Filters: 3
I know use offset node can offset image , but how to use script do that? anyone can help me?
  Details E-Mail
Morgantao
Can't script

Posts: 2185
Filters: 20
+1 from me smile:)

Interesting question, and would like to learn anything I can about scripting, so if you don't mind, I'll be following this thread smile:D
  Details E-Mail
DHZ

Posts: 3
Filters: 3
hey,guys,I found the solution , very simple. first, a very important information of image is rgba channel and uv coordinate or xy coordinate, anyway, it like a line-ramp.
code in here:
Code

function get_sample(x, y)
   -- Image generation code goes here.
   ofx = get_sample_grayscale(x, y, OFFSETX)
   ofy = get_sample_grayscale(x, y, OFFSETY)

   adjx = get_sample_grayscale(x,y,ADJUSTX)
   adjy = get_sample_grayscale(x,y,ADJUSTY)

   dis = get_sample_grayscale(x,y,DISAPPEAR)

   pre = get_sample_grayscale(x, y, PERCENTAGE)
   r,g,b,a = get_sample_map(x+ofx*pre/dis-adjx,y+ofy*pre/dis-adjy,SOURCE)

   return r,g,b,a

end;

and I upload that to web site, but nothing reaction now..
  Details E-Mail
DHZ

Posts: 3
Filters: 3
hi! filter address :Image offset
but one problem live, how to rotate image? I pondered for long time but I couldn't. help me!
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,712 Registered Users
+19 new in 30 days!

153,534 Posts
+31 new in 30 days!

15,348 Topics
+72 new in year!

Create an Account

Online Users Last minute:

12 unregistered users.