[PD] Drawing a sine function dynamically in Gem

Jack jack at rybn.org
Wed Apr 3 18:04:23 CEST 2013


Le 03/04/2013 17:02, Alexandros Drymonitis a écrit :
> Sorry, meant Pd-extended...
>
>
> On Wed, Apr 3, 2013 at 5:51 PM, Cyrille Henry <ch at chnry.net
> <mailto:ch at chnry.net>> wrote:
>
>
>
>     Le 03/04/2013 16:30, Alexandros Drymonitis a écrit :
>
>         It's a bit strange but Pd can't create [GEMglVertex] or
>         [gemvertexbuffer]. In the browser I found [gemframebuffer] but
>         not the vertex one. [GEMglBegin] and [GEMglEnd] are being
>         created, no prob.
>         I'm using the latest Pd...
>
>     lattest pd will not help. you need Gem for all of this.
>     since GEMglBegin works, you certainly have one version of Gem.
>     since gemvertexbuffer did not create, your version of Gem too old.
>     according to gem website, the last release is 93.3, from
>     11/11/2011. that's the explanation.
>
>     cheers
>     c
>
>
>
>
>
>
>         On Wed, Apr 3, 2013 at 12:59 PM, Cyrille Henry <ch at chnry.net
>         <mailto:ch at chnry.net> <mailto:ch at chnry.net
>         <mailto:ch at chnry.net>>> wrote:
>
>             hello,
>
>             you have lot's of solution to draw a sinus curve in Gem.
>
>             the easiest would be to use scopeXYZ, but you'll have to
>         do the sin in audio signal.
>
>             the most efficient is to use gemvertexbuffer to draw a
>         line between points specified in table.
>
>             the fastest to code is to use repeat/separator/curve 2 in
>         order to draw many lines
>
>             you can also do like in openGL : using GEMglBegin,
>         GEMglVextex (many of them thanks to an iterative loop), and
>         GEMglEnd
>
>             you can also do that in shader, but that would be to much
>         complexity for this.
>
>             and you can certainly find other way to do that, but i
>         think i cover the most used.
>             cheers
>             c
>
>
>             Le 02/04/2013 23:18, Alexandros Drymonitis a écrit :
>
>                 I want to build this visual
>         http://processing.org/__learning/trig/
>         <http://processing.org/learning/trig/> in Pd, but I want the
>         sine curve to be drawn dynamically with every circle spin. It
>         seems quite hard though.
>
>
>                 I don't know which object would be best. I tried
>         either [curve] but the parameters are way too many and I'm not
>         sure if precision is really possible. Then I tried [square
>         0.008] in combination with [repeat] but also doesn't work.
>                 Anyone knows how to do this?
>
>
>                 _________________________________________________
>                 Pd-list at iem.at <mailto:Pd-list at iem.at>
>         <mailto:Pd-list at iem.at <mailto:Pd-list at iem.at>> mailing list
>                 UNSUBSCRIBE and account-management ->
>         http://lists.puredata.info/__listinfo/pd-list
>         <http://lists.puredata.info/listinfo/pd-list>
>
>
>             _________________________________________________
>             Pd-list at iem.at <mailto:Pd-list at iem.at>
>         <mailto:Pd-list at iem.at <mailto:Pd-list at iem.at>> mailing list
>             UNSUBSCRIBE and account-management ->
>         http://lists.puredata.info/__listinfo/pd-list
>         <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
Hello Alexandros,

Do you have the current Pd-extended (which is 0.43.4) ? You should have
a recent Gem whit it.
For glVertex, you have to write [GEMglVertex3f] to use float.
++

Jack


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130403/425b298e/attachment-0001.htm>


More information about the Pd-list mailing list