Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pennella

macrumors newbie
Original poster
Nov 28, 2009
1
0
Hey guys,
I need to make a music visualizer in quartz composer.
The only twist is that I need the bars that are created from the input to show up inside of a predetermined shape or object.

For instance, say that I have a circle. When the bars are drawn, the only ones i want to see are the ones that intersect with the shape of the object. Please see the attached photo.

Any help would be great.

Basically I want to mask the bars.
 

Attachments

  • ex.gif
    ex.gif
    15.4 KB · Views: 66

robbietherobot

macrumors newbie
Oct 12, 2005
17
0
Simpler than you think

Just bring in an PNG with an alpha channel of your image and lay it over as a "Sprite" / "Billboard".

See attached .qtz and accompanying .png.
 

Attachments

  • Mask.zip
    13.3 KB · Views: 59
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.