Hi Ricardo,

On Thu, 6 Sep 2018 at 10:49, Riccardo Corsi <riccardo.co...@kairos3d.it> wrote:
> good guess! I've enabled the aliasing and my shaders works now with osg 
> default build!
> With this configuration there is still a side effect though: something is 
> wrong with alpha settings for HUD cameras.
> See attached screenshot that shows the issue: it's a modified osgsimplegl3 
> example with stats handler enabled, but I have alpha issues with other HUDs 
> as well.
> I've counter checked in my examples that the 2 aliasing/uniform calls are the 
> culprit: if I comment them out the shaders don't work anymore but the stats 
> are displayed correctly.

I'm busy with other work right now so can't look at the modified code
right away.

My best guess right now is that osgText and the StatsHandler are using
GL2 shader paths that assume gl_ builtins are available, but with the
aliasing enabled perhaps this is causing problem.  Could you set the
DIsplaySettings ShaderHint to GL3 to see if that helps i.e.

To the main before the scene graph setup add:

   
osg::DisplaySettings::instance()->setShaderHint(osg::DisplaySettings::SHADER_GL3);

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

Reply via email to