On Apr 21, 06 19:30:28 +0300, Jaakko Hyvätti wrote:
> On Fri, 21 Apr 2006, Brian Paul wrote:
> > I think the confusion is whether you want the resulting image to be in
> > premultiplied, or non-premultiplied format.  It sounds like you want
> > the later.  That's actually fairly uncommon.
> 
>   You hit the point here.  I want the later, uncommon thing.

O-key.
Actually, I'm currently unsure whether this is easily posible with
OpenGL's color model at all. Have to do a little bit of maths first, but
maybe you have already done that.

>   I am not thinking of rendering a final image, like everyone else.  I
> want to create a translucent image that can be used later on top of
> another image, with perfectly blending smooth edges.  The colors must be
> non-premultiplied, or the result is crap when it is finally blended to
> some random background.

Why that? As I wrote there has been a long going argument about
premultiplied vs. non-premultiplied, but that had only been due to
rounding issues. The over operator is associative, both in premultiplied
and nonpremultiplied form.

I remember having done something similar, and it worked with the
standard blending mode.

>   As nobody else ever seems to need this, it can be restricted to software
> renderer.  It is just efficient and convinient for me to do it this way.

And a corner case, which cannot easily be accelerated. Have you thought
about using pixel shaders and rendering to textures for that?

Matthias

-- 
Matthias Hopf <[EMAIL PROTECTED]>       __        __   __
Maxfeldstr. 5 / 90409 Nuernberg    (_   | |  (_   |__         [EMAIL PROTECTED]
Phone +49-911-74053-715            __)  |_|  __)  |__  labs   www.mshopf.de


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to