Re: [osg-users] [build] osgText library

2012-05-03 Thread David Fernandes
Thanks Chris, That was really helpfull, it worked well. Cheers, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47532#47532 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [build] osgText library

2012-05-02 Thread David Fernandes
I used the following code to paint the text in the scene when the mark is detected: osgText::Text* tankLabel = new osgText::Text(); osg::Geode* tankLabelGeode = new osg::Geode(); tankLabel-setCharacterSize(20); tankLabel-setFont(../arial.ttf); tankLabel-setText(text that i want to show);

Re: [osg-users] [build] osgText library

2012-05-02 Thread Chris Hanson
To delete the same text I've tried the following code but it's not working for me: osg::ClearNode* clearNode = new osg::ClearNode; clearNode-addChild(tankLabelGeode); I'm not sure where you got the idea to use clearNode. Go read the documentation of what it does. It's not what you need.

Re: [osg-users] [build] osgText library

2012-05-02 Thread David Fernandes
I have tried that and when building the error message is error C2039: 'setNodeMask' : is not a member of 'osgText::Text' Why is this happening ? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47521#47521

Re: [osg-users] [build] osgText library

2012-05-02 Thread Chris Hanson
error C2039: 'setNodeMask' : is not a member of 'osgText::Text' My mistake. Do setNodeMask on tankLabelGeode. osgText class is not derived from the Node class, but the Geode is. -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting

Re: [osg-users] [build] osgText library

2012-05-01 Thread David Fernandes
Hi Robert, X3M, NUTTS and TTS are Vision-based Tracking. X3M is a Marker-based Tracking - AR Toolkit, - Uses single tracking marker or multi-markers - Determines camera pose information (extrinsic parameters) (6 DOF) - Includes utilities for fiducial marker-based pre-processing and camera

Re: [osg-users] [build] osgText library

2012-05-01 Thread Chris Hanson
So it sounds like your question is how do I make osgText objects disappear when I want them to? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 •

Re: [osg-users] [build] osgText library

2012-05-01 Thread David Fernandes
Hi Chris, Yes, that's what I'm trying to do. Regards, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47477#47477 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] [build] osgText library

2012-05-01 Thread Chris Hanson
On Tue, May 1, 2012 at 7:25 PM, David Fernandes davidmfernan...@gmail.comwrote: Hi Chris, Yes, that's what I'm trying to do. Ok. How are you trying to hide the text NodeMask? osg::Switch? Adding/removing the nodes themselves? -- Chris 'Xenon' Hanson, omo sanza lettere.

Re: [osg-users] [build] osgText library

2012-04-30 Thread Robert Osfield
Hi David, I am not aware of what N3N, NUTTS and TTS marks might be so did a google search and the only plausible hit I got on the first page was your email query! Could you please explain what these marks are. Robert. On 27 April 2012 20:41, David Fernandes davidmfernan...@gmail.com wrote:

[osg-users] [build] osgText library

2012-04-29 Thread David Fernandes
Hi, I'm developing a project that detects X3N, NUTTS and TTS marks. I'm having a problem regarding the osgText that is when the X3N mark is detected I manage to pain the scene with some text instructions but when it stops detecting the mark I can't remove the same text from the scene. Any