Hi List,
I was wondering in what ways is it possible to calculate Mandlebrot sets using Gem/Pd/PDP/GridFlow/etc/etc ?
Ideally I'm interested in any techniques anyone could share on the basic idea perhaps in Gem - pedagogy, in this case prevails over a simple ad-hoc solution!
TIA ./d5
On Sat, 28 Jan 2006, day 5 wrote:
I was wondering in what ways is it possible to calculate Mandlebrot sets using Gem/Pd/PDP/GridFlow/etc/etc ?
In GridFlow, the technique I use is to apply a pixel-remapping repeatedly using [#remap_image]. The big downside of it is that rounding errors will show because pixel coördinates are always whole. However there are several upsides, one being that it's incremental and that each increment is rather quick to compute. Classic Julia/Mandelbrot fractals are usually computed by repeating a formula on each point until the point gets kicked out of a circle, and then counts how many repetitions it took. I use one repetition per displayed frame, and the picture refines itself over time. At each increment I can feed in something different, e.g. I may inject live video into the fractal.
You can find out about it in gridflow/pd_examples/feedback_fractal.pd, which was the first real GridFlow patch. (I have other more convincing fractal patches but I've not released them.)
My technique is neither Julia nor Mandelbrot, even though it uses the same formula f(z)=z*z+c, because it uses it in a different way.
AFAIK Ben Bogart uses the same technique and/or the same formula but with GEM. However I haven't closely compared.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Mathieu,
Thank you for your well informed response.
I'll be sure to follow up on #dataflow IRC to ask more of your subjective, experienced input.
./d5
On Jan 30, 2006, at 12:48 AM, Mathieu Bouchard wrote:
On Sat, 28 Jan 2006, day 5 wrote:
I was wondering in what ways is it possible to calculate Mandlebrot sets using Gem/Pd/PDP/GridFlow/etc/etc ?
In GridFlow, the technique I use is to apply a pixel-remapping repeatedly using [#remap_image]. The big downside of it is that rounding errors will show because pixel coördinates are always whole. However there are several upsides, one being that it's incremental and that each increment is rather quick to compute. Classic Julia/Mandelbrot fractals are usually computed by repeating a formula on each point until the point gets kicked out of a circle, and then counts how many repetitions it took. I use one repetition per displayed frame, and the picture refines itself over time. At each increment I can feed in something different, e.g. I may inject live video into the fractal.
You can find out about it in gridflow/pd_examples/feedback_fractal.pd, which was the first real GridFlow patch. (I have other more convincing fractal patches but I've not released them.)
My technique is neither Julia nor Mandelbrot, even though it uses the same formula f(z)=z*z+c, because it uses it in a different way.
AFAIK Ben Bogart uses the same technique and/or the same formula but with GEM. However I haven't closely compared.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju | Freelance Digital Arts Engineer, Montréal QC Canada
Dear list,
Is it possible to get the video signal from a dvb-s card (with the latest drivers from linuxtv) directly within pd?
I have another pb with Gem and separator object on osx (pd 39.2, Gem from latest Hans'installer). with several pix_film and separators, once i load a movie i get this output: separator : state->numTexCoords 4 != m_state.numTexCoords 0 ... separator : state->numTexCoords 4 != m_state.numTexCoords 0
by advance thanks, vincent
On 1/30/06, vincent rioux vincent.rioux@no-log.org wrote:
I have another pb with Gem and separator object on osx (pd 39.2, Gem from latest Hans'installer). with several pix_film and separators, once i load a movie i get this output: separator : state->numTexCoords 4 != m_state.numTexCoords 0 ... separator : state->numTexCoords 4 != m_state.numTexCoords 0
This means you are leaking memory using the separator object. See if moving them after pix_texture gets rid of the message.
Also, I have no idea where Hans gets GEM for his installers, so post the patch or something representitive and I will see if the current CVS version does it.
hi Chris, that was it! thanks for the tip. i will try on linux with Gem cvs when i find time. you can test this pb with the attached patch (simplified). after creating the Gem window, simply loading a video file does produce the memory leak error. i was may be wrong in setting the "separator" object just after the "gemhead" object.
best, vincent
chris clepper wrote:
On 1/30/06, vincent rioux vincent.rioux@no-log.org wrote:
I have another pb with Gem and separator object on osx (pd 39.2, Gem
from latest Hans'installer). with several pix_film and separators, once i load a movie i get this output: separator : state->numTexCoords 4 != m_state.numTexCoords 0 ... separator : state->numTexCoords 4 != m_state.numTexCoords 0
This means you are leaking memory using the separator object. See if moving them after pix_texture gets rid of the message.
Also, I have no idea where Hans gets GEM for his installers, so post the patch or something representitive and I will see if the current CVS version does it.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 514 41 368 545 10; #N canvas 0 22 281 287 gemwin 0; #X obj 12 161 gemwin; #X obj 12 133 r gemwin; #X msg 116 94 create; #X msg 79 93 1; #X obj 15 14 inlet; #X msg 173 95 destroy; #X msg 4 85 FSAA 1; #X obj 22 38 t b b b b; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 7 0; #X connect 5 0 0 0; #X connect 6 0 0 0; #X connect 7 0 6 0; #X connect 7 1 3 0; #X connect 7 2 2 0; #X connect 7 3 5 0; #X restore 30 57 pd gemwin; #X obj 30 1 bng 40 250 50 0 empty empty empty 0 -6 0 8 -241291 -1 -1 ; #X obj 102 223 pix_film; #X obj 147 148 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 147 169 openpanel; #X msg 147 194 open $1; #X obj 102 318 translateXYZ; #X obj 102 259 pix_texture; #X obj 102 343 rotateXYZ; #X obj 102 369 square; #X obj 143 291 separator; #X obj 48 122 gemhead; #X obj 48 167 separator; #X connect 1 0 0 0; #X connect 2 0 7 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 5 0 2 0; #X connect 6 0 8 0; #X connect 7 0 6 0; #X connect 8 0 9 0; #X connect 10 0 6 0; #X connect 11 0 12 0; #X connect 12 0 2 0;
The GEM binaries are either from http://gem.iem.at or directly from
tigital. I've done both in the past and I can't remember which the
current one is.
Hopefully, we can get Gem added to the Pd-extended building, and have a
"stable" version imported into the pure-data CVS. Then this will
question be much clearer.
.hc
On Jan 31, 2006, at 4:19 AM, vincent rioux wrote:
hi Chris, that was it! thanks for the tip. i will try on linux with Gem cvs when i find time. you can test this pb with the attached patch (simplified). after creating the Gem window, simply loading a video file does
produce the memory leak error. i was may be wrong in setting the "separator" object just after the
"gemhead" object.best, vincent
chris clepper wrote:On 1/30/06, vincent rioux
vincent.rioux@no-log.org wrote:I have another pb with Gem and separator object on osx (pd 39.2,
Gem
from latest Hans'installer). with several pix_film and separators, once i load a movie i get this
output: separator : state->numTexCoords 4 != m_state.numTexCoords 0 ... separator : state->numTexCoords 4 != m_state.numTexCoords 0This means you are leaking memory using the separator object. See if moving them after pix_texture gets rid of the message.
Also, I have no idea where Hans gets GEM for his installers, so post the patch or something representitive and I will see if the current CVS version does it.
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list#N canvas 514 41 368 545 10; #N canvas 0 22 281 287 gemwin 0; #X obj 12 161 gemwin; #X obj 12 133 r gemwin; #X msg 116 94 create; #X msg 79 93 1; #X obj 15 14 inlet; #X msg 173 95 destroy; #X msg 4 85 FSAA 1; #X obj 22 38 t b b b b; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 7 0; #X connect 5 0 0 0; #X connect 6 0 0 0; #X connect 7 0 6 0; #X connect 7 1 3 0; #X connect 7 2 2 0; #X connect 7 3 5 0; #X restore 30 57 pd gemwin; #X obj 30 1 bng 40 250 50 0 empty empty empty 0 -6 0 8 -241291 -1 -1 ; #X obj 102 223 pix_film; #X obj 147 148 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 147 169 openpanel; #X msg 147 194 open $1; #X obj 102 318 translateXYZ; #X obj 102 259 pix_texture; #X obj 102 343 rotateXYZ; #X obj 102 369 square; #X obj 143 291 separator; #X obj 48 122 gemhead; #X obj 48 167 separator; #X connect 1 0 0 0; #X connect 2 0 7 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 5 0 2 0; #X connect 6 0 8 0; #X connect 7 0 6 0; #X connect 8 0 9 0; #X connect 10 0 6 0; #X connect 11 0 12 0; #X connect 12 0 2 0; _______________________________________________ PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Man has survived hitherto because he was too ignorant to know how to
realize his wishes.
Now that he can realize them, he must either change them, or perish.
-William Carlos
Williams
Hey Vincent,
does the dvds card give you a V4L2 interface or some other thing that is independant?
As far as I know you can only tune into V4L devices, and I'm working on testing gem with v4l2, but I still can't get Gem to compile on my AMD64 debian unstable. blech.
Somewhat related question: Could we tune into network streams using the ffmpeg loader?
would be nice to do that in Gem on Linux, since QTL files open well in OSX for doing such things. And yes we could use the pidip objects and send the texture to Gem as well....
.b.
vincent rioux wrote:
Dear list,
Is it possible to get the video signal from a dvb-s card (with the latest drivers from linuxtv) directly within pd?
I have another pb with Gem and separator object on osx (pd 39.2, Gem from latest Hans'installer). with several pix_film and separators, once i load a movie i get this output: separator : state->numTexCoords 4 != m_state.numTexCoords 0 ... separator : state->numTexCoords 4 != m_state.numTexCoords 0
by advance thanks, vincent
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi Ben,
B. Bogart wrote:
Hey Vincent,
does the dvds card give you a V4L2 interface or some other thing that is independant?
well, as far as i understood latest drivers from linuxtv are designed to merge v4l and dvb interfaces. i found that kaffeine will look for dvb device in sth like /video/dvb/... (i don't have the computer in front of me right now so i am pretty sure the path is a bit wrong). btw, using kaffeine is nice because it can scan automatically satellite channels...
xawtv seems to recognize the dvb device just like anyother v4l device. even Gem e.g. seems to recognize the dvb device. but in both cases (xawtv and Gem) i can't get any image...
i thought about using a video stream to get the tv flow in Pd but did not experiment a lot yet.
greetings, vincent
As far as I know you can only tune into V4L devices, and I'm working on testing gem with v4l2, but I still can't get Gem to compile on my AMD64 debian unstable. blech.
Somewhat related question: Could we tune into network streams using the ffmpeg loader?
would be nice to do that in Gem on Linux, since QTL files open well in OSX for doing such things. And yes we could use the pidip objects and send the texture to Gem as well....
.b.
vincent rioux wrote:
Dear list,
Is it possible to get the video signal from a dvb-s card (with the latest drivers from linuxtv) directly within pd?