Alpha Mask Limit?

Hello, I recently just had a long problem that I could not
figure out. I couldn't get a particular image to take an alpha
blended mask. Since I've been able to successfully do this
countless times prior (through both the timeline and AS), I wasn't
able to find the reason why this particular image wouldn't accept
it. Naturally, I went insane. If I had runtime caching checked, I
would get no masking at all. If I had it unchecked, I would get a
solid mask.
I've narrowed the issue down to one factor and one factor
alone, the physical size of the image. It doesn't matter the file
size of the image being used, rather its dimensions in relation to
the stage. Shrinking the image worked, blowing up any other image
(as a test) makes it stop working again.
My question is this: What's the largest size image we can
alpha mask? Mine was 1608x259(original) and I was trying to scroll
it across a 705x504 size stage. I didn't keep sizing down until it
worked, rather I just cut it up at its current size, so I don't
know yet this limit, but it's there.

300thnickattempt wrote:
> Hello, I recently just had a long problem that I could
not figure out. I
> couldn't get a particular image to take an alpha blended
mask. Since I've been
> able to successfully do this countless times prior
(through both the timeline
> and AS), I wasn't able to find the reason why this
particular image wouldn't
> accept it. Naturally, I went insane. If I had runtime
caching checked, I would
> get no masking at all. If I had it unchecked, I would
get a solid mask.
>
> I've narrowed the issue down to one factor and one
factor alone, the physical
> size of the image. It doesn't matter the file size of
the image being used,
> rather its dimensions in relation to the stage.
Shrinking the image worked,
> blowing up any other image (as a test) makes it stop
working again.
>
> My question is this: What's the largest size image we
can alpha mask? Mine was
> 1608x259(original) and I was trying to scroll it across
a 705x504 size stage. I
> didn't keep sizing down until it worked, rather I just
cut it up at its current
> size, so I don't know yet this limit, but it's there.
>
I could not reproduce the problem. For test I imported 2000
by 700 pixels image.
Set caching bitmap and mask using setMask action, animated
the mask, animate the image
and than the both in the same time.
Variety of combinations, each time it work w/o problem.
My guess is the file get somehow corrupted. FLA are very
delicate and its common to
experience unusually behaviors for no apparent reason.
Try to do the same in new file see if happens again. Try to
adjust the dimensions, make
the image slightly bigger or smaller. Remove the image from
stage, drag it from library
to stage again and convert it to an instance movie clip.
Sometimes the link between
library content and stage get messed up.
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free>

Similar Messages

  • Alpha-mask vs. merged-Transparency in PSD format

    Hi,
    I'm trying to read merged RGBA data from PSD format. "Image data" section contains channels (RGBAA... where first A might be a merged transparency or Alpha mask). Can someone tell me how to know what is stored in first A? I noticed that:
    when image contains no transparency, but has at least one Alpha mask, then first Alpha channel will contain that alpha mask
    when image contains transparency, then first Alpha channel will contain merged transparency and other Alpha channels will contain alpha masks
    So how do I reliably differentiate between Transparency and Alpha mask in first Alpha channel?
    Regards,
    Paulius Liekis
    Unity Technologies

    This forum is to discuss the forums, not products
    You need to ask your question in the forum for the Adobe product you are using
    How to Select a Forum http://forums.adobe.com/docs/DOC-1015

  • Animate Particles Using Image Source Alpha Mask - Outline

    I am trying to animate particles emitted from the outline of an alpha mask. I can get the emitter to see the mask, but only as a rectangular bounding box. How do I get the particles to be emitted from the organic shape within the mask? I created the alpha mask in Motion.

    Heya,
    I see what you're talking about: using the alpha for Fll or Random Fill seems to work fine, but using the alpha with Outline doesn't seem to work (except using the outline of the whole bounding box).
    Maybe a bug, though I would guess that generating an outline path from an alpha channel would be an expensive process, computing-wise. It makes sense if you have a relatively simple alpha with a single "blob" of solidity, but if you had a complex (noisy) alpha, it would be a royal pain to solve.
    Would be nice, though

  • Batch Process: Add Alpha Mask From File

    I did a search for this, but couldn't find anything.  If there is something, please feel free to send me in that direction.
    I use Photoshop a lot for my 3D work.  Usually, when I render an image sequence out, I have the mask saved in the alpha channel.  Unfortunately, ZBrush doesn't allow me to do that, and instead saves the mask out as a separate image.  I need to add the alpha mask to the color plate file.  Is there any way to do this with batch processing?
    --Andrew

    AndrewRaz wrote:
    Thank you for your response.  I guess for now, I'll just add the masks by hand, since I don't know scripting at all.
    It would be worth asking in the Scripting forum. There may be something available, in which case you just copy the file into the appropriate folder in PS and it's there on the menu to use.
    Scripting forum.

  • [svn:fx-trunk] 11641: A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks , not just alpha masks.

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

    Revision: 11641
    Author:   [email protected]
    Date:     2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
    Log Message:
    A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
    QE notes: Please include tests for multiple graphic content nodes with masks under a .
    Doc notes: N/A
    Bugs:
    SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
    Reviewer: Deepa
    Tests run: Checkintests, Bug test case
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java

  • Gradient alpha mask problem

    Hello-
    I am attempting to create a gradient alpha mask for a PNG file, the effect being that of a reflection fading out gradually into the background.  CS4 doesn't recognize the white to black alpha gradient or solid to transparent gradient.  It uses the entire gradient as the mask.
    I have searched and searched, but cannot figure out how to make a simple alpha gradient mask for an image.
    Any help would be greatly appreciated.
    Thanks.
    Jesse
    Artwork attahced for concept.

    You need to make the mask and the maskee movie clips, give them instance names, set cache as bitmap on both to true, and then use setMask to make the mask work.
    I believe pretty good directions are here: http://www.align.sk/blog/blog1.php/2008/10/23/transparent-masks-with-cacheasbitmap-as3
    For what it's worth, it's a well known enhancement request to have this work at author time in addition to runtime with AS (I for one sure hope we can add this).

  • Problem to define limits in Mask & Limit Testing vi

    With Labview 8.0 I can not longer define limit mask by draging points on Define Signal mask screen.
    I used Mask & Limit Testing express vi before with Labview 7.1 and was able move points with cross mouse cursor to define limits envelope around tested signal.
    With new labview this feature is disabled and I have to manualy enter X,Y cordinates for each point.

    I have reported this issue to R&D for further investigation, we hope to see it resolved in a future revision of LabVIEW.  Sorry for the inconvenience.
    (ID # 3V09NT1W)
    Since I'll likely be the person fixing this, I went ahead and investigated this and found the cause of the problem, so I can provide a better workaround too.
    One of the VIs used in this dialog has a very easy-to-make mistake in it.  It's a little embarassing, though at least I can say I didn't write the original VI in this case. 
    If you open the following VI:
    vi.lib\express\express shared\ex_TableUpdateTable.vi
    The "graph relative coords orig" refnum going into the top two property nodes is wired incorrectly.  Visibly it's impossible to tell this until you click once on the wire between the two property nodes.  Notice that it is coming from the input to the first node, not the output of the first node.  Delete this wire and re-wire it from the output of the first one.  This will force the write to happen after the read.
    Interestingly, the VI did not change at all between 7.1 and 8.0, this race condition just got compiled / clumped differently which caused the write to happen before the read in 8.0.
    Message Edited by Jeff B on 03-01-2006 11:11 AM

  • Mask & Limit Testing Express vi

    Hello,
    i have a problem with the Mask & Limit Testing vi. I want to connect the upper and lower limits at the terminals outside the vi. The limits are signals like this:
    0            10
    200        30
    30000    200
    The first column is the time in ms the second for example the length in mm.
    How must i connect this limit data?
    greetings Schwede

    Are you trying to test the data to one limit, then to the second, then to the third?  Or are you trying to build two waveforms and then test to them?
    The first is solved by setting up the limits as constants in the Express VI and then wiring in the constants.
    The second is much more difficult as the waveforms need to match in dt and array length.  I think that can be accomplished easier than Jeff is doing it, but I would like a better idea before I spend the time to come up with an example.
    So, several steps with constant levels or a single step with a complex level mask?
    Thanks,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]
    Attachments:
    mask_and_limit.vi ‏67 KB

  • Alpha Mask

    Is there a way to use a grayscale image as an alpha mask? I'm trying to do lighting effects, also let me know if there is a better (or just easier) way to do lighting effects.

    Sure there is. Heres an example which takes an original image and sets the alpha or the destination pixel based upon the "grayness" of the mask pixel.
    -This assumes the mask image and src image are the same size.
    -White is maximum transparency, black opaque, and transparency in the mask image is ignored.
    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.imageio.ImageIO;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    * @author  Ian Schneider
    public class AlphaMask {
        public static final void main(String[] args) throws Exception {
            BufferedImage orig = ImageIO.read(new File(args[0]));
            BufferedImage mask = ImageIO.read(new File(args[1]));
            BufferedImage out = new BufferedImage(orig.getWidth(),orig.getHeight(),BufferedImage.TYPE_INT_ARGB);
            for (int y = 0, yy = out.getHeight(); y < yy; y++) {
                for (int x = 0, xx = out.getWidth(); x < xx; x++) {
                    int argb = orig.getRGB(x,y);
                    int grayness = grayYIQ(mask.getRGB(x,y));
                    argb ^= grayness << 24;
                    out.setRGB(x,y,argb);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(f.EXIT_ON_CLOSE);
            f.getContentPane().add(new JLabel(new ImageIcon(out)));
            f.pack();
            f.setLocationRelativeTo(null);
            f.show();
        static int grayYIQ(int rgb) {
            return (int) (
              ((rgb >> 16 & 0xff) * .299) +
              ((rgb >> 8 & 0xff) * .587) +
              ((rgb & 0xff) * .114)
    }There is probably some other, easier way, but hey, I learned a cool gray algorithm in the process...

  • Merging alpha masks

    Hi,
    I have about 10 layers that I want to merge together.  Each layer has its own individual alpha mask that doesn't overlap each other.  I was wondering if it's possible to merge all the layers onto one while preserving an alpha that encompasses all 10 alpha masks as well.
    Thanks. 

    I am not sure how the merged alpha channel will help you and I am pretty sure if you applied that combined alpha channel as a layer mask on the merged images that you would not get the same result as a Merge operation (Michael already mentioned this above). In the layer stack, each Layer Mask operates wtih the existing layer and the next lower layer (with all other layer settings) to determine the Composite image to present to the next higher  Layer and Layer Mask.  The masks are not directly working in a cascade fashion with each other directly from a conceptual point of view (IMHO of course).  That is why preserve only keeps the bottom Layer Mask. All the other masks were merged into their respective Layers druing the merge process (except the last one).
    That given, if you want to create a composite mask for some purpose that I do not understand (very likely) then here is how you can do it:
    - Make sure that selections are cleared
    - On each Layer, add the Layer Mask to the selection
    - After all Layer Masks have been added to the selection, either a) save selection as a) Channel Mask or b) create a new Layer Mask on its own independent layer from the selection.
    At this point you have the combined mask as you requested either in the channels panel or as an independent layer mask.   You can do the merge without preserve set and still have a combined mask as you requested to be used whereever.
    Hope this is helpful and if I just don't  understand your request I apologize for taking up your time.   If I am off base, it may be helpful to describe what you want to achieve with your image as opposed to just what operations you want to execute.  I sense other forum members don't quite understand the end result you want to achieve.  I am sure you will get lots of suggestions once forum members understand the end image objectives.  Good luck.

  • Alpha mask artifacts

    this may be a very simple question.
    Here it is:
    All is done with AS.
    I am applying a gradient mask to a movie I am animating. When
    it changes property line alpha x or y there are white outlines that
    appear. Is there a way to prevent that from happening.
    Any support is much appreciated.
    Please let me know if you need more info.
    Here is a link to a sample image of the problem.
    Link to
    example
    Cheers

    Narrowed it down to the following:
    Draw a circle on the stage and convert it to a movieclip. Name it for example "my_mc". Apply a motion tween to it from e.g. left of the stage on frame 1 to right of the stage on frame 20. Test it and the circle moves.
    Now apply this code on frame 1:
    my_mc.cacheAsBitmap=true;
    Test it again: the circle doesn't move; it freezes on its left position of frame 1.
    I'm using a actionscript 2.0 document in Flash CS3 with it's publish setting on 'flash player 9'. It works when I start a actionscript 3.0 document, but I want to use it in a 2.0 one. When I start a 2.0 document and change the publish setting from its default 'flash player 9' to 'flash player 8' it works???
    Why doesn't the tween work when I use a AS2/FP9 work, but it does work when I use a AS2/FP8 document? Is this some bug of FP9 in combination with using cacheAsBitmap?

  • Flash 8 Alpha Masking

    The effect I would like to create is to make a child movie
    clip that is not drawn while not positioned over the parent movie
    clip. The effect should be like a windowed effect, where if the
    child clip is partially over the parent clip, only the overlapping
    portion is drawn.
    I've gotten the desired effect by creating an image with a
    transparent window and placing my components behind that image, but
    this is not ideal because there is a lot of wasted space taken up
    by the mask image.
    I've also gotten the effect by using alpha blending. I
    eventually created the following setup:
    Base MC - blend: Layered
    |-> my_background MC
    |-> my_object MC
    |-> masking MC - blend: Erase (lays over the whole
    screen)
    |-> my background MC - blend:Erase
    so i erase my background from the masking MC, then erase the
    masking MC from my base MC to get a my object it's children are
    only drawn if over the top of it. The problem with this is that to
    use this component in another movie i can't just import it into a
    movie clip. Not to mention it is somewhat of a cpu hog.
    Ideally, the alpha blend feature wouldn't only be
    destructive, and I would be able to do something like this:
    myMovieClip - _alpha=0 - blend:Layered
    |-> child movie clips - blend:Layered
    |-> MaskMovieClip - Blend:Alpha - _alpha=100 - (same size
    as myMoveClip and displayed over the top of it)
    so any child clips that stray outside of the bounds of
    myMovieClip will be clipped
    Is there any way to create a parent Movie Clip that only
    draws the children if they are over the top of it, or to create a
    child movie clip that is not drawn while not over the top of it's
    parent?

    yup - very common issue - asked and answered here practically
    everyday for years:
    http://www.keyframer.com/forum/viewtopic.php?t=479
    ~~~~~~~~~~~~~~~~
    --> Adobe Certified Expert
    --> www.mudbubble.com
    --> www.keyframer.com
    ~~~~~~~~~~~~~~~~
    nullstone wrote:
    > Hello all,
    >
    > So I made some small SWFs with the alpha level of text
    changing(tweened) to
    > create some fading. Whenever I "preview" it in flash, it
    looks fine, but once I
    > export it to an SWF, it doesnt show correctly....the
    alpha goes from 10% to
    > 100% in one frame, with nothing for all the rest of the
    frames...
    > I tried converting the text into a symbol and tried to
    alpha blend that, same
    > results...
    > Anyone have any ideas?
    >

  • Import image as a mask or How to use an alpha mask for transparency mask

    Hello,
    Basically I need to know how to import 1 image into another image as a mask.
    What I'm trying to do:
    I have a bunch of large images that put together make 1 very large image (ortho land images). I also have corresponding images, lets refer to them as mask images, that would mask out parts of the large ortho image I want to import it too. These mask images basically look like a PS mask. They are feathered black to white images. I need to be able to import them as a mask.
    Is there away, if so how?
    Thanks!!!!

    If the masked out areas of your image are to be black, see if this approach fits your needs and forget about creating a mask. Instead bring your "mask image" into your ortho land image using your favorite technique. Now change the blend mode of this mask image to mutiply. You should now see land wherever your mask is white, black where the mask is black and transition regions where the mask has a gray value.
    Alternatively, you can make an alpha channel if you want by turning off all layers except your "mask image", switching to the channel palette, Ctrl clicking on the rgb channel (to create a selection) and then clicking on the Save Selection as Channel icon at the bottom of the palette. You can then create a luminance mask by going back to the layer palette, selecting the layer you want to mask and click the Add LAyer Mask icon at the bottom of the palette.
    Paulo

  • Alpha masks

    I searched everywhere for a tutorial explaining how to make an image with an aplha mask ( not uniform transparency ) Can you hel me?

    Do you mean making an image that is a mask, or making an image using a mask?
    To create an image that will be used as a mask, start with a new BufferedImage having an alpha channel (like TYPE_INT_ARGB). Then draw into that image using any of the Java2D primitives, employing transparency either in the color value or an AlphaComposite. Note that the actual color is not important, only the alpha value will be used.
    To then use that image as a mask, simply set an alpha composite type of "source in." After that, anything you draw into the image will be constrained by the alpha values of the image.
    For example, the following will create an image with a large letter "A" and draw another image into just the pixels occupied by the letter. Since a BufferedImage with an alpha channel is initialized to all transparent, only the visible pixels within the letter will be used to mask the second image.BufferedImage bi = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);
    Graphics2D g = bi.createGraphics();
    Font f = new Font("sansserif", Font.BOLD, 140);
    g.setFont(f);
    g.setColor(Color.black);
    g.drawString("A", 0, 100);
    g.setComposite(AlphaComposite.SrcIn);
    g.drawImage(anotherInterestingImage, 0, 0, null);

  • (CC) Save all Layer Masks as Alpha Channels

    Hello,
    I've looked everywhere and can't seem to find a script to do this. I am looking for a script to simply check every layer for a layer mask and if there is one, save it as an alpha channel. The layers may or may not be in groups. No need to delete the masks, just save them as alpha channels. I have a lot of images with a lot of masks and it's a pain trying to save them manually! I thought this would be pretty easy but from what I've been reading this might be a little over my head. I would really appreciate any assistance!
    Thank you in advance,
    Danny

    Any such script would fail with a error once it tried to exceed Photoshop 53 Alpha Channel limit.  If a document had 53 alpha channels to begin with the script would fail saving the first alpha channel it would try to save.  I know this for a have a script that tries to create my kind of collage template PSD files that has no Image layers but has alpha channels to map the locations where images will be populated.  I had to program the script to catch that there were more the 53 prototype image layers.
    IMO with the exception of the background layer all layers have Alpha Channel its actual pixel map. This invisible Alpha channel maps the layers actual pixels locations and is used in conjunction with any enable layer masks when pixels are rendered for the layer.  What I was trying to do was to create a collage template that had Alpha channel to map the locations of where Image would be placed. . I would open a document the size and resolution I wanted the collage to have. Then add an empty layer the use a selection tool to make a 4"x6" selection and fill with pixels..  Duplcate that layer for as many image I wanted. And I would position the layer where I want the image to be located.  I would then  run the script.  It would save Alpha channels for each image location and at the end flatten the layer image prototype stack to stamp the image locations onto the required background layer.  Once I reached 54 image layers  the script failed and I realized that my Collage Scripts and templates were limited to a maximum of 53 images.

Maybe you are looking for

  • Can I track the Gps on my iPod touch through something else

    Can anyone help me? My lil girls iPod touch was stolen and I'm trying to see if there's any way I can track it?

  • Controling a LabVIEW VI from C#

    Hello, I'm writing a C# program that calls LabVIEW  VI's using the ActiveX automation interface. Getting started was quite straightforward (Load a VI, set/get simple parameters, run VI, etc...), but I could not figure out how to pass "clusters" from

  • Starting individual web-apps in an appserver instance

    I know this is against the J2EE spec but surely Sun did not expect 100 apps deployed in one JVM instance (even if it is load balanced) and expect all the apps to be restarted when I just want to restart one app. Is there a way to restart a single web

  • Asha 201 restarting

    I bought my asha 201 three months ago and it was working fine until last month when it started restarting frequently plus my mail app also stopped working. I've restored the factory settings but the problem is still there. It's really making me sad c

  • Photoshop CS5 kept crashing randomly.

    Hi guys, I need your help, my Photoshop Cs5 keep making random crashes when I were working with my artwork. I tried to disable OpenGL, reinstalling Windows and Photoshop,... I got the event files : Faulting application name: Photoshop.exe, version: 1