Re: [Flashcoders] Re: apply gradient map effec

2008-11-11 Thread Juan Pablo Califano
>> There is probably a quicker way of mapping the values from a grayscale image to colour values, so have a scout around - maybe play with FlashFilterLab, but I am guessing the ColourMatrix filter may help again here... >> I think once you get your gradient data into a R,G & B array, you do have a

Re: [Flashcoders] Re: apply gradient map effec

2008-11-11 Thread Juan Pablo Califano
Glen's approach seems right. I've been playing a bit with Pixel Bender in the last few days and just put together a map gradient filter using his suggestions and it seems to be working fine. Probably using PB is a bit too much here, though. But in case anyone is interested in taking a look, here

Re: [Flashcoders] Re: apply gradient map effec

2008-11-10 Thread Glen Pike
Hi, I also remembered where I had seen the 1 x 256 gradient rectangle shape used as a lookup table for colours - it was not my idea originally: Check out the LightMaps class in PaperVision3D - this deals with creating an array of colour values used for looking up the colour of somethin

Re: [Flashcoders] Re: apply gradient map effec

2008-11-10 Thread Glen Pike
Hi, From what I can see of the gradient map, it multiplies a grayscale value by a gradient?? To do this, you need to get your bitmap data into grayscale - use the ColorMatrixFilter like here: http://www.actionscript.org/forums/showthread.php3?p=766173 Then you will need to map

[Flashcoders] Re: apply gradient map effec

2008-11-10 Thread ACE Flash
any suggestions? please... On Mon, Nov 10, 2008 at 11:36 AM, ACE Flash <[EMAIL PROTECTED]> wrote: > Hey there, I am going to apply the gradient map effect on a image ( the > name called in photoshop => image => ajustments => gradient map ) . do you > know how to deal with it in action script 3? >