Re: Flash Erase Blend Mode not keying in caspar

#6
super-ienien wrote:Yes I already did that. It doesn't change anything. Did you ever use a movieclip with blend mode set to ERASE in order to make a mask ? if yes did it work in caspar ?
No, never. Have you tried to set cacheAsBitmap = true on the target movieClip also (the one that is masked)?
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: Flash Erase Blend Mode not keying in caspar

#10
super-ienien wrote:Hi,

I have some troubles with a flash template where I'm using the Erase blend mode in order to mask some areas.

In flash everything looks great. But in Caspar CG the masked areas are black. They should be transparent...

Anybody knows something about this ?

Thanks
The simple way to do this is using a PNG transparent file as a Mask.

This are the step :
1. If your Flash Template dimension in 1024 x 576 pixel
2. Create a new PNG file with the same dimension, I prefer using Adobe Photoshop to create this PNG Mask file
3. Create a new layer in Photoshop editor, click that new layer to start working on it.
4. fill certain area that you want to show in flash template (not trasparent), and leave the other as transparent, delete or hide layer "Background" if exist.
5. Save for web, choose "PNG-24", with option "Transparency" active
6. Put the PNG file into your Flash Template folder
7. On Adobe Flash Editor, import the PNG file into the library and put a name for that class, for example "myMask"
8. On ActionScript editor, you can apply the mask for your graphic or video :

Code: Select all

var AllMask:Bitmap = new Bitmap(new myMask(0,0));
{your graphic / video}.cacheAsBitmap = true;
{your graphic / video}.mask = AllMask;
addChild({your graphic / video});
stop();
Cheers,
Sonny

Re: Flash Erase Blend Mode not keying in caspar

#12
super-ienien wrote:Hi,

thanks a lot, I will try that. Just one question : Can I do it without as3 ? My scene is very complex and if i can get a real preview of the stage when i'm working on it, it would be esier for me.
Well, I prefer to do using AS3 :)
for "complex" graphics and text, I will put all in a Sprite variable,
and then if I want to mask the final result just put a PNG transparent mask over the Sprite.

here the example AS3 code :

Code: Select all

var AllMask:Bitmap = new Bitmap(new myMask(0,0));
var mySprite:Sprite = new Sprite();

mySprite.addChild({your grapich #1});
mySprite.addChild({your graphic #2});
mySprite.addChild({your graphic #3});
mySprite.addChild({your graphic #4});
mySprite.addChild({your graphic #5});

mySprite.addChild({your textfield #1});
mySprite.addChild({your textfield #2});
mySprite.addChild({your textfield #3});


this.addChild(mySprite);
mySprite.cacheAsBitmap = true;
mySprite.mask = AllMask;
stop();

Re: Flash Erase Blend Mode not keying in caspar

#13
Hey sonny,

The procedure you talled me is the same as doing a mask with the flash editor... So it does'nt solve my issue. What i need is doing an inverted mask. none transparent ares in my mask object are not shown in the masked object.

This is possinle using Erase blend mode but erase blend mode do not work in caspar.

So I'm back to the same point.

Re: Flash Erase Blend Mode not keying in caspar

#14
This is the screenshot from CasparCG Consumer Screen :
screenshoot.jpg
screenshoot.jpg (101.31 KiB) Viewed 1859 times
here are the modification of your Flash Template, I am using AS3 :

Code: Select all

import flash.display.Bitmap;
import flash.display.Sprite;

var myBGFill:Bitmap = new Bitmap(new polkadot(0,0));
var AllMask:Bitmap = new Bitmap(new myMask(0,0));
var mySprite:Sprite = new Sprite();

myBGFill.width = 1024;
myBGFill.height = 576;
myBGFill.cacheAsBitmap = true;
AllMask.cacheAsBitmap = true;
myBGFill.mask = AllMask;

mySprite.addChild(myBGFill);
mySprite.addChild(AllMask);

this.addChild(mySprite);
stop();

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron