Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting a preview view of a composition



I would like to render a composition into an offscreen buffer in order
to be able to pass it to other compositions (like it is done in the
performer sample application). However, I would like to show the result
of the composition in a preview view. The approach I have taken is to
use the CIView from the CI sample application, but I'm not sure if this
is the most efficient way. Do I have to share the opengl contexts from
the offscreen buffer and the CIView? Can I directly access the
CVImageBufferRef and render it without passing through a CIImage?

yes, you can do that. Going though CI requires a fragment shaders capable card, and since you just want to display the image, that might not be the best solution. Here's what I would try instead:


Create another QCView to display the preview and load a composition on it that simply displays an image: billboard will do and publish the image input. Then, just pass the CVOpenGLBuffers to the input image of the QCView.


________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Architect Graphics & Imaging Team

_______________________________________________
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
References: 
 >Getting a preview view of a composition (From: Manuel Odendahl <email@hidden>)



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.