[osg-users] Can't get osgText to display text using osgViewer::GraphicsWindow

2011-08-02 Thread Pau Estalella
Hi,

I'm trying to add text labels, and I haven't been able to get osgText to 
display what I want.  The rest of the scene shows correctly, it's only that 
text does not appear. I can display the bounding box and the alignment mark, 
not the text. A reduced version of my code is attached. 
I am using Qt 4.7.3, and the OSG from subversion r.12737, on a Linux machine.
Of the many things I may be doing wrong, which one is responsible for this 
behavior?
Thank you!

Cheers,
Pau

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41795#41795




Attachments: 
http://forum.openscenegraph.org//files/main_182.cpp
http://forum.openscenegraph.org//files/gosgview_181.h
http://forum.openscenegraph.org//files/gosgview_140.cpp


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


Re: [osg-users] Can't get osgText to display text using osgViewer::GraphicsWindow

2011-08-10 Thread Su Gang
Hi,
I think you can try to add something else such as a primitive in void 
GOSGView::populate().

Code:
m_viewer->setSceneData(geode);


I see there is only one text node in the scene. I guess maybe the cull process 
ignored it.

Cheers,
Su


pau.estalella wrote:
> Hi,
> 
> I'm trying to add text labels, and I haven't been able to get osgText to 
> display what I want.  The rest of the scene shows correctly, it's only that 
> text does not appear. I can display the bounding box and the alignment mark, 
> not the text. A reduced version of my code is attached. 
> I am using Qt 4.7.3, and the OSG from subversion r.12737, on a Linux machine.
> Of the many things I may be doing wrong, which one is responsible for this 
> behavior?
> Thank you!
> 
> Cheers,
> Pau


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41961#41961





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


Re: [osg-users] Can't get osgText to display text using osgViewer::GraphicsWindow

2011-08-11 Thread Pau Estalella

su gang wrote:
> 
> I see there is only one text node in the scene. I guess maybe the cull 
> process ignored it.
> 


The thing is, the bounding box and the alignment mark of the text label are 
displayed. It seems to be related to the OpenGL context. If I comment out the 
line in GOSGView::GOSGView()


Code:
m_osgWindow = new GOSGGraphicsWindow(this);
// m_viewer->getCamera()->setGraphicsContext(m_osgWindow);
m_viewer->getCamera()->setCullingMode(osg::CullSettings::ENABLE_ALL_CULLING);




the text appears, outside the window, in fullscreen mode.
Any ideas, anyone?

Thanks!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41998#41998





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