[PD] gem and double buffer

cyrille henry cyrille.henry at la-kitchen.fr
Fri Jun 19 16:23:15 CEST 2009



Jack a écrit :
> Le 19 juin 09 à 14:54, cyrille henry a écrit :
> 
>>
>>
>> Jack a écrit :
>>> Le 19 juin 09 à 11:38, cyrille henry a écrit :
>>>>
>>>>
>>>> jack at rybn.org a écrit :
>>>>> Yep, that's why Cyrille says that you can use [pix_snap] or
>>>>> [pix_snap2tex].
>>>>
>>>> like in exemple 07.texture/07.feedback
>>>>
>>>>> Or you can also use [gemframebuffer].
>>>>
>>>> like in exemple 10.glsl/06.framebuffer and shader, but removing the 
>>>> shader.
>>>>
>>>>> With that, you can capture a certain part of your last frame and 
>>>>> add it to
>>>>> your new. But the result could be not very nice.
>>>>
>>>> why?
>>>>
>>> I was sure that a blur appear after a certain period. But i am wrong.
>>> So there is no problem to use this objects to simulate single buffer 
>>> in double buffer mode !
>> blur can appear, under cettain condition, with antialiasing / quality 
>> 1 to the texture or small displacement.
>> but you can avoid it if you wish.
> 
> Yep, there is blur with antialiasing and with [pix_snap] and 
> [pix_texture] (with quality 0 or 1) or with [pix_snap2tex]. But it seems 
> to be OK with [gemframebuffer] and [pix_texture] (with quality 0 or 1).
> Have you an other method to avoid blur with [pix_snap] and 
> [pix_snap2tex] with antialiasing ?

pix_snap2tex and antialiasing did not gives blur here.
at least with the attached patch.
but i thik it used to.
i would not be surprised if that would depend on the driver/hardware...

could you try this patch?


c

> ++
> 
> Jack
> 
> 
>>
>> c
>>
>>> ++
>>> Jack
>>>>> Try !
>>>>> ++
>>>>> Jack
>>>>>> yes, but my problem is : I need to emulate single buffer on double 
>>>>>> buffer,
>>>>>> i need to use double buffer because i work with iterations using 
>>>>>> repeat or
>>>>>> until objects, and in single buffer with metro this iterators are 
>>>>>> so so so
>>>>>> slow, almost "2" fps.
>>>>
>>>> wow, it's strange that it is slower in single buffer.
>>>> do you have a test patch that demonstrate this?
>>>>
>>>>>>
>>>>>> i want don´t clear the image buffer when is drawed the new buffer, 
>>>>>> like an
>>>>>> accumulation...but using double buffer!!....is possible???...in 
>>>>>> single
>>>>>> buffer is easy, but with iterators....no way.
>>>>
>>>> i don't understand why iterators can't work in single buffer.
>>>>
>>>> cyrille
>>>>
>>>>
>>>>>>
>>>>>>
>>>>>> thanks for your patience.
>>>>>>
>>>>>> Message: 6
>>>>>> Date: Mon, 15 Jun 2009 18:34:18 +0200
>>>>>> From: cyrille henry <cyrille.henry at la-kitchen.fr>
>>>>>> Subject: Re: [PD] gem and double buffer
>>>>>> To: Andres Ferrari <anfex at yahoo.com>
>>>>>> Cc: pd-list at iem.at
>>>>>> Message-ID: <4A36780A.1000905 at la-kitchen.fr>
>>>>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>>>>
>>>>>>
>>>>>>
>>>>>> Andres Ferrari a ?crit :
>>>>>>> hello,
>>>>>>>
>>>>>>> is possible in gem to change between single buffer and double buffer
>>>>>>> without destroy gemwindow??
>>>>>> no
>>>>>>
>>>>>>> or dont`t clear buffer(background image) in double buffer???
>>>>>> not really, but you can sna2tex and draw the last image on every 
>>>>>> frame.
>>>>>>
>>>>>> you can also easily emulate 2 buffer while in single buffer, using 
>>>>>> metro
>>>>>> to bang gemhead and clean windows / clear Z buffer.
>>>>>>
>>>>>> Cyrille
>>>>>>
>>>>>>> thanks a lot!!!
>>>>>>>
>>>>>>> Andr?s Ferrari G.
>>>>>>>
>>>>>>> http://www.myspace.com/anfex
>>>>>>
>>>>>>
>>>>>>       
>>>>>> ____________________________________________________________________________________ 
>>>>>>
>>>>>> ¡Obtén la mejor experiencia en la web!
>>>>>> Descarga gratis el nuevo Internet Explorer 8.
>>>>>> http://downloads.yahoo.com/ieak8/?l=e1
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Pd-list at iem.at mailing list
>>>>>> UNSUBSCRIBE and account-management ->
>>>>>> http://lists.puredata.info/listinfo/pd-list
>>>>>>
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reverb.pd.zip
Type: application/zip
Size: 593 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20090619/0a3ceb63/attachment.zip>


More information about the Pd-list mailing list