Mailing Lists: Apple Mailing Lists

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

Most efficient method of offscreen rendering



I'm wondering if someone can tell me the most efficient way to do offscreen rendering with OpenGL such that I have access to the resulting pixel buffer. In other words, I want to render a scene to a buffer and then be able to read the pixels/bytes right out of the frame.

I know I can use PBuffers to render offscreen, but I'm not sure if there's an efficient way to access the pixels that way. I think glReadPixels() would work, but that seems like a slow way to do it since it would be copying the scene each frame. There seem to be ways to make OpenGL render into my own buffer, but I don't know if that's slower in any way, so I'm looking for suggestions for the best method.

Thanks,

-Brian



_______________________________________________
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


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.