[osg-users] [build] osgText issue

2012-05-11 Thread David Fernandes
Hi,

I want to add some text to the scene using the osgtext library. I have this 
code to paint a 3D Object in the X3M mark.

osg::ref_ptrosg::MatrixTransform transform = new 
osg::MatrixTransform(osg::Matrix::scale(8, 8, 8));
transform-addChild(osgDB::readNodeFile(data\\cow.osg));
object2_X3M = new XObjectAR_X3M(X3M object - texture, transform, new 
XMarkerAR_X3M(Data/X3M/PatternsToLoad/patt01.bmp, 80));
OSG::GetRootNode()-addChild(object2_X3M-getRootNode());

Does anyone know how can I paint also the osgtext object associated to the 
object2_X3M insted of painting the osgtext in the root ?


Thank you!

Cheers,
David

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





___
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

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
http://lists.openscenegraph.org/listinfo.cgi/osg-users-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);
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

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





___
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

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 
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

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
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[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 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