We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › translate() not working with blend()
Page Index Toggle Pages: 1
translate() not working with blend() (Read 704 times)
translate() not working with blend()
Apr 22nd, 2010, 1:48am
 
Hi All,

I've been messing around with blend, trying to create glow effects.

I'm drawing an ellipse to a PGraphics buffer and using .filter() to blur it.

This is all fine, but when it comes to rendering the buffer and using translate to position it, image() works fine and renders to the correct position but blend() ignores the translation.

eg.
Code:

translate(50,50);
//below in correct postition
image(pg,0,0);
//below in wrong position
blend(pg,0,0,w,h,0,0,w,h,ADD);
//below in correct position
blend(pg,0,0,w,h,50,50,w,h,ADD);


Anyone have any advice on this?

Thanks in advance,

David
Re: translate() not working with blend()
Reply #1 - Apr 22nd, 2010, 6:34am
 
Re: translate() not working with blend()
Reply #2 - Apr 23rd, 2010, 7:14pm
 
thanks for the link, i'll check it out.
Page Index Toggle Pages: 1