Hi Jeremy,

On Wed, Nov 12, 2008 at 4:21 PM, Jeremy Moles <[EMAIL PROTECTED]> wrote:
> Well, in OpenGL there are to main formats I envision many of us wanting
> to use:
>
>        - ARGB32 (GL_RGBA)
>        - A8 (GL_ALPHA)
>
> A8 is really helpful because it allows you to create small, compact
> "alpha masks" (maybe I'm using the wrong term here) for texturing. For
> example, in osgPango I use CAIRO_FORMAT_A8 to render just the alpha
> values for the font glyph, and later a osg::TexEnvCombine() object
> (courtesy of Cedric) comes along and sets the actual color. This reduces
> the texture memory size by 75%, since the RGB information is fully
> irrelevant inside the Cairo texture.

Thanks for the explanation.  I can certainly see A8 being useful, as
well a straight RGB.

Out of curiosity Is the an A16 format?

> I don't know if you agree with me here, but once people learn about the
> cool 2D stuff they can actually do with Cairo, I imagine many more
> people will be interested!

I'm very curious where it'll all take us.  It's certainly is nice link
into a whole set of tools that we don't normally get access to in the
pure 3D world.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to