On 11/19/2010 3:13 AM, Iñaki García wrote: > When I save my scene to a "file.osg", osgText::Text nodes are not saved into > the file. > This happens only when I statically link OSG to my application, when I use > the DLLs > everything is OK. So I suppose that the "Plugins osgText" is not being > registered/linked > to my app. I have tried to use the macro USE_OSGPLUGIN(x), but it only works > to link > ReaderWriters of "x" extension. > Is there any different way to instruct the compiler to link osgdb_osgtext.lib > code, and > tell the osgDB::Registry to use those functions to save Text nodes?
Basically, you need to have a reference in your main code to some data or code object in the desired plugin code, so the linker doesn't optimize out the plugin during linking. The USE_OSGPLUGIN() macro does this for you, but it probably uses some magic that isn't right for the osgText plugin. I'd look at the macro and see what it's doing, and then go look at the text plugin and see what you have to do manually (without the macro) to get approximately the same result. -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

