[PD] GEM: multiply with movie

Thoralf Schulze thoralf_schulze at yahoo.de
Mon Oct 17 23:56:43 CEST 2005


hi lorenz,

please consider the difference between geos and
textures in gem. or, for that matter, opengl. 

> i want to use something like the pix_multiply -
> function to multiply a 
> movie with e.g. a rectangle..
> 
> i don't want the movie as a texture of this
> rectangle..
> 
> i want to move and resize a white rectangle, and
> only show the parts of 
> the movie, where the rectangle currently is..
the movie you're talking about is a texture. a texture
just by itself is kind of wasted - to be visible, it
needs to rendered on a geometrical figure, probably a
rectangle. objs are geos as well ...
there are some objects to change the appearance of the
texture of a geo in gem - but you won't find anything
pre-fabricted that suits you needs. now, if you're
familiar with c or ruby or ... you could code a new
pix_ object that does exactly what you need. this
solution depends on your coding skills.
another - and probably faster - solution would be to
render your movie on a rectangle that fills your gem
window. After this is done, you could render four
rectangles that are totally non-transparent in a
pattern like this:

+-----------+
|           |
+-----------+
|   |movie| |
+-----------+
|           |
+-----------+

again covering the whole of the gemwin.
by changing the side lengths of the rectangles you
should get what you've been asking for ...

It doesn't pay to think photoshop when using gem. the
gem-way of doing things is actually the more elegant
one. don't forget to share your patch when you're done
- others might be interested too.

hope this helps,
thoralf.


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com




More information about the Pd-list mailing list