hi all does anybody know a way to change axis of the gemwin.
if i make a rotation to square, it rotate around an axis which is the middle of the gemwin
if i first make a translation to the square and after a rotation, it still rotate around the axis in the middle of the gemwin.
is it possible to move the axis of rotation in gem?
one message for 2 questions (discount message!)
when i apply a texture to a polygon (still in Gem), a strange event occurs to my texture
with the following patch, my texture "breaks" in the middle. it would be nice to texture a free form like polygon and to resize the form as i wish without such perturbation in the texture.
have nice time nicolas
#N canvas 407 50 516 680 10; #X obj 19 83 gemwin; #X msg 21 50 create; #X msg 21 26 destroy; #X msg 75 49 1; #X msg 79 26 0; #X obj 187 56 gemhead; #X msg 344 129 auto $1; #X obj 344 107 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 311 44 openpanel; #X msg 311 69 open $1; #X msg 311 16 bang; #X msg 242 369 1 2 0; #X msg 232 468 5 -1 3; #X obj 186 233 pix_film; #X obj 185 318 pix_texture; #X msg 119 371 -0.5 2 0; #X obj 181 506 polygon 4; #X msg 112 469 -0.5 0.1 0; #X obj 305 443 pack f f f; #X obj 396 443 t b; #X floatatom 302 414 5 0 0 0 - - -; #X floatatom 352 412 5 0 0 0 - - -; #X floatatom 397 408 5 0 0 0 - - -; #X obj 315 474 prepend set; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 5 0 13 0; #X connect 6 0 13 0; #X connect 7 0 6 0; #X connect 8 0 9 0; #X connect 9 0 13 0; #X connect 10 0 8 0; #X connect 11 0 16 3; #X connect 12 0 16 2; #X connect 13 0 14 0; #X connect 14 0 16 0; #X connect 15 0 16 4; #X connect 17 0 16 1; #X connect 18 0 23 0; #X connect 19 0 18 0; #X connect 19 0 12 0; #X connect 20 0 18 0; #X connect 20 0 19 0; #X connect 21 0 18 1; #X connect 21 0 19 0; #X connect 22 0 18 2; #X connect 22 0 19 0; #X connect 23 0 12 0;
hello
if
gemhead | translate | rotate | square
does not work, try :
gemhead | rotate | translate | square
transformation order is important.
cyrille
sl1200mk2@free.fr a écrit :
hi all does anybody know a way to change axis of the gemwin.
if i make a rotation to square, it rotate around an axis which is the middle of the gemwin
if i first make a translation to the square and after a rotation, it still rotate around the axis in the middle of the gemwin.
is it possible to move the axis of rotation in gem?
one message for 2 questions (discount message!)
when i apply a texture to a polygon (still in Gem), a strange event occurs to my texture
with the following patch, my texture "breaks" in the middle. it would be nice to texture a free form like polygon and to resize the form as i wish without such perturbation in the texture.
have nice time nicolas
#N canvas 407 50 516 680 10; #X obj 19 83 gemwin; #X msg 21 50 create; #X msg 21 26 destroy; #X msg 75 49 1; #X msg 79 26 0; #X obj 187 56 gemhead; #X msg 344 129 auto $1; #X obj 344 107 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 311 44 openpanel; #X msg 311 69 open $1; #X msg 311 16 bang; #X msg 242 369 1 2 0; #X msg 232 468 5 -1 3; #X obj 186 233 pix_film; #X obj 185 318 pix_texture; #X msg 119 371 -0.5 2 0; #X obj 181 506 polygon 4; #X msg 112 469 -0.5 0.1 0; #X obj 305 443 pack f f f; #X obj 396 443 t b; #X floatatom 302 414 5 0 0 0 - - -; #X floatatom 352 412 5 0 0 0 - - -; #X floatatom 397 408 5 0 0 0 - - -; #X obj 315 474 prepend set; #X connect 1 0 0 0; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 5 0 13 0; #X connect 6 0 13 0; #X connect 7 0 6 0; #X connect 8 0 9 0; #X connect 9 0 13 0; #X connect 10 0 8 0; #X connect 11 0 16 3; #X connect 12 0 16 2; #X connect 13 0 14 0; #X connect 14 0 16 0; #X connect 15 0 16 4; #X connect 17 0 16 1; #X connect 18 0 23 0; #X connect 19 0 18 0; #X connect 19 0 12 0; #X connect 20 0 18 0; #X connect 20 0 19 0; #X connect 21 0 18 1; #X connect 21 0 19 0; #X connect 22 0 18 2; #X connect 22 0 19 0; #X connect 23 0 12 0;
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
cyrille henry wrote:
hello
hi.
just a quick comment, as i believe, from nico's last email, that it is not clear why "this works and that does not"
if
gemhead | translate | rotate | square
does not work,
this is *wrong*, it works!!!
try :
gemhead | rotate | translate | square
this works "too", but both patches are _different_
transformation order is important.
this is the magic!
imagine following:
5 steps forward 2) you are standing at the "origin"; you walk 5 steps forward; you turn 90° to the right
now think: is the result of 1) and 2) the same ? (this is: after the 2 "transformations", are you standing at the same spot and are you looking in the same direction ?)
this is the way, openGL works
mfg.cas..r IOhannes
Le 26 nov. 04, à 09:34, Johannes M Zmoelnig a écrit :
cyrille henry wrote:
hello
hi.
just a quick comment, as i believe, from nico's last email, that it is not clear why "this works and that does not"
if gemhead | translate | rotate | square does not work,
this is *wrong*, it works!!!
it works but i don't know how to explain in english so i've wrote "does not work" disculp
try : gemhead | rotate | translate | square
this works "too", but both patches are _different_
transformation order is important.
this is the magic!
imagine following:
- you are standing at the "origin"; you turn 90° to the right; you
walk 5 steps forward 2) you are standing at the "origin"; you walk 5 steps forward; you turn 90° to the right
now think: is the result of 1) and 2) the same ? (this is: after the 2 "transformations", are you standing at the same spot and are you looking in the same direction ?)
this is the way, openGL works
and it works well
and what do you think about my polygon and texture question?
mfg.cas..r IOhannes
thank you
nico
sl1200mk2@free.fr wrote:
hi all does anybody know a way to change axis of the gemwin.
if i make a rotation to square, it rotate around an axis which is the middle of the gemwin
if i first make a translation to the square and after a rotation, it still rotate around the axis in the middle of the gemwin.
is it possible to move the axis of rotation in gem?
whenever you do a transformation (rotate, scale or translate) you are actually changing the local coordinate-system (this is exactly what i would call "move the axis of rotation", but a bit more powerful)
mfg.a.sdr IOhannes
sl1200mk2@free.fr wrote:
hi all
one message for 2 questions (discount message!)
(bad style ;-))
when i apply a texture to a polygon (still in Gem), a strange event occurs to my texture
with the following patch, my texture "breaks" in the middle. it would be nice to texture a free form like polygon and to resize the form as i wish without such perturbation in the texture.
could you make some screenshots of how it looks like and how you would like to have it ?
i am not really sure what "break" means; to me it sounds like the texture would not be continuous any more, which i cannot reproduce when trying your patch (which btw, is bug-prone due to undefined behaviour)
mfg.a.sdr IOhannes
the white line is "break"
Le 26 nov. 04, à 10:15, Johannes M Zmoelnig a écrit :
sl1200mk2@free.fr wrote:
hi all
one message for 2 questions (discount message!)
(bad style ;-))
when i apply a texture to a polygon (still in Gem), a strange event occurs to my texture with the following patch, my texture "breaks" in the middle. it would be nice to texture a free form like polygon and to resize the form as i wish without such perturbation in the texture.
could you make some screenshots of how it looks like and how you would like to have it ?
i am not really sure what "break" means; to me it sounds like the texture would not be continuous any more, which i cannot reproduce when trying your patch (which btw, is bug-prone due to undefined behaviour)
mfg.a.sdr IOhannes
hello,
it look like the white line is folowing the shape of the polygone. can you anable lighting to see a little bit better what is appening?
cheers C
nico a écrit :
the white line is "break"
Le 26 nov. 04, à 10:15, Johannes M Zmoelnig a écrit :
sl1200mk2@free.fr wrote:
hi all
one message for 2 questions (discount message!)
(bad style ;-))
when i apply a texture to a polygon (still in Gem), a strange event occurs to my texture with the following patch, my texture "breaks" in the middle. it would be nice to texture a free form like polygon and to resize the form as i wish without such perturbation in the texture.
could you make some screenshots of how it looks like and how you would like to have it ?
i am not really sure what "break" means; to me it sounds like the texture would not be continuous any more, which i cannot reproduce when trying your patch (which btw, is bug-prone due to undefined behaviour)
mfg.a.sdr IOhannes
i've draw line to show the break i believe that texture is following the deformation of a square diagonal
Le 26 nov. 04, à 11:00, Johannes M Zmoelnig a écrit :
nico wrote:
the white line is "break"
thanks for the screenshot.
unfortunately i cannot see a white-line when i try your patch with (e.g.) anim-1.mov (i see it, of course on your image)
hmmm...
mfg.a.dsr IOhannes
the white line was on my original film...
don't you notice a strange deformation of your picture if you extend a little bit more the polygon corner Le 26 nov. 04, à 11:11, Johannes M Zmoelnig a écrit :
Johannes M Zmoelnig wrote:
unfortunately i cannot see a white-line when i try your patch with (e.g.) anim-1.mov
see attachment
mfg.a.sdr IOhannes
hello, I think it's cause by the shape of the primitive. can you try to texture a square if that help? c
nico a écrit :
the white line was on my original film...
don't you notice a strange deformation of your picture if you extend a little bit more the polygon corner Le 26 nov. 04, à 11:11, Johannes M Zmoelnig a écrit :
Johannes M Zmoelnig wrote:
unfortunately i cannot see a white-line when i try your patch with (e.g.) anim-1.mov
see attachment
mfg.a.sdr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
texturing a square is ok but i can't move corners of the square individually Le 26 nov. 04, à 11:33, cyrille henry a écrit :
hello, I think it's cause by the shape of the primitive. can you try to texture a square if that help? c
nico a écrit :
the white line was on my original film... don't you notice a strange deformation of your picture if you extend a little bit more the polygon corner Le 26 nov. 04, à 11:11, Johannes M Zmoelnig a écrit :
Johannes M Zmoelnig wrote:
unfortunately i cannot see a white-line when i try your patch with (e.g.) anim-1.mov
see attachment
mfg.a.sdr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
nico a écrit :
texturing a square is ok but i can't move corners of the square individually
yes, of course. that also why the texture is ok.
what do you expect while moving the polygon corner? in your exemple, the poly is drown with 2 triangles. so the corner of the texture is made by the shape of your primitive. juste look at the shape of your primitive and you'll undersand the "corner" in the texture. (take your primitive, remove the texture, enable lighting and make it rotate : you'll see a corner in the shape of the primitive. the texture is apply to the shape in a logical way)
if you wish smouth deformation of the shape, maybee curve3d could help.
otherwise, i don't understant what you want.
cheer Cyrille
Le 26 nov. 04, à 11:33, cyrille henry a écrit :
hello, I think it's cause by the shape of the primitive. can you try to texture a square if that help? c
nico a écrit :
the white line was on my original film... don't you notice a strange deformation of your picture if you extend a little bit more the polygon corner Le 26 nov. 04, à 11:11, Johannes M Zmoelnig a écrit :
Johannes M Zmoelnig wrote:
unfortunately i cannot see a white-line when i try your patch with (e.g.) anim-1.mov
see attachment
mfg.a.sdr IOhannes
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list