I have implemented a syphon server within a GPUImage application. However it produces a triangular area as seen in the attached image.
Can anyone say what’s wrong looking at the image?
Thanks.
P.S. Just in case. This is how syphon server is embedded into the GPUImage
1. In GPUImageView#viewDidLoad
NSOpenGLContext *ctx = [[GPUImageContext sharedImageProcessingContext] context];
syphonServer = [[SyphonServer alloc] initWithName:@”MulchCam” context:ctx.CGLContextObj options:[NSDictionary dictionaryWithObject:SyphonImageFormatRGBA8 forKey:SyphonServerOptionImageFormat]];
2. In the filter “draw”
[myServer publishFrameTexture:GL_TEXTURE0 textureTarget:GL_TEXTURE_RECTANGLE_EXT imageRegion:NSMakeRect(0, 0, size.width, size.height) textureDimensions:size flipped:YES];
Thanks for the input.
–8
-
This topic was modified 5 years, 3 months ago by eight_io.