hello,
Enkidu (Xt#) a écrit :
Hello there,
I got 2+ questions and a comment:
- can someone tell me if there is a way to texture an object with a
gradient, am I missing an external or function in GEM. Of course, I could use a picture but I like the procedural way ;-)
you can use the primTri that provide a simple triangle primitive, with different color for each point.
you can also try making your own primitive with openGL wrapper. like in the attachement.
cyrille
- When I set the gemhead to less than 0 it ignores the view changes...
Cool (I like that feature) but..... I'd love to exclude the lighting also. Do you see any way to do that on a chosen gemhead (ie -1)?
Now to my experience with pix_write. As hinted (thanx to the list) I tryed to grab single pictures, then combining it to a movie. But the framerate is unacceptable (sound is eaven worse). I think my machine is fast enouth but then again, you never know. Could there be a way to export the gemwin to the firewire port (I'd love that) or can I export the whole gemwin through Network (ie netsend) to a client patch on another computer?
Thanx for helping out,
Enkidu
Enkidu @ www.Einheit7.de/Personal/Enkidu http://www.Einheit7.de/Personal/Enkidu Mr.&Mrs.T's Music @ www.Einheit7.de/Mr-T http://www.Einheit7.de/Mr-T
I.A.T.W.I.A.T.I.A.
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
#N canvas 548 116 424 234 10; #N canvas 0 0 536 696 quad 0; #X obj 24 626 GEMglEnd; #X obj 161 57 GLdefine GL_SMOOTH; #X obj 161 35 loadbang; #X obj 161 77 loadbang; #X obj 25 123 GEMglBegin; #X obj 25 81 GEMglShadeModel; #X msg 228 33 bang; #X obj 24 239 GEMglVertex3f -1.5 1 0; #X obj 161 99 GLdefine GL_QUAD_STRIP; #X obj 234 81 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 24 265 GEMglVertex3f -1.5 -1 0; #X obj 24 542 GEMglVertex3f 1.5 1 0; #X obj 24 566 GEMglVertex3f 1.5 -1 0; #X obj 24 361 GEMglVertex3f -0.5 1 0; #X obj 24 386 GEMglVertex3fv -0.5 -1 0; #X obj 24 412 GEMglVertex3f 0.5 1 0; #X obj 24 438 GEMglVertex3fv 0.5 -1 0; #X obj 25 58 alpha; #X obj 24 218 GEMglColor4f 1 1 1 0; #X obj 24 316 GEMglColor4f 1 1 1 1; #X obj 25 37 inlet; #X obj 306 34 inlet; #X obj 24 173 GEMglNormal3f 0 0 -1; #X obj 24 494 GEMglColor4f 1 1 0 0; #X connect 1 0 5 1; #X connect 2 0 1 0; #X connect 3 0 8 0; #X connect 4 0 22 0; #X connect 5 0 4 0; #X connect 6 0 1 0; #X connect 7 0 10 0; #X connect 8 0 4 1; #X connect 9 0 8 0; #X connect 10 0 19 0; #X connect 11 0 12 0; #X connect 12 0 0 0; #X connect 13 0 14 0; #X connect 14 0 15 0; #X connect 15 0 16 0; #X connect 16 0 23 0; #X connect 17 0 5 0; #X connect 18 0 7 0; #X connect 19 0 13 0; #X connect 20 0 17 0; #X connect 21 0 19 4; #X connect 22 0 18 0; #X connect 23 0 11 0; #X restore 23 148 pd quad; #X obj 23 82 gemhead; #X msg 67 126 $1 $1 $1; #X floatatom 67 107 5 0 0 0 - - -; #X obj 22 49 gemwin; #X msg 22 23 create , 1; #X obj 179 83 gemhead 22; #X obj 179 103 translateXYZ 0 0 -0.1; #X obj 179 123 color 1 0 0; #X obj 179 143 square 3; #X obj 179 62 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X connect 1 0 0 0; #X connect 2 0 0 1; #X connect 3 0 2 0; #X connect 5 0 4 0; #X connect 6 0 7 0; #X connect 7 0 8 0; #X connect 8 0 9 0; #X connect 10 0 6 0;