Hi,
i can' get my head around this tiny little problem:
I want to rotate a text3d object vertically around its center axis.
Seemed simple enough on a first guess. But the resulting rotation is
always slightly off center and vertical rotation seems to see the upper
half of the text as its middle (sorry if this is confusing)
It's clearly visible in [text3d]'s helppatch, where, if you drag the
first numberbox on the rotateXYZ object, you can see that the rotation
axis is not centered.
Attached is another example that explains my problem a little better
(hopefully). The [ortho} object is not part of the problem btw.
Can somebody help or explain ?
Thank you !
Oliver
#N canvas 561 133 692 344 10;
#X declare -lib Gem;
#X obj 405 19 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#N canvas 0 22 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 142 68 set create;
#X msg 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X restore 410 58 pd gemwin;
#X msg 410 39 destroy;
#X text 406 18 Create window:;
#X obj 50 18 tgl 18 0 empty empty empty 0 -9 0 10 #fcfcfc #000000 #000000 0 1;
#X obj 50 178 rotateXYZ;
#X floatatom 64 154 5 0 0 0 - - - 0;
#X obj 50 201 ortho;
#X obj 50 43 gemhead 50;
#X obj 406 137 tgl 18 0 empty empty empty 0 -9 0 10 #fcfcfc #000000 #000000 0 1;
#X obj 406 162 gemhead 60;
#X obj 406 211 rectangle 4 0.01;
#X obj 416 186 rectangle 0.01 4;
#X floatatom 101 101 5 0 0 0 - - - 0;
#X obj 50 125 translateXYZ;
#X obj 243 78 vsl 25 50 0 1 0 0 empty empty empty 0 -9 0 10 #fcfcfc #000000
#000000 0 1;
#X obj 243 136 * 180;
#X text 276 80 vertical flipping is not centered, f 12;
#X text 126 13 changing translateXYZ to center the text doesn't help, f 15;
#X msg 93 76 0.15;
#X msg 126 76 0;
#X obj 50 226 text3d 33333;
#X text 432 137 cross;
#X obj 103 281 _textbbox \; width 2;
#X obj 160 233 hradio 18 1 0 4 empty empty empty 0 -9 0 10 #fcfcfc #000000
#000000 0;
#X obj 160 256 - 1;
#X obj 50 250 color 1 0 0;
#X obj 531 19 declare -lib Gem;
#X obj 160 185 loadbang;
#X msg 160 208 1;
#X connect 1 0 2 0;
#X connect 2 0 1 0;
#X connect 4 0 8 0;
#X connect 5 0 7 0;
#X connect 6 0 5 1;
#X connect 7 0 21 0;
#X connect 8 0 14 0;
#X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 10 0 12 0;
#X connect 13 0 14 2;
#X connect 14 0 5 0;
#X connect 15 0 16 0;
#X connect 16 0 6 0;
#X connect 19 0 13 0;
#X connect 20 0 13 0;
#X connect 21 0 26 0;
#X connect 21 1 23 1;
#X connect 24 0 25 0;
#X connect 25 0 23 2;
#X connect 26 0 23 0;
#X connect 28 0 29 0;
#X connect 29 0 24 0;
---
[email protected] - the Pure Data mailinglist
https://lists.iem.at/hyperkitty/list/[email protected]/message/ALND6Y4UOQI3BFTGYX7LQBY3PQCZZMGE/
To unsubscribe send an email to [email protected] mailing list
UNSUBSCRIBE and account-management -> https://lists.iem.at/