[PD] render into rectangle

IOhannes m zmoelnig zmoelnig at iem.at
Tue May 30 15:30:06 CEST 2006

marius schebella wrote:
> Hi,
> I need to project a certain rectangle/quadrangle with a videobeamer. It 
> is a distorted and non 4:3 area. I wonder if it possible to render the 
> gembuffer into such a polygon. The rest of the screen should remain 
> black. So I know how to render images and videos into that area, but I 
> didn't find an easy solution to texture/snap the whole gemwindow into 
> that rectangle. I would like to have some particle effects. the only way 
> I can think of is using single buffer mode and pix_snap a buffer, then 
> clear it and then texture onto my polygon. Do you have other ideas?
> thank you. marius.

you could do it in double-buffered mode as well if you make sure that 
the rectangle to texture on is just before everything else (and you 
would probably want a 2nd rectangle that guarantees that the edges 
beyond your texture-geo are still black.
render order is important.


More information about the Pd-list mailing list