I want to build this visual 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?
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/ 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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I made a similar PD patch a while back that has the same instructional purpose as that processing sketch.
However, I used data structure graphics and vanilla objects so it's not going to translate directly into GEM if that's the route you want to go.
If it's helpful to you, enjoy.
-Stephen
On Wed, Apr 3, 2013 at 4:59 AM, Cyrille Henry ch@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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
Hi Stephen, your patch is nice, and I didn't think of data structures for some reason. But I'll also give a try to Cyrille's suggestion. What I'd like is to have the evolution of the sine without anything appended to it, like the values in the array that haven't been set yet, you know what I mean? Thanks for sharing.
On Wed, Apr 3, 2013 at 3:25 PM, Stephen Lucas s9lucas@gmail.com wrote:
I made a similar PD patch a while back that has the same instructional purpose as that processing sketch.
However, I used data structure graphics and vanilla objects so it's not going to translate directly into GEM if that's the route you want to go.
If it's helpful to you, enjoy.
-Stephen
On Wed, Apr 3, 2013 at 4:59 AM, Cyrille Henry ch@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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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...
On Wed, Apr 3, 2013 at 12:59 PM, Cyrille Henry ch@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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
______________________________**_________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list
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@chnry.net mailto:ch@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@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list> _________________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
Sorry, meant Pd-extended...
On Wed, Apr 3, 2013 at 5:51 PM, Cyrille Henry ch@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@chnry.net mailto: ch@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/ < 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@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/__**listinfo/pd-listhttp://lists.puredata.info/__listinfo/pd-list< http://lists.puredata.info/**listinfo/pd-listhttp://lists.puredata.info/listinfo/pd-list
______________________________**___________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__**
listinfo/pd-list http://lists.puredata.info/__listinfo/pd-list < http://lists.puredata.info/**listinfo/pd-listhttp://lists.puredata.info/listinfo/pd-list
Hi Alexandros,
attached is an example to do this with vanilla pd using datastructs instead of GEM.
You'll have to save both files (sine-wave-sub.pd and sine-wave.pd) under these names in the same folder and open up sine-wave.pd. The animation should start right away...
Is that what you were looking for?
-- Orm
Hi Orm, yes this is exactly what I wanted to do. Thanks!
On Wed, Apr 3, 2013 at 7:01 PM, Orm Finnendahl < o.finnendahl@inm.mh-freiburg.de> wrote:
Hi Alexandros,
attached is an example to do this with vanilla pd using datastructs instead of GEM.
You'll have to save both files (sine-wave-sub.pd and sine-wave.pd) under these names in the same folder and open up sine-wave.pd. The animation should start right away...
Is that what you were looking for?
-- Orm
Btw-- I just uploaded a patch that adds [drawoval], [filledoval], [drawrectangle], and [filledrectangle] to data structure drawing instructions. This way you can just specify a pair of bounding box coords and let tk draw the circle, rather than simulating one with a polygon with lots of sides. :)
-Jonathan
----- Original Message -----
From: Orm Finnendahl o.finnendahl@inm.mh-freiburg.de To: pd-list@iem.at Cc: Sent: Wednesday, April 3, 2013 12:01 PM Subject: Re: [PD] Drawing a sine function dynamically in Gem
Hi Alexandros,
attached is an example to do this with vanilla pd using datastructs instead of GEM.
You'll have to save both files (sine-wave-sub.pd and sine-wave.pd) under these names in the same folder and open up sine-wave.pd. The animation should start right away...
Is that what you were looking for?
-- Orm
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks everybody for your help. I finally made a patch using Gem, exactly the way I wanted it. What I was missing was Patrice's implementation for the sine curve. I've attached my final patch. Cheers
On Fri, Apr 5, 2013 at 12:36 AM, Jonathan Wilkes jancsika@yahoo.com wrote:
Btw-- I just uploaded a patch that adds [drawoval], [filledoval], [drawrectangle], and [filledrectangle] to data structure drawing instructions. This way you can just specify a pair of bounding box coords and let tk draw the circle, rather than simulating one with a polygon with lots of sides. :)
-Jonathan
----- Original Message -----
From: Orm Finnendahl o.finnendahl@inm.mh-freiburg.de To: pd-list@iem.at Cc: Sent: Wednesday, April 3, 2013 12:01 PM Subject: Re: [PD] Drawing a sine function dynamically in Gem
Hi Alexandros,
attached is an example to do this with vanilla pd using datastructs instead of GEM.
You'll have to save both files (sine-wave-sub.pd and sine-wave.pd) under these names in the same folder and open up sine-wave.pd. The animation should start right away...
Is that what you were looking for?
-- Orm
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You may want to investigate latest version of pd-l2ork that also includes ability to assign different font sizes to drawnumber and drawsymbol (optional last argument, can be assigned to a variable but currently only supports pd-defined font sizes). It also separates the two into two distinct externals so that when you do the help on drawsymbol you don't end-up with drawnumber help file. I don't have a help file amended yet. It would be great if this ended up in the core documentation project.
-----Original Message----- From: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] On Behalf Of Jonathan Wilkes Sent: Thursday, April 04, 2013 5:36 PM To: Orm Finnendahl; pd-list@iem.at Subject: Re: [PD] Drawing a sine function dynamically in Gem
Btw-- I just uploaded a patch that adds [drawoval], [filledoval], [drawrectangle], and [filledrectangle] to data structure drawing instructions. This way you can just specify a pair of bounding box coords and let tk draw the circle, rather than simulating one with a polygon with lots of sides. :)
-Jonathan
----- Original Message -----
From: Orm Finnendahl o.finnendahl@inm.mh-freiburg.de To: pd-list@iem.at Cc: Sent: Wednesday, April 3, 2013 12:01 PM Subject: Re: [PD] Drawing a sine function dynamically in Gem
Hi Alexandros,
attached is an example to do this with vanilla pd using datastructs instead of GEM.
You'll have to save both files (sine-wave-sub.pd and sine-wave.pd) under these names in the same folder and open up sine-wave.pd. The animation should start right away...
Is that what you were looking for?
-- Orm
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
----- Original Message -----
From: Ivica Ico Bukvic ico@vt.edu To: 'Jonathan Wilkes' jancsika@yahoo.com Cc: pd-list@iem.at Sent: Saturday, April 6, 2013 9:56 PM Subject: RE: [PD] Drawing a sine function dynamically in Gem
You may want to investigate latest version of pd-l2ork that also includes ability to assign different font sizes to drawnumber and drawsymbol (optional last argument, can be assigned to a variable but currently only supports pd-defined font sizes). It also separates the two into two distinct externals so that when you do the help on drawsymbol you don't end-up with drawnumber help file. I don't have a help file amended yet. It would be great if this ended up in the core documentation project.
Sounds good.
Another one I'm working on:
a single "float y" field in its template that is contained within the graph's gl_list? 3) If so, does the horizontal position of the mouse-click lie within the horizontal bounds of an element of the garray or ds array we found in the gl_list? 4) If so, set the "y" value of the array element to the "y" position of the mouse click.
This should allow "jump on click" for "Put" menu arrays-- something mentioned in another thread recently, as well as easy "jump on click" data structure multisliders.
Also-- I don't think it'd be too hard to add [drawimage ./foo.gif]. It's a little trickier because you have to remember to remove the tk photo when the object is destroyed to prevent memory leaks.
Also, it'd be nice to have an -s flag so you can load a sequence of images with something like [drawimage -s blah ./foo%d.gif]. The idea is that this object would tell the gui to load foo01.gif foo02.gif etc. into memory and display whichever image for which %d matches the value of "foo". Then you could easily animate sprites on a canvas! The nice thing is that pd would just be passing an itemconfigure message with an image name to the gui, so it should be way more efficient than sending array data or deleting/creating polygon coords.
-Jonathan
-----Original Message----- From: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] On Behalf Of Jonathan Wilkes Sent: Thursday, April 04, 2013 5:36 PM To: Orm Finnendahl; pd-list@iem.at Subject: Re: [PD] Drawing a sine function dynamically in Gem
Btw-- I just uploaded a patch that adds [drawoval], [filledoval], [drawrectangle], and [filledrectangle] to data structure drawing instructions. This way you can just specify a pair of bounding box coords and let tk draw the circle, rather than simulating one with a polygon with lots of sides. :)
-Jonathan
----- Original Message -----
From: Orm Finnendahl o.finnendahl@inm.mh-freiburg.de To: pd-list@iem.at Cc: Sent: Wednesday, April 3, 2013 12:01 PM Subject: Re: [PD] Drawing a sine function dynamically in Gem
Hi Alexandros,
attached is an example to do this with vanilla pd using datastructs instead of GEM.
You'll have to save both files (sine-wave-sub.pd and sine-wave.pd) under these names in the same folder and open up sine-wave.pd. The animation should start right away...
Is that what you were looking for?
-- Orm
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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@chnry.net mailto:ch@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@chnry.net <mailto:ch@chnry.net> <mailto:ch@chnry.net <mailto:ch@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@iem.at <mailto:Pd-list@iem.at> <mailto:Pd-list@iem.at <mailto:Pd-list@iem.at>> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list> _________________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> <mailto:Pd-list@iem.at <mailto:Pd-list@iem.at>> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
Pd-list@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
Hello,
I made an abstraction that draws in opengl directly from tables. just draw your sin in the y tables, and the x position in your x table. see help patch,
Best, n
Le 03/04/13 18:04, Jack a écrit :
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@chnry.net mailto:ch@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@chnry.net <mailto:ch@chnry.net> <mailto:ch@chnry.net <mailto:ch@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@iem.at <mailto:Pd-list@iem.at> <mailto:Pd-list@iem.at <mailto:Pd-list@iem.at>> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list> _________________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> <mailto:Pd-list@iem.at <mailto:Pd-list@iem.at>> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/__listinfo/pd-list <http://lists.puredata.info/listinfo/pd-list>
Pd-list@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
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Mit, 2013-04-03 at 11:59 +0200, Cyrille Henry wrote:
hello,
you have lot's of solution to draw a sinus curve in Gem.
[...]
you can also do like in openGL : using GEMglBegin, GEMglVextex (many of them thanks to an iterative loop), and GEMglEnd
I'm interested in understanding that approach. So far I was able to draw a simple line:
[gemhead] | [GEMglBegin GL_LINES] | [GEMglVertex2d -2 -2] | [GEMglVertex2d 2 2] | [GEMglEnd]
But how are you creating an iterative loop out of this? I tried after GEMglBegin:
[t a b a]
| |
| [20(
| |
| [until]
| |
| [gemlist ]
| | <- put the two [GEMglVertex2d] here.
|
[GEMglEnd]
However, this causes an error on every frame: GL: invalid operation
What is the correct way to do this?
Roman
Le 02/04/2013 23:18, Alexandros Drymonitis a écrit :
I want to build this visual 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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hello,
you just have to put the gemhead in the gemlist befor the glBegin. see attachement.
cheers c
Le 10/04/2013 22:11, Roman Haefeli a écrit :
On Mit, 2013-04-03 at 11:59 +0200, Cyrille Henry wrote:
hello,
you have lot's of solution to draw a sinus curve in Gem.
[...]
you can also do like in openGL : using GEMglBegin, GEMglVextex (many of them thanks to an iterative loop), and GEMglEnd
I'm interested in understanding that approach. So far I was able to draw a simple line:
[gemhead] | [GEMglBegin GL_LINES] | [GEMglVertex2d -2 -2] | [GEMglVertex2d 2 2] | [GEMglEnd]
But how are you creating an iterative loop out of this? I tried after GEMglBegin:
[t a b a] | |
| [20(
| |
| [until]
| |
| [gemlist ] | | <- put the two [GEMglVertex2d] here. | [GEMglEnd]However, this causes an error on every frame: GL: invalid operation
What is the correct way to do this?
Roman
Le 02/04/2013 23:18, Alexandros Drymonitis a écrit :
I want to build this visual 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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Mit, 2013-04-10 at 22:28 +0200, Cyrille Henry wrote:
hello,
you just have to put the gemhead in the gemlist befor the glBegin. see attachement.
Got it. Thanks.
Roman
Le 10/04/2013 22:11, Roman Haefeli a écrit :
On Mit, 2013-04-03 at 11:59 +0200, Cyrille Henry wrote:
hello,
you have lot's of solution to draw a sinus curve in Gem.
[...]
you can also do like in openGL : using GEMglBegin, GEMglVextex (many of them thanks to an iterative loop), and GEMglEnd
I'm interested in understanding that approach. So far I was able to draw a simple line:
[gemhead] | [GEMglBegin GL_LINES] | [GEMglVertex2d -2 -2] | [GEMglVertex2d 2 2] | [GEMglEnd]
But how are you creating an iterative loop out of this? I tried after GEMglBegin:
[t a b a] | |
| [20(
| |
| [until]
| |
| [gemlist ] | | <- put the two [GEMglVertex2d] here. | [GEMglEnd]However, this causes an error on every frame: GL: invalid operation
What is the correct way to do this?
Roman
Le 02/04/2013 23:18, Alexandros Drymonitis a écrit :
I want to build this visual 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@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hello,
attached patch is inspired from code found in link you provide:
for (int i = 0; i< width; i++){ px2 = width/8 + cos(radians(angle2))*(radius); py2 = 75 + sin(radians(angle2))*(radius); point(width/8+radius+i, py2); angle2 -= frequency2; }
using Gem and recursion
Colet Patrice
De: "Alexandros Drymonitis" adrcki@gmail.com
I want to build this visual 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?