[PD] freehand drawing on video in GEM

Jack jack at rybn.org
Tue Jul 22 15:42:47 CEST 2008


Le 22 juil. 08 à 02:10, <Mark_Danks at PlayStation.Sony.Com> a écrit :

>
> Single buffered drawing won't work with what he is describing,  
> unless he repaints all of the brush strokes.  When a new video  
> frame is drawn, it will overwrite everything.  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.  However, you won't be able to do alpha with this...
Yes Mark, this the first patch join to this mail (paintandvideo.pd).
>
>
> The best way to do this would be to either cache the brushes or  
> renderer the brushes to another render target with alpha.  Then  
> draw the video frame and draw the brush over top.  You could also  
> hand render the brushes to a texture with alpha and then just draw  
> the quad.  I don't know what the current set of GEM objects is  
> though, so these 2 ideas might require creating some new objects.
A dynamic system (heavy) in the second patch (paintandvideobuf0.pd)  
with 2 abstraction mycircle and my curve. I will try with texture  
next time.
++

Jack


>
>
> Mark
>
>
>
> Jack <jack at rybn.org>
> Sent by: pd-list-bounces at iem.at
> 07/21/2008 05:04 PM
>
> To
> "Spencer Russell" <spencer.f.russell at gmail.com>
> cc
> pd-list at iem.at
> Subject
> Re: [PD] freehand drawing on video in GEM
>
>
>
>
>
> As suggested by Chris, single buffer rendering is the good choice.
> Then send a bang from [metro 1] (for exemple) to [gemhead] to force
> the rendering (to your [gemhead] with the movie and to your [gemhead]
> for the 'painting').
> ++
>
> Jack
>
>
> Le 21 juil. 08 à 23:51, Spencer Russell a écrit :
>
> > On Mon, Jul 21, 2008 at 5:28 PM, chris clepper
> > <cgclepper at gmail.com> wrote:
> >> Single buffer rendering can be used for 'painting' using a geos as
> >> various
> >> brush types.
> >
> > The difficulty though, is that I want to draw some parts in a  
> freehand
> > single-buffer style, but I want it to be mixed and layered with  
> video
> > that's drawn normally.
> >
> > thanks,
> > spencer
> >
> > _______________________________________________
> > Pd-list at iem.at mailing list
> > UNSUBSCRIBE and account-management -> http://lists.puredata.info/
> > listinfo/pd-list
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mycircle.pd
Type: application/octet-stream
Size: 444 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paintandvideo.pd
Type: application/octet-stream
Size: 3759 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mycurve.pd
Type: application/octet-stream
Size: 533 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment-0002.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: paintandvideobuf0.pd
Type: application/octet-stream
Size: 4664 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20080722/d13a7566/attachment-0004.htm>


More information about the Pd-list mailing list