[osg-users] osgText::Text display issue (only white boxes rendered)

Robert Osfield robert.osfield at gmail.com
Mon Jan 1 04:30:23 PST 2018


Hi Helmut,

Good to hear you've found a form of resolution for the text issue.  My
guess is that the logarithmic depth buffer is implemented with a
custom fragment shader and this shader doesn't support text, or
osgText itself is providing shaders that aren't compatible so the
depths are all wrong.

Robert.

On 1 January 2018 at 11:36, Helmut Puhr <eskay187 at gmx.at> wrote:
> Hi again,
>   I found the issue. While I compiled the example you requested, I disabled the LogarithmicDepthBuffer I used, and voila, both issues were resolved.
>
> I used the following code in the scene set up:
>
>
> Code:
> osg::Camera* camera = osg_viewer_->getCamera();
> LogarithmicDepthBuffer logdepth;
> logdepth.install(camera);
>
>
>
> This somehow messed up the display, for reasons unknown to me. So it seems that everything works with the Viewer and also in the Qt5 setup, if this devious LogarithmicDepthBuffer is not used.
>
> So, thanks for your support!
>
>
> mp3butcher wrote:
>> Hi
>> Thank for the effort but it seams your example is still based on a QT graphic context.
>> In order to determine if the bug come from osg or from qt, you should use a classic osgUtil::CompositeViewer (OSGViewDataWidget is a QtWidget  coming from osgEarth, so  removing it is mandatory in order to determine if there's a bug in core osg)
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72658#72658
>
>
>
>
> Attachments:
> http://forum.openscenegraph.org//files/example_working_223.png
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list