On 25 September 2014 09:54, Andrés Barrionuevo <[email protected]> wrote:
> Hi Robert! > > The osgtext example works fine, my app not. The difference is that I was > calling: > I suspect the difference in behaviour has nothing to do with osgText and everything to do with a problem in the set up of your viewer that has been exposed by a bug fix to osgViewer that exists in OSG-3.2 and later. Do you create your own osg::Camera and assign it to the viewer? If so it's likely that you haven't set up the OpenGL settings to properly render your scene. A bug in OSG-3.0.x and before meant that the Camera StateSet was overridden by the rendering backend and defaults that work well for most OSG apps installed in it's place. The reason this is a bug is that it discards the settings your applicaion would have set. With OSG exmples like osgtext they don't suffer from this problem with lack of useful OpenGL default settings as they don't assign their own osg::Camera, instead they use the View(er)'s Camera, and osg::View automatically calls StateSet::setGlobalDefaults() for you. I have written about this a number of times now, before and after the OSG-3.2 release, go check the archives. the osgtext example will crash, even tough the font was found. How can the > font be both valid and invalid? > I really can't say why you various modifications to osgtext have caused the crash. The original code is fine. Robert.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

