<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi James, List<DIV><BR class="khtml-block-placeholder"></DIV><DIV>Im not at a machine as we speak that has GEM installed, but ill try to make the simplest patch to get it working. I appreciate the feedback about other openGL calls being 'made behind my back' with regard to the other GEM objects.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Im taking an into to openGL course, learning GLUT, so im programming with Cocoa/GLUT on OS X, but, then I realized that GEM has wrappers for the openGL, so I thought id give some stuff a shot.. interesting that you have to use multiple GEMglWrapper objects together.. you cannot change certain patch/GEM machine state objects with a GEMgWrapper object on its own? l</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I did use floats between 0,1, and GLDefine and whatnot, but I put the GEMglClearColor between a gemhead and a rectangle. I *was* able to change the window background color, but I made no specifications to GEMglClear(GL_COLOR_BUFFER_BIT) or anything of that nature.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I will play around a bit when I get home and send an example patch, and maybe someone can point me in the right direction.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">...hmm, now going thru this, you may just want to play with that message to [gemwin] in conjunction with the clearmask message, which I think you'll need to send a [GL_COLOR&lt; - [GLdefine] to...?  I'll have to try that out when I have GEM running...</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I am not familiar with this message, and I dont see it in the documentation that I have. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>thanks!<DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="font-size: 13px; "><FONT class="Apple-style-span" color="#D30000" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;; color: rgb(211, 0, 0); "><B style="color: rgb(211, 0, 0); font-size: 10px; font-weight: bold; "></B></SPAN></FONT></DIV><DIV style=""><FONT class="Apple-style-span" color="#D30000" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><B><BR class="khtml-block-placeholder"></B></SPAN></FONT></DIV><DIV style="font-size: 13px; "><FONT class="Apple-style-span" color="#D30000" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;"><B><BR class="khtml-block-placeholder"></B></SPAN></FONT></DIV><DIV style="font-size: 13px; "><FONT class="Apple-style-span" color="#D30000" size="1" style="font-size: 10px; ; color: rgb(211, 0, 0); "><B style="color: rgb(211, 0, 0); font-size: 10px; font-weight: bold; "><SPAN class="Apple-style-span" style="color: rgb(211, 0, 0); font-size: 10px; font-weight: bold; ">v a d e //</SPAN></B></FONT></DIV><DIV style="font-size: 13px; "><FONT class="Apple-style-span" color="#7F7F7F" size="1" style="font-size: 10px; ; color: rgb(127, 127, 127); "><B style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "><BR class="khtml-block-placeholder"></B></FONT></DIV><DIV style="font-size: 13px; "><FONT class="Apple-style-span" color="#7F7F7F" size="1" style="font-size: 10px; ; color: rgb(127, 127, 127); "><B style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "><A href="http://homepage.mac.com/doktorp/">http://homepage.mac.com/doktorp/</A></SPAN></B></FONT></DIV><DIV style="font-size: 13px; "><FONT class="Apple-style-span" color="#7F7F7F" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;; color: rgb(127, 127, 127); "><B style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "><SPAN class="Apple-style-span" style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "><A href="mailto:doktorp@mac.com">doktorp@mac.com</A></SPAN></B></SPAN></FONT></DIV><DIV style="font-size: 13px; "><FONT class="Apple-style-span" color="#7F7F7F" size="2"><SPAN class="Apple-style-span" style="font-size: 10px;; color: rgb(127, 127, 127); "><B style="color: rgb(127, 127, 127); font-size: 10px; font-weight: bold; "></B></SPAN></FONT></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR><DIV><DIV>On Sep 13, 2005, at 11:12 AM, james tittle wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Sep 13, 2005, at 1:19 AM, vade wrote:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hello</DIV> <BR></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">hiya,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> <BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Playing with the gl objects in GEM (0.90) on OS X (Pd 0.38-4 Extended, via Hans) , ive noticed that GEMglClearColor has 5 inputs, one for the gem render chain, 2 - r, 3 - g, 4 - b and presumably 5 - alpha, yet, changing alpha results in no change in the window Changing the RGB values does, just like [color] to gemwin (as it should).</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Presumably, changing the alpha would act to let the scene draw 'over' itself, and give an easy way to do trails/blurring. Jitter supports this feature (not griping.. just saying :), any chance , or workaround to get similar functionality, as I love the aesthetic of it. Id rather not use snap2pix/snap2tex.</DIV> <BR></BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">...ok, you have the correct inputs to the object, but there are a coupla things to make sure of:</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1.<SPAN class="Apple-converted-space">  </SPAN>the rgba inputs need to be 0-1</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2.<SPAN class="Apple-converted-space">  </SPAN>after [GEMglClearColor] you need a [GEMglClear] that clears the color buffer (GL_COLOR)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">3.<SPAN class="Apple-converted-space">  </SPAN>what is the gemhead ordering?<SPAN class="Apple-converted-space">  </SPAN>Are you trying to clear everything via [gemhead 1]?<SPAN class="Apple-converted-space">  </SPAN>Or are you inserting this into every drawn object's gemchain?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">...that's the theory, anyway :-)<SPAN class="Apple-converted-space">  </SPAN>In practice in GEM, things are not exactly as they may appear...in other words, while I think the glWrapper is one of GEM's most powerful features, there are a few decisions made as default behaviors that may cause unexpected behavior and frustration...fr'instance, glClearColor is called many times behind your back, such as windowInit, window reset, and the color message to [gemwin]...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">...hmm, now going thru this, you may just want to play with that message to [gemwin] in conjunction with the clearmask message, which I think you'll need to send a [GL_COLOR&lt; - [GLdefine] to...?<SPAN class="Apple-converted-space">  </SPAN>I'll have to try that out when I have GEM running...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">...anyway, as ya can see, there's a bit more to the glWrappers than just trying an object...it's really important to have a copy of the "Red Book" on hand, but in general I've found that it's an extremely quick and powerful way to prototype:<SPAN class="Apple-converted-space">  </SPAN>no more compiling ;-)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">l8r,</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">jamie</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:PD-list@iem.at">PD-list@iem.at</A> mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">UNSUBSCRIBE and account-management -&gt; <A href="http://lists.puredata.info/listinfo/pd-list">http://lists.puredata.info/listinfo/pd-list</A></DIV> <BR class="Apple-interchange-newline"></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>