I sent the mail below the lines to lingo-l the 24th of october. I 
haven�t had any replys so far but as I solved the problem described 
below I would like to share it, in case anyone out there has the same 
problem  or a related one. The solution can be viewed at

http://marvin.mm.se/shocked/

For those of you not familiar with swedish, just click on the arrow 
in the top of the shockwave-movie and you will step through the 
learning shell from beginning to end. The other buttons are just for 
navigating directly to the same stations.

My problem was I needed to mix RGB and CMYK colors interactively, for 
images and "color blobs".
I ended up with using the setalpha() function together with "Add pin" 
and "Subtract pin" inks for the images, where I divided both the CMYK 
and the RGB images� channels into separate documents. The setalpha() 
function makes it possible for me to change the opacity between the 
image sprites in a much more reliable way than using "blend". The 
other "trick" was finding an ink mode that worked just like the 
"Screen" and the "multiply" layer blending modes in Photoshop. The 
closest ones I could find were "Add/pin" and "Subtract pin" 
respectively. Questions or comments? Just mail me.


--------------------------
>I am trying to make color blending between three sprites, lying on 
>top of each other,  and a black background sprite( or black stage 
>background) work. The sprites are respectively the red, green and 
>blue channels from an RGB image. I am trying to find a way of 
>blending each sprite so the three mixed together result in an RGB 
>image like the original image with all three channels in one. (Hope 
>I make myself understood here).
>To make a long story short: I can�t use an ink mode like "add" 
>because it only works when I have 100% blend, if I change the sprite 
>blend (and this is what I want to be able to do interactively later) 
>the mixing falls apart. The only way I can see now is to use a 
>32-bit image with alpha channel (or using another cast member as a 
>mask). I tried importing with the same image with different 
>alphachannels, and the blending seems to work on stage.
>
>If I could extract the built-in alpha channel, change its color and 
>tell Director to use the new mask instead with Lingo, I would be on 
>my way to interactivity. Does anyone know how to do this?
>I tried changing the color property of a cast member but I only get 
>"property not found". It seems to work for sprites though...??? I 
>use rgb(x,x,x,) as the description of the color.
>Thanks for any help,
>/MoL

/MoL
_____________________________________________________
 MacMeckarna i G�teborg  Tel: 031-7013840 Mobil: 0704-404056

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to