Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Piers Cowburn
Wow. *Ordered*

On 4 Feb 2010, at 12:41, Henrik Andersson wrote:

> Piers Cowburn wrote:
>> You can do a lot of things, including sharpen, with the ConvulsionFilter: 
>> http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7da3.html
>> 
>> Use this kind of matrix:
>> [0, -1, 0
>> -1, 5, -1
>>  0, -1, 0]
>> 
>> Larger matrices and different values will give a different range of 
>> sharpening. If you want to hook up sliders to control the radius and 
>> strength (like the Unsharp Mask filter in PS), you need to have them adjust 
>> these values.
>> 
>> Piers
> 
> I know of a good book about this:
> http://www.dspguide.com/pdfbook.htm
> 
> If you manage to survive it, you should fully understand how to use the 
> convulsion filter.
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Henrik Andersson

Piers Cowburn wrote:

You can do a lot of things, including sharpen, with the ConvulsionFilter: 
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7da3.html

Use this kind of matrix:
[0, -1, 0
-1, 5, -1
  0, -1, 0]

Larger matrices and different values will give a different range of sharpening. 
If you want to hook up sliders to control the radius and strength (like the 
Unsharp Mask filter in PS), you need to have them adjust these values.

Piers


I know of a good book about this:
http://www.dspguide.com/pdfbook.htm

If you manage to survive it, you should fully understand how to use the 
convulsion filter.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Piers Cowburn
You can do a lot of things, including sharpen, with the ConvulsionFilter: 
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7da3.html

Use this kind of matrix:
[0, -1, 0 
-1, 5, -1 
 0, -1, 0]

Larger matrices and different values will give a different range of sharpening. 
If you want to hook up sliders to control the radius and strength (like the 
Unsharp Mask filter in PS), you need to have them adjust these values.

Piers


On 4 Feb 2010, at 12:22, Glen Pike wrote:

> Look in the AS2 documentation in Flash or on the Adobe site:
> 
> Bitmap Filter class
> http://help.adobe.com/en_US/AS2LCR/Flash_10.0/0808.html
> 
> Then all filters like GlowFilter, etc are a subset of these.
> 
> MovieClip.filters is an array property that you can set at runtime with 
> "constructed filters" - see the examples.
> 
> http://help.adobe.com/en_US/AS2LCR/Flash_10.0/0337.html
> 
> You can also set Filters at authortime in the IDE - click on a movieclip, 
> next to the "Properties" Tab click on Filters and start adding/playing to see 
> what you want.  Most of the parameters you set in here translate to 
> parameters for the particular filter in AS2.
> 
> HTH
> 
> Glen
> 
> Sumeet Kumar wrote:
>> Thanks for your reply
>> Are there any classes available on the net for these filters?  I have 
>> searched a lot but not able to find any classes related to AS2 and flash.
>> Can you please point me to some links.
>> 
>> Thanks again.
>> 
>> Regards
>> Sumeet Kumar
>> 
>> - Original Message - From: "Henrik Andersson" 
>> To: "Flash Coders List" 
>> Sent: Thursday, February 04, 2010 5:32 PM
>> Subject: Re: [Flashcoders] Filters in flash 8
>> 
>> 
>> Sumeet Kumar wrote:
>>> Hi All,
>>> 
>>> Is there any way by which we can achieve following filters in flash 8.
>>> 
>>> Noise
>>> Pixelate
>>> Sharp
>>> Water
>>> Metallic
>>> Neon
>> 
>> Noise is possible with BitmapData, Pixelate is done with drawing to
>> BitmapData and upscaling the bitmap.
>> Sharp is done with one of the more complicated filters.
>> Water is too losely defined and so is metallic.
>> Neon can be done with the glow filter.
>> ___
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> ___
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> 
>> 
> 
> ___
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Henrik Andersson

Glen Pike wrote:

Metallic: - not sure that's more of a "reflection" type effect that you
could do with your graphical components.


Most people are happy with gradients for metal textures, but indeed you 
need a more complicated system for true reflections.

___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Glen Pike

Look in the AS2 documentation in Flash or on the Adobe site:

Bitmap Filter class
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/0808.html

Then all filters like GlowFilter, etc are a subset of these.

MovieClip.filters is an array property that you can set at runtime with 
"constructed filters" - see the examples.


http://help.adobe.com/en_US/AS2LCR/Flash_10.0/0337.html

You can also set Filters at authortime in the IDE - click on a 
movieclip, next to the "Properties" Tab click on Filters and start 
adding/playing to see what you want.  Most of the parameters you set in 
here translate to parameters for the particular filter in AS2.


HTH

Glen

Sumeet Kumar wrote:

Thanks for your reply
Are there any classes available on the net for these filters?  I have 
searched a lot but not able to find any classes related to AS2 and flash.

Can you please point me to some links.

Thanks again.

Regards
Sumeet Kumar

- Original Message - From: "Henrik Andersson" 


To: "Flash Coders List" 
Sent: Thursday, February 04, 2010 5:32 PM
Subject: Re: [Flashcoders] Filters in flash 8


Sumeet Kumar wrote:

Hi All,

Is there any way by which we can achieve following filters in flash 8.

Noise
Pixelate
Sharp
Water
Metallic
Neon


Noise is possible with BitmapData, Pixelate is done with drawing to
BitmapData and upscaling the bitmap.
Sharp is done with one of the more complicated filters.
Water is too losely defined and so is metallic.
Neon can be done with the glow filter.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Sumeet Kumar

Thanks for your reply
Are there any classes available on the net for these filters?  I have 
searched a lot but not able to find any classes related to AS2 and flash.

Can you please point me to some links.

Thanks again.

Regards
Sumeet Kumar

- Original Message - 
From: "Henrik Andersson" 

To: "Flash Coders List" 
Sent: Thursday, February 04, 2010 5:32 PM
Subject: Re: [Flashcoders] Filters in flash 8


Sumeet Kumar wrote:

Hi All,

Is there any way by which we can achieve following filters in flash 8.

Noise
Pixelate
Sharp
Water
Metallic
Neon


Noise is possible with BitmapData, Pixelate is done with drawing to
BitmapData and upscaling the bitmap.
Sharp is done with one of the more complicated filters.
Water is too losely defined and so is metallic.
Neon can be done with the glow filter.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Glen Pike
You could simulate water with a DisplacementFilter effect that uses 
Perlin noise.


Metallic: - not sure that's more of a "reflection" type effect that you 
could do with your graphical components.


Henrik Andersson wrote:

Sumeet Kumar wrote:

Hi All,

Is there any way by which we can achieve following filters in flash 8.

Noise
Pixelate
Sharp
Water
Metallic
Neon


Noise is possible with BitmapData, Pixelate is done with drawing to 
BitmapData and upscaling the bitmap.

Sharp is done with one of the more complicated filters.
Water is too losely defined and so is metallic.
Neon can be done with the glow filter.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Filters in flash 8

2010-02-04 Thread Henrik Andersson

Sumeet Kumar wrote:

Hi All,

Is there any way by which we can achieve following filters in flash 8.

Noise
Pixelate
Sharp
Water
Metallic
Neon


Noise is possible with BitmapData, Pixelate is done with drawing to 
BitmapData and upscaling the bitmap.

Sharp is done with one of the more complicated filters.
Water is too losely defined and so is metallic.
Neon can be done with the glow filter.
___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Filters in flash 8

2010-02-04 Thread Sumeet Kumar
Hi All,

Is there any way by which we can achieve following filters in flash 8.

Noise
Pixelate
Sharp
Water 
Metallic
Neon

Any help in this regard will be great help. Thanks in Advance

Regards
Sumeet Kumar


___
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders