[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: FF Problem (More on the Alpha Channel)
The failure of the cnv( ) function is a known bug in FF (at least in the PC
environment). It works for me on small images (< 200x200??), but always
creates a GPF on larger images.
Bill
> -----Original Message-----
> From: TBernt@t-online.de [SMTP:TBernt@t-online.de]
> Sent: Tuesday, July 27, 1999 4:17 PM
> To: ff@aurdev.com
> Subject: Re: FF Problem (More on the Alpha Channel)
>
> Hi Bill,
>
> thanks again.
>
> To all:
>
> I thought it may be interesting on what I'm dabbling
> and maybe I can get some hints how to make it better :-)
>
> I've made a "depth map" in my 3D software,
> that is simply a gray scale image, like an alpha channel,
> but the brightness of a pixel is related to his distance from the point
> of view.
> (e.g. a pixel value of 200 is 100m from the camera position,
> a pixel value of 100 is 30m .. and so on).
>
> So I get an Image with RGB and A where A is the depth map.
> The Idea is to make a lot of stunning filters :-) related to the
> distance of the pixel to the camera.
>
> Here's my first one, a "poor man's DOF" (Depth of Field) Filter for
> FIFO:
> --------------------------------------------------------------------
> if(msk>ctl(0))
> {
> R=cnv_r(1,1,1, 1,1,1, 1,1,1, 9);
> G=cnv_g(1,1,1, 1,1,1, 1,1,1, 9);
> B=cnv_b(1,1,1, 1,1,1, 1,1,1, 9);
> }
> --------------------------------------------------------------------
> In Photopaint you first have to copy the BG in an object (layer)
> then make a mask out of the alpha and lay it over the object,
> then apply the filter.
> (thanks again Bill, Kipp)
>
> This works pretty with FIFO but I had no luck doing this in FF.
>
> Anything like:
>
> RGB:a>ctl(0)?cnv(...):r
>
> don't works, any Ideas where the bug is?
>
> regards Thomas