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
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);
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.
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
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
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
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 •
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
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.
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:
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
11 matches
Mail list logo