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: Transparency with glReadPixels



How are you drawing the background? Drawing it yourself with a quad covering the viewport or just with your call to glClear? I suspect what you're seeing is due to the default background colour. By default it is:
    glClearColor(0.0, 0.0, 0.0, 0.0)
i.e. fully transparent black, not opaque black (bottom of page 186 of the OpenGL 1.5 spec).

You might also want to check which blending equations / functions you're using.



r i c k
 _______________________________________________
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.