Hi all,
I'm triyng to play with perspec message.
I notice that if I send a "normal" message to gemwin, everything works ok.
But if I send the same message "compiled" from a message or a number box (or whatever), the center of the scene go to the left bottom point.
OK:
[perspec -2 2 -2 2 1 20< | [gemwin]
KO:
[2< | [perspec -$1 $1 -$1 $1 1 20<
My sistem is a ubuntu 64bit - GEM: ver: 0.92.2 - nvidia GTX 260 with closed source drivers
Someone noticed this? It's only on my machine?
Thanks.
PS: below a patch that shows the behavior (for me).
#N canvas 632 391 450 300 10; #X obj 42 71 gemwin; #X msg 42 31 create , 1; #X obj 40 167 gemhead; #X obj 40 193 cube; #X floatatom 231 126 5 0 0 0 - - -; #X msg 231 144 perspec -$1 $1 -$1 $1 1 20; #X msg 109 31 0 , destroy; #X msg 227 26 perspec -1 1 -1 1 1 20; #X msg 273 123 2; #X msg 228 48 perspec -2 2 -2 2 1 20; #X text 230 3 OK; #X text 235 100 KO; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 4 0 5 0; #X connect 5 0 0 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X connect 8 0 5 0; #X connect 9 0 0 0;
Same problem here on Ubuntu 9.10 with Pd-ext 0.41.4 and GEM 0.92.2. Using a [t f f], [* -1], [pack f f] and [perspec $2 $1 $2 $1 1 20] resolves the problem. ++
Jack
Le vendredi 26 février 2010 à 16:51 +0100, Dario Pedrioli a écrit :
Hi all,
I'm triyng to play with perspec message.
I notice that if I send a "normal" message to gemwin, everything works ok.
But if I send the same message "compiled" from a message or a number box (or whatever), the center of the scene go to the left bottom point.
OK:
[perspec -2 2 -2 2 1 20< | [gemwin]
KO:
[2< | [perspec -$1 $1 -$1 $1 1 20<
My sistem is a ubuntu 64bit - GEM: ver: 0.92.2 - nvidia GTX 260 with closed source drivers
Someone noticed this? It's only on my machine?
Thanks.
PS: below a patch that shows the behavior (for me).
#N canvas 632 391 450 300 10; #X obj 42 71 gemwin; #X msg 42 31 create , 1; #X obj 40 167 gemhead; #X obj 40 193 cube; #X floatatom 231 126 5 0 0 0 - - -; #X msg 231 144 perspec -$1 $1 -$1 $1 1 20; #X msg 109 31 0 , destroy; #X msg 227 26 perspec -1 1 -1 1 1 20; #X msg 273 123 2; #X msg 228 48 perspec -2 2 -2 2 1 20; #X text 230 3 OK; #X text 235 100 KO; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 4 0 5 0; #X connect 5 0 0 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X connect 8 0 5 0; #X connect 9 0 0 0;
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi jack,
thanks, the workaraound works!
Strange behavior.
ciao.
2010/2/26 Jack jack@rybn.org
Same problem here on Ubuntu 9.10 with Pd-ext 0.41.4 and GEM 0.92.2. Using a [t f f], [* -1], [pack f f] and [perspec $2 $1 $2 $1 1 20] resolves the problem. ++
Jack
Le vendredi 26 février 2010 à 16:51 +0100, Dario Pedrioli a écrit :
Hi all,
I'm triyng to play with perspec message.
I notice that if I send a "normal" message to gemwin, everything works ok.
But if I send the same message "compiled" from a message or a number box (or whatever), the center of the scene go to the left bottom point.
OK:
[perspec -2 2 -2 2 1 20< | [gemwin]
KO:
[2< | [perspec -$1 $1 -$1 $1 1 20<
My sistem is a ubuntu 64bit - GEM: ver: 0.92.2 - nvidia GTX 260 with closed source drivers
Someone noticed this? It's only on my machine?
Thanks.
PS: below a patch that shows the behavior (for me).
#N canvas 632 391 450 300 10; #X obj 42 71 gemwin; #X msg 42 31 create , 1; #X obj 40 167 gemhead; #X obj 40 193 cube; #X floatatom 231 126 5 0 0 0 - - -; #X msg 231 144 perspec -$1 $1 -$1 $1 1 20; #X msg 109 31 0 , destroy; #X msg 227 26 perspec -1 1 -1 1 1 20; #X msg 273 123 2; #X msg 228 48 perspec -2 2 -2 2 1 20; #X text 230 3 OK; #X text 235 100 KO; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 4 0 5 0; #X connect 5 0 0 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X connect 8 0 5 0; #X connect 9 0 0 0;
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
On Fri, 2010-02-26 at 17:18 +0100, Dario Pedrioli wrote:
Hi jack,
thanks, the workaraound works!
Strange behavior.
It is not. If you're familiar with compiling, compile the zexy external from the svn source and checkout [rawprint] (It was added just two days ago). It will make clear, that '-12' and '-12' are not the same, but only _look_ the same, when printed with [print].
Roman
p.s.: Contrary to its author, I find that object very illustrative and useful
<wink> <wink>
Thanks to all... now it's clear!
I think [rawprint] is very handy in some cases!
ciao
2010/2/26 Roman Haefeli reduzierer@yahoo.de
On Fri, 2010-02-26 at 17:18 +0100, Dario Pedrioli wrote:
Hi jack,
thanks, the workaraound works!
Strange behavior.
It is not. If you're familiar with compiling, compile the zexy external from the svn source and checkout [rawprint] (It was added just two days ago). It will make clear, that '-12' and '-12' are not the same, but only _look_ the same, when printed with [print].
Roman
p.s.: Contrary to its author, I find that object very illustrative and useful
<wink> <wink>
On Fri, 2010-02-26 at 16:51 +0100, Dario Pedrioli wrote:
[2< | [perspec -$1 $1 -$1 $1 1 20<
The output is correct, but it doesn't produce what you might want.
[-$1(
It does _not_ produce a negative float, but instead it produces a symbol element without selector. Try to feed it with negative numbers, you will see something like:
--12
instead of:
You cannot use arithmetic operators that way. You would have to do the change the sign beforehand
[2( | [* -1] | [$1(
Roman