[PD] strange behaviour with pix_flip on OSX

Mathieu Bouchard matju at artengine.ca
Tue Nov 15 20:14:04 CET 2011


Le 2011-11-15 à 17:43:00, Max a écrit :

> i guess you are using 03-camera.pd in Bewegungsmelder. The point is that 
> the students realize it is 3d. use [rectangle -4 3] to flip the 
> rectangle and look at it from the other side - thus the pixels textured 
> on it are in reverse order. m.

This particular trick would work even if [rectangle] were part of a 2D 
toolkit. But otherwise, it's true that it's a good trick. It takes less 
CPU than [pix_flip].

There are two ways to flip coordinates of a 2D thing : reflexion in 2D, 
such as [scaleXYZ -1 1 1] or [scaleXYZ 1 -1 1] or rotation in 3D, such as 
[rotateXYZ 180 0 0] or [rotateXYZ 0 180 0]. Picking the size of a 
rectangle is the same as $1 $2 of scaleXYZ.

  ______________________________________________________________________
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC


More information about the Pd-list mailing list