Alpha Masks on OnscreenImages ?

Hi guys!

I wish to know if it is possible to create Transparency Masks for OnscreenImages?

The thing is, i am working on a simple rhythm game, that is using some OnscreenImages to mark the beats of the song’s rhythm, as you can see in this link http://screencast.com/t/zYBfx5Ux7I.

Well, it is very ugly, since i wasn’t taking care of the visual thus far, but now I have to polish it visually. And this task had presented a challenge that I thought it would be simple, create a alpha mask to improve the visuals.

Instead that dark blue box, I want to use the shape of a ‘berimbau’ (capoeira instrument) and a kind ‘alpha map’ to constrain the visualization of those light blue rectangles, that mark the beats like in this image bellow:

The idea is use the ‘alpha map’ (first shape) to mask the light blue rectangles, which are OnscreenImage instances.

So, does someone could give a little tip if it is possible to be done in Panda?
I saw some methods at OnscreenImage reference about alpha scale, but I think it simple change the opacity of the image as a whole.

Thanks,

sure it’s possible. read a bit about textures in panda in general. to be a bit more specific a look at texture combine modes might be what you’r looking for
http://www.panda3d.org/manual/index.php/Texture_Combine_Modes