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

2017-03-14 Thread Robert Osfield
Hi Remo, On 14 March 2017 at 18:16, Remo Eichenberger wrote: > The env variable doesn't help. I see such errors: > > With subloading enabled i see this: > > before Glyph::subload(): detected OpenGL error: invalid enumerant > Glyph::subload(): texture sub-image width and/or

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

2017-03-14 Thread Remo Eichenberger
The env variable doesn't help. I see such errors: With subloading enabled i see this: before Glyph::subload(): detected OpenGL error: invalid enumerant Glyph::subload(): texture sub-image width and/or height of 0, ignoring operation. I've posted the log on the github issue. Remo

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

2017-03-14 Thread Robert Osfield
On 14 March 2017 at 17:38, Remo Eichenberger wrote: > Without this setting I see only a blue screen/window without any text. Do you get any GL errors reported on the console? Could you try disabling the incremental subloading of the glyph texture by setting the env var

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

2017-03-14 Thread Remo Eichenberger
Without this setting I see only a blue screen/window without any text. Remo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70491#70491 ___ osg-users mailing list osg-users@lists.openscenegraph.org

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

2017-03-14 Thread Robert Osfield
On 14 March 2017 at 17:01, Remo Eichenberger wrote: > Update: Stock sample "examples_osgtext" partial works with: > > font->setMinFilterHint(osg::Texture::LINEAR); > > on MacOSX GL3 Core Profile This will be disabling mipmapping. Surely OSX GL3 core profile supports

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

2017-03-14 Thread Remo Eichenberger
Update: Stock sample "examples_osgtext" partial works with: font->setMinFilterHint(osg::Texture::LINEAR); on MacOSX GL3 Core Profile -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70487#70487 ___

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

2017-03-11 Thread Remo Eichenberger
Hi Robert I've tested the latest branch on MacOSX 10.11.6: https://github.com/openscenegraph/OpenSceneGraph/commit/f1f6d23eebda16a9d4560a0a130580d65edf7401 Non of the stock samples works because of not applied shader. MacOSX needs a default shader. But simple text works when i add a shader on

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

2017-02-04 Thread Robert Osfield
Hi Remo, As a first step to resolving the osgText issues with VAO I have created a text_refactor branch off OSG master. All I have done so far is add the ability of osgText::TextBase to have NodeList _children that it traverses automatically, this _children list is intended for the Text and

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

2017-01-27 Thread Robert Osfield
HI Remo, On 27 January 2017 at 14:29, Remo Eichenberger wrote: > OSG_VERTEX_BUFFER_HINT=VAO > OSG_GEOMETRY_IMPLEMENTATION=VAO Oh well, that exhausts one possibility of a fix. I don't really know if it's worth trying to fix osgText::Text, when I made the changes to support VAO

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

2017-01-27 Thread Remo Eichenberger
yes, OSG_VERTEX_BUFFER_HINT=VAO OSG_GEOMETRY_IMPLEMENTATION=VAO -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70065#70065 ___ osg-users mailing list osg-users@lists.openscenegraph.org

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

2017-01-27 Thread Robert Osfield
On 27 January 2017 at 14:15, Remo Eichenberger wrote: > I use OSG master 255a86cbe22ba436ab162bd2a2e7cc0341140050 Have you enabled the new VAO support? The env var OSG_VERTEX_BUFFER_HINT should be used and set to VAO. Robert. ___

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

2017-01-27 Thread Remo Eichenberger
Hi Robert I use OSG master 255a86cbe22ba436ab162bd2a2e7cc0341140050 Cheers, Remo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70063#70063 ___ osg-users mailing list

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

2017-01-27 Thread Robert Osfield
Hi Remo, On 27 January 2017 at 13:59, Remo Eichenberger wrote: > I've tried a lot of things to get osgText working on MacOSX with VAO. GL3 on > OSX Core Profile requires VAOs. I don't have an OSX system so can't comment on the specifics of VAO support on MacOSX, I have rely

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

2017-01-27 Thread Remo Eichenberger
Hi (Robert :) I've tried a lot of things to get osgText working on MacOSX with VAO. GL3 on OSX Core Profile requires VAOs. osgText doesn't setup the VAO path correctly on MacOSX. I can show glyphs when I use a osg::Geometry as a Wrapper to draw geometries from text glyphs like so: Code:

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

2017-01-24 Thread Sebastian Messerschmidt
Hi Remo 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

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

2017-01-21 Thread Remo Eichenberger
Hi Sebastian, Sorry, please ignore my post. The code is wrong. I need to test it first :) Cheers, Remo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70027#70027 ___ osg-users mailing list

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

2017-01-20 Thread Remo Eichenberger
Hi Sebastian Thank you for your help. Yes i don't see the glyphs. I use osgEarth, but this should not be a problem :) I've tried the following according your sample: Code: ControlCanvas* canvas = ControlCanvas::getOrCreate( view );

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

2017-01-20 Thread Sebastian Messerschmidt
Hi Remo, A more detailed description on how it fails would be helpful. If you're seeing non-textures quads instead of your glyphs you need to adapt your shader as the text-rendering isn't using a normal blending. I've attached my default core-profile shader which uses pre-multiplied alpha.

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

2017-01-20 Thread Remo Eichenberger
Hi, I can't render osgText on MacOSX Core Profile: text->setTextBackdropType(osgText::Text::BackdropType::NONE); text->setTextBackdropImplementation(osgText::Text::BackdropImplementation::DELAYED_DEPTH_WRITES); text->setBackColor( Color( Color::Black, 0.8 ) ); text->setHorizAlign(