| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| I have just reported a problem to apple's bug reporter <rdar://5565851> about a problem I'm having with code that renders a frame of a QC to an image using QCRenderer, adapted from some code that Pierre posted here a long time ago. What's happening is that some code that works fine under Tiger and on some machines running Leopard (like my G5), it's failing miserably on a MacBookPro and a 20" iMac. The resulting image is generally invisible (or nearly so) or has its colors shifted strangely. Has something in the architecture changed that maybe I need to work around? I want to make sure that if it's not a bug, that there is some workaround... Otherwise I hope this can be fixed for 10.5.1 :-) Here are some snippets to show you approximately what I'm doing. (The bug report, for Apple folks, does have a full test project and positive/negative examples.) NSOpenGLPixelFormatAttribute attributes[] = { NSOpenGLPFAAccelerated, NSOpenGLPFANoRecovery, (NSOpenGLPixelFormatAttribute)0 }; NSOpenGLPixelFormat* format = [[NSOpenGLPixelFormat alloc] initWithAttributes:attributes]; NSOpenGLContext* context = [[NSOpenGLContext alloc] initWithFormat:format shareContext:nil]; CGLContextObj cgl_ctx = [context CGLContextObj]; if(cgl_ctx) { glViewport(0, 0, width, height); } QCRenderer* renderer = [[QCRenderer alloc] initWithOpenGLContext:context pixelFormat:format file:aFileName]; .... followed by .... BOOL renderSuccess = [renderer renderAtTime:0.0 arguments:nil]; ... id image = [myRenderer valueForOutputKey:@"Image"]; -- Dan Wood Karelia Software — Sandvox for the Mac "A nation of sheep will beget a government of wolves" – Edward R. Murrow |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.