<br><font size=2 face="sans-serif">Single buffered drawing won't work with
what he is describing, unless he repaints all of the brush strokes. &nbsp;When
a new video frame is drawn, it will overwrite everything. &nbsp;This can
be worked around by playing with the Z values though...set the video to
draw behind the brush strokes and then make sure that you do Z writes for
the brushes. &nbsp;However, you won't be able to do alpha with this...</font>
<br>
<br><font size=2 face="sans-serif">The best way to do this would be to
either cache the brushes or renderer the brushes to another render target
with alpha. &nbsp;Then draw the video frame and draw the brush over top.
&nbsp;You could also hand render the brushes to a texture with alpha and
then just draw the quad. &nbsp;I don't know what the current set of GEM
objects is though, so these 2 ideas might require creating some new objects.</font>
<br>
<br><font size=2 face="sans-serif">Mark<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Jack &lt;jack@rybn.org&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: pd-list-bounces@iem.at</font>
<p><font size=1 face="sans-serif">07/21/2008 05:04 PM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&quot;Spencer Russell&quot; &lt;spencer.f.russell@gmail.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">pd-list@iem.at</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [PD] freehand drawing on video in
GEM</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>As suggested by Chris, single buffer rendering is
the good choice. &nbsp;<br>
Then send a bang from [metro 1] (for exemple) to [gemhead] to force &nbsp;<br>
the rendering (to your [gemhead] with the movie and to your [gemhead] &nbsp;<br>
for the 'painting').<br>
++<br>
<br>
Jack<br>
<br>
<br>
Le 21 juil. 08 à 23:51, Spencer Russell a écrit :<br>
<br>
&gt; On Mon, Jul 21, 2008 at 5:28 PM, chris clepper &nbsp;<br>
&gt; &lt;cgclepper@gmail.com&gt; wrote:<br>
&gt;&gt; Single buffer rendering can be used for 'painting' using a geos
as &nbsp;<br>
&gt;&gt; various<br>
&gt;&gt; brush types.<br>
&gt;<br>
&gt; The difficulty though, is that I want to draw some parts in a freehand<br>
&gt; single-buffer style, but I want it to be mixed and layered with video<br>
&gt; that's drawn normally.<br>
&gt;<br>
&gt; thanks,<br>
&gt; spencer<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Pd-list@iem.at mailing list<br>
&gt; UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/
<br>
&gt; listinfo/pd-list<br>
<br>
<br>
_______________________________________________<br>
Pd-list@iem.at mailing list<br>
UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br>
<br>
</font></tt>
<br>