[osg-users] Ugly text

Robert Osfield robert.osfield at gmail.com
Tue Aug 18 02:30:45 PDT 2015

Hi Michael,

Your code is creating it's own osg::Camera then assigning this to the
viewer replacing the it's Camera.  The one you are creating you aren't
setting up any OpenGL default state so it's just left with OpenGL defaults,
these aren't ideal for most 3D applications, while the one originally
assigned to the Viewer has it's StateSet set up with defaults for OpenGL
that are more appropriate for 3D rendering.

To rectify this you simply call:


Or reuse the view(er)'s Camera assigning the graphics context you are
creating to it, rather than replacing it wholesale like you have done.


On 16 August 2015 at 12:49, Michael Shiringin <koryuun at gmail.com> wrote:

> Hi,
> Why if I uncomment the line "viewer.setCamera(createCamera
> (createGraphicsContext()));" the text becomes ugly? How can I set the
> Camera and DeviceContext without losing the the quality of the text?
> OpenSceneGraph-3.4.0-rc12.
> Thank you!
> Cheers,
> Michael
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64789#64789
> Attachments:
> http://forum.openscenegraph.org//files/osgtest_150.cpp
> http://forum.openscenegraph.org//files/ugly_916.png
> http://forum.openscenegraph.org//files/beautiful_155.png
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150818/e1fbb5e0/attachment-0003.htm>

More information about the osg-users mailing list