GLSL Shader 1 in the attached comp works fine if you use Rect texture samplers2Rects and texture2DRects , but no texture2D with the video input.
What is the difference between the 2 GLSL Shaders. I did not notice any at first glance. additionally: Using an image texturing properties patch and forcing the image from the video input object to Texture 2D does not correct for using sampler2D (ie, having both texture 2D type selected, and using a sampler2D in the GLSL shader does not work). However, putting a dummy CI Unit in between seems to fix it. Clearly the CVPixelBufferRefs coming from the video input patch are not being converted to 2D Texture properly. On Jan 4, 2012, at 5:42 PM, George Toledo wrote: > Apologies for the quick successive messages, but I neglected to mention: > > Non-moving 2D images work fine for me, using this kind of composition, in > Lion. If I were to use the image patch instead, I'd see the expected texture. > Using the cropped output of the checkerboard patch works fine as well. It's > the video patch that looks completely wrong. > > Thanks for any thoughts. > -gt > > On Wed, Jan 4, 2012 at 5:36 PM, George Toledo <gtole...@gmail.com> wrote: > It would probably help if I had attached the file. Here it is. > > -gt > > > On Wed, Jan 4, 2012 at 5:35 PM, George Toledo <gtole...@gmail.com> wrote: > Does the attached composition work for anyone using OS X 10.7? > > Work, being defined as successfully applying the video texture to the GLSL > Grid, via the glsl shader. This composition uses one video patch, connected > to a GLSL Environment patch's texture input (using the default GLSL shader > program), with a GLSL Grid patch inside of the GLSL Environment. > > This works fine for me in OS X 10.5 and 10.6, but in 10.7, it looks like the > vertex program is broken, possibly something to do with the gl_TexCoord. I > get what looks like the average pixel value, or when an image is fed to > something with improper UV values, across the GLSL grid, instead of the video > image I would expect to get. > > Possibly related, when I make fragment shaders in OS X 10.7, things seem to > work as expected, until I place them in a Render In Image Environment, at > which time they sometimes flip on the Y axis. This is when using a 100% stock > install, with no plugins or patches. > > -George Toledo > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/quartzcomposer-dev/doktorp%40mac.com > > This email sent to dokt...@mac.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com