[osg-users] Write osgText to an FLT file

2016-08-28 Thread Steven Powers
Hi everyone. I need to be able to write and osgText node to an flt file. I realize that this is currently not supported but I am interested in adding this capability to the openFlight plugin. >From my initial investigation into this I believe I will have to implement the >asGeometry() functio

Re: [osg-users] Write osgText to an FLT file

2016-08-28 Thread Robert Osfield
Hi Steven, I don't have any advice as osgText as it stands does things rather awkwardly thanks to it's long age and some of the design/implementation decisions made in it's early days. The best you could do is write a conversion that limits it's functionality to one that doesn't support things li

Re: [osg-users] Write osgText to an FLT file

2016-08-30 Thread Steven Powers
Thanks for the reply Robert. I'm attempting to get this done in the next 2 weeks so I don't think I can wait for a rewrite of osgText. I don't need to support many of the features. I just need to grab the mesh of 3D text that will be adhered to other 3D objects. I'll need to grab the vertex ar

Re: [osg-users] Write osgText to an FLT file

2016-08-30 Thread Robert Osfield
HI Steven, One thing you could try is to utilize the osg::Drawable::accept(PrimitiveFunctor&) functionality to extra primitive data from the Text drawable. Possibly the osg::TriangleIndexFunctot might be the most straight forward way. Have a look through the OSG source code to see examples of Tri