E. Wing schrieb:
Also attached is a picture from OpenGL Profiler showing a texture on
my 9800 Pro. I don't think transparency is the issue because the text
would show up as solid blocks if this was wrong, right? For some
reason, OpenGL Profiler didn't show me anything when running on my
Nvidia FX Go5200 so I don't have a screenshot to compare.
If I understand the openglprofiler-screenshot correctly, then the glyphs
don't have a transparent border (see the "O" for example, the
surrounding area is opaque/white), so texel interpolation will bring
some white into the textured quad. In my own font-rendering I solved
this by surrounding my glyphs with a 1 pixel transparent border.
It seems that the texture-image gets never initialized to a transparent
background, on my testings I can see a lot of pixel-garbage in the
unused areas of the texture. (And why is the texture so big? 1024 x 1024)
HTH,
Stephan
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/