[GEM-dev] Way to get gemframebuffer back onto main memory for pix_ operations?

Jack jack at rybn.org
Sat Nov 28 15:04:52 CET 2009


Le vendredi 27 novembre 2009 à 11:24 -0800, B. Bogart a écrit :
> Hey Jack,
> 
> I realized I forgot to mention the image can't be in the gemwin. That is
> I render a bunch of stuff into a framebuffer, and add it to the video,
> all without ever sending it to the gemwin.
This patch should be ok.
> 
> AFAIK pix_snap will only snap the gemwin, not the gemframebuffer itself?
> Or is this wrong?
Wrong, [pix_snap] snap 'things' rendered before it receive a bang. So
you can see all your scene in the gemwin and snap only one part.
This is the same with [gemframebuffer]. You can snap only one part of
the [gemframebuffer], that depend of the order of the rendering. Then
you don't snap 'things' in the gemwin.
> 
> That is I need to get the texture off the gfx card, back into pix_
> domain, *without* using the gemwin to do it.
You can share the pix_ with [pix_share_write] and [pix_share_read].
As Chris says, it should be faster with GLSL and the work on textures,
because [pix_snap] is slow.
Hope it's enough clear and i didn't make a mistake ! ;)
++

Jack


> 
> Thanks for trying!
> .b.
> 
> Jack wrote:
> > Or maybe this ;)
> > ++
> > 
> > Jack
> > 
> > 
> > Le vendredi 27 novembre 2009 à 11:31 +0100, Jack a écrit :
> >> Hello Ben,
> >>
> >> Is it what you are looking for ?
> >> ++
> >>
> >> Jack
> >>
> >>
> >>
> >> Le vendredi 27 novembre 2009 à 02:51 +0000, ben at ekran.org a écrit :
> >>> Hey all,
> >>>
> >>> I'm rendering data into a framebuffer, but want to be able to pix_add
> >>> that texture with a live video input. 
> >>>
> >>> How can I get a gemframebuffer image from texture space into pix_
> >>> space???
> >>>
> >>> Thanks,
> >>> B. Bogart 
> >>> _______________________________________________
> >>> GEM-dev mailing list
> >>> GEM-dev at iem.at
> >>> http://lists.puredata.info/listinfo/gem-dev
> >> _______________________________________________
> >> GEM-dev mailing list
> >> GEM-dev at iem.at
> >> http://lists.puredata.info/listinfo/gem-dev





More information about the GEM-dev mailing list