<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [PD] GEM</title></head><body>
<blockquote type="cite" cite><font face="Arial"
size="-1">hi,</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">am i alone
in finding GEM really not intuitive?</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">it doesnt
really have a &quot;dataflow&quot; feeling to it.</font></blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">For example
[cylinder] outputs an cylinder to graphics window,</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">but it isnt
connected to the [gemwin] block.</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">What if i
wanted to multiply the pixels of 2 different cylinders
and</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">then output
it to the graphics window?&nbsp;</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">Normally i
would think:</font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1">&nbsp;&nbsp;&nbsp;&nbsp; [cylinder]&nbsp;&nbsp;&nbsp;&nbsp;
[cylinder]</font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /</font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[pix_multiply]</font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp; |</font></blockquote>
<blockquote type="cite" cite><font face="Arial"
size="-1"
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
[gemwin]</font></blockquote>
<blockquote type="cite" cite>&nbsp;</blockquote>
<div><br></div>
<div>The problem here is that you are trying to use the pix_ image and
video objects with an OpenGL 3D object.&nbsp; The pix_ prefix is the
clue that all the pix_ objects work together, maybe the 3D objects
should have been named 3D_cylinder or geo_cylinder but it's a little
late to do that now.</div>
<div><br></div>
<div>Also, what would you expect to happen when you multiply these two
objects?&nbsp; The cylinder object only sends a set of vertices as a
description of the cylinder to the video card, so what would
multiplying those vertices actually do?&nbsp; Make the cylinder
larger?&nbsp; If the cylinders were textured there is a way to
multiply the textures together using a shader, but GEM is not capable
of doing that just yet.</div>
<div><br></div>
<div>You could use pix_snap to grab the area of the output window with
a each cylinder then use pix_multiply on the captured areas. </div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial" size="-1">maybe it
would be more fun if there was more a flow to it,
like</font></blockquote>
<blockquote type="cite" cite><font face="Arial" size="-1">with pd
sound. dont shoot me down if im wrong, it's just an impression
&nbsp;:)</font></blockquote>
<div>&nbsp;</div>
<div>I think it might be more 'fun' once the tutorials are more
complete and integrated with the distributions.&nbsp; Until then you
might want to learn about OpenGL, 3D, video processing in general to
figure out why your patch doesn't work.</div>
<div><br></div>
<div>cgc</div>
</body>
</html>