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 › blend and transformation
Page Index Toggle Pages: 1
blend and transformation (Read 438 times)
blend and transformation
Jun 25th, 2007, 2:04pm
 
Hi there,
As ive seen in older posts, the blend effect doesnt work with transformation. Is there a way to work around this. I know its not a bug and it is meant to be like this. But wouldn´t it be great to have "blend" provided as a "filter" wich can be applied to PImages.
this is a snippet of code taken from my current project wich is kind of a motion tracking and bluebox tool. Iwould like to map the capture onto 3d surfaces like a wall using the blend effect.

code:
pushMatrix();
   rotateY(radians(20));
   translate(0,0,0);
   image(mOverlay,60,50,400,300);
   blend(mOverlay,0,0,640,480,60,-80,640,480, ADD);
   popMatrix();


I really hope anyone already worked on this..
Re: blend and transformation
Reply #1 - Jun 26th, 2007, 1:17am
 
does mOverlay.blend(...) not do what you want?
Page Index Toggle Pages: 1