Export Movie with Custom Patch using QuartzCrystal v2.1

shoya's picture

Hi, Everybody,

I'm trying to export movie with Custom Patch using QuartzCrystal v2.1. I would like to export movie that have alpha channel. But, It doesn't work.. Could you help me?

This is source of custom patch.

  • (BOOL)execute:(id )context atTime:(NSTimeInterval)time withArguments:(NSDictionary *)arguments { CGLContextObj cgl_ctx = [context CGLContextObj]; CGLSetCurrentContext(cgl_ctx); CGLLockContext(cgl_ctx);

    glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

    for (int i=0; i < 1000; i++) { glPushMatrix(); glBegin(GL_LINES); glColor4d(1.f, 1.f, 1.f, 0.25); glVertex2d(random(-1.0, 1.0), random(-1.0, 1.0)); glVertex2d(random(-1.0, 1.0), random(-1.0, 1.0)); glEnd(); glPopMatrix(); }

    glDisable(GL_BLEND);

    CGLUnlockContext(cgl_ctx); }

Mac OS X 10.10 QuartzComposer 4.6 QuartzCrystal v2.1

Thanks!

PreviewAttachmentSize
original.png
original.png402.98 KB
exported.png
exported.png2.36 MB
quartzcrystal.png
quartzcrystal.png129.15 KB