Mailing Lists: Apple Mailing Lists

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

Draw multiple textures with additive alpha



I am drawing multiple textures during a transition from one image to another (slide show) 

// FIRST image with opacity = .4
glColor4f(1.0f, 1.0f, 1.0f, opacity);
glBegin(GL_QUADS);            
glTexCoord2f(...);
glVertex2f  (...); etc.
...

// SECOND image with opacity = .6
glColor4f(1.0f, 1.0f, 1.0f, opacity);
glBegin(GL_QUADS);            
glTexCoord2f(...);
glVertex2f  (...); etc.
The opacity of the two textures does not remain 100% during this transition revealing the background. I think I need to COMBINE or ADD the alpha but not sure how to accomplish this.
I have searched the list and google but can not find the solution. Any suggestions?

-Rich

 _______________________________________________
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.