Re: [osg-users] [build] osgText library
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 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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); tankLabel-setAxisAlignment(osgText::Text::SCREEN); tankLabel-setDrawMode(osgText::Text::TEXT | osgText::Text::ALIGNMENT | osgText::Text::BOUNDINGBOX); tankLabel-setAlignment(osgText::Text::CENTER_TOP); tankLabel-setPosition( osg::Vec3(-40,-80,-590) ); tankLabel-setColor(osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f)); tankLabelGeode-addDrawable(tankLabel); OSG::GetRootNode()-addChild(tankLabelGeode); 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); How can I hide the nodemask ? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47503#47503 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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. How can I hide the nodemask ? Set the node's nodemask to 0: tankLabel-setNodeMask(0); To turn it back on, set it to non-zero: tankLabel-setNodeMask(~0); -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47503#47503 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- 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 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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 • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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 calibration More info in the ARTOOLKIT website. TTS is a Texture Tracking System NUTSS and FIRST – Fast Invariant to Rotation and Scale Transform Regards, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47472#47472 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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. xe...@alphapixel.com http://www.alphapixel.com/ Training • Consulting • Contracting 3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL Digital Imaging • GIS • GPS • Telemetry • Cryptography • Digital Audio • LIDAR • Kinect • Embedded • Mobile • iPhone/iPad/iOS • Android ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [build] osgText library
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 thoughts on how to solve this ? Thanks in advance. Cheers, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47359#47359 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org