Hello
In debugging something I noticed (or think I noticed) that CVOpenGLTextureRefs
requested as an output type from a published output port are invalid.
The following does not work, it returns an invalid image whose textureName is
0, and reported width and height is 0, and cannot be passed to another
QCRenderers published input image port.
CVOpenGLTextureRef syphonImage = (CVOpenGLTextureRef)[sourceRenderer
valueForOutputKey:@"output" ofType:@"CVOpenGLTexture"];
This works, the buffer is valid and can be passed into a published input port
of another renderer without issue.
CVOpenGLBufferRef syphonImage = (CVOpenGLBufferRef)[sourceRenderer
valueForOutputKey:@"output"
ofType:@"CVOpenGLBuffer"];
One thing I noticed is the header for QCCompositionRenderer makes no reference
to being able to output CVOpenGLTextureRefs, but the HTML documentation does
list it as a valid string key. I've also tried @"CVOpenGLTextureRef" as the
key, but no dice.
Does anyone have a working example of requesting a valid CVOpenGLTextureRef
from a QCRenderer? Is this actually supported? I could have sworn this worked
in earlier OS releases.
Thank you.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]