[osg-users] bug: osgText doesn't work on MacOSX GL4.x with VAO

Remo Eichenberger osgforum at tevs.eu
Tue Jan 24 04:52:35 PST 2017


Hi Sebastian

I'm wondering if you have a running osgText on MacOSX Core Profile. Your shader-code is not compatible with it. I've written a partial working version of this shader. I also found that the Glyph Texture is created with red. But i think something is wrong with the texturecoordinates. I don't see any glyph.


Code:
uniform sampler2D glyphTexture;
in vec2 texCoord;
out vec4 color;
void main()
{
  color = vertexColor * texture(glyphTexture, texCoord).r;
}




I'm not sure the code of "Text::drawForegroundText" can work with VAO (It's required on MacOSX)

Here you find a draw dump from MacOSX:

[Image: http://forum.openscenegraph.org/files/dump_202.png ]

Cheers,
Remo[/img]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70036#70036



-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump.png
Type: image/png
Size: 338302 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170124/2b29c738/attachment-0003.png>


More information about the osg-users mailing list