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: Open GL to Quicktime?



You can use glReadPixels() or setup a special texture to read back the contents of the backbuffer to local memory. There is/was Apple sample code that used glReadPixels(), but I don't think it made a QT movie. There is a technote about setting up the texturing using client storage from last December I believe.

The code I work on uses a QT Graphics Exporter to write out an image sequence, and the result can be made into a .mov file in QT Player Pro. One thing I have yet to work out is resolving the flipped Y coordinates between GL and QT. right now, I flip pixels manually using a line by line memcpy(), but of course that is not all that efficient. I haven't checked into whether CoreVideo has read-back functionality to do this or not.



On May 13, 2005, at 8:19 AM, Bob Estes wrote:

I'm wondering if there is a reasonably easy way (i.e., that doesn't require learning and integrating a bunch of Carbon routines into my Cocoa code) to programmatically make a Quicktime movie from my existing code for an animation that displays in an NSOpenGLView. If there is, I haven't been able to find it, but it seems there should be. Any pointers would be greatly appreciated.

Bob Estes

_______________________________________________ Do not post admin requests to the list. They will be ignored. Mac-opengl mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >Open GL to Quicktime? (From: Bob Estes <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.