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: Understanding alpha



In this quick sample, I started with a Clear patch set to clear the patch to
a light gray with an alpha of 1.0. Then I added a Sprite. To the sprite, I
connected a Color Transformation. I set the initial color of the Color
Transformation to a light blue with an alpha of 1.0. Then I connected two
Interpolation patches to the Color Transformation; the first Interpolation
ranges from 0.0 to 360.0 and drives the Hue Rotation. The second
Interpolation ranges from 0.0 to 1.0 and drives the Alpha Factor. I was
expecting the Sprite to gradually fade in from totally invisible to the
color of the moment. Instead, the Sprite goes from black to the color of the
moment.

That's because blending is disabled: set blending mode to "Over" on the Sprite (in OpenGL ,blending operations are separated from alpha values)



________________________________________________________ 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: 
 >Understanding alpha (From: Tom Bernard <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.