Hi Robert,
I've tried with dev release 2.9.9, and the USE_DOTOSGWRAPPER did work:
USE_OSGPLUGIN(osg);
USE_DOTOSGWRAPPER(AlphaFunc)
USE_DOTOSGWRAPPER(AnimationPath)
...
USE_DOTOSGWRAPPER(VertexProgram)
USE_DOTOSGWRAPPER(Viewport)
USE_DOTOSGWRAPPER(Text_Proxy)
USE_DOTOSGWRAPPER(TextBase_Proxy)
The last two ones made the difference, now it reads .osg files with the
osgText::Text nodes in them.
Thank you very much
Iñaki
El 22/11/2010 10:40, Robert Osfield escribió:
Hi Iñaki,
I've just had a look at the OpenSceneGraph-2.8 branch and the osgText
plugin doesn't use the REGISTER_DOTOSGWRAPPER for the Text classes.
Unfortunately, this will mean that OpenSceneGraph-2.8.x and prior
versions won't be able to statically link the osgText. Two things
would need adding, first the REGISTER_DOTOSGWRAPPER and second the use
of USE_DOTOSGWRAPPER(Text) for all the classes you wish to use from
the osgText plugin. If you have a look at
src/osgPlugins/osg/ReaderWriterOSG.cpp you'll see lots of the
USE_DOTOSGWRAPPER.
The other alternative is to try out OpenSceneGraph from svn/trunk as
the .osg format and the new .osgx, .osgt and .osgb formats are now
supported in a bit of different way. The osg plugin you'll include
using OSG_OSGPLUGIN(osg) and then the wrappers that provide the
implementation of the IO/serializer support you'll include for each
core library/NodeKit. For instance it'll look like:
// pull in the osg plugin
USE_OSGPLUGIN(osg)
// pull in the old sytle .osg support
USE_DOTOSGWRAPPER_LIBRARY(osg)
USE_DOTOSGWRAPPER_LIBRARY(osgFX)
USE_DOTOSGWRAPPER_LIBRARY(osgParticle)
USE_DOTOSGWRAPPER_LIBRARY(osgShadow)
USE_DOTOSGWRAPPER_LIBRARY(osgSim)
USE_DOTOSGWRAPPER_LIBRARY(osgTerrain)
USE_DOTOSGWRAPPER_LIBRARY(osgText)
USE_DOTOSGWRAPPER_LIBRARY(osgViewer)
USE_DOTOSGWRAPPER_LIBRARY(osgVolume)
USE_DOTOSGWRAPPER_LIBRARY(osgWidget)
// pull in the serializers for the new .osgt, .osgb and .osgx formats
USE_SERIALIZER_WRAPPER_LIBRARY(osg)
USE_SERIALIZER_WRAPPER_LIBRARY(osgAnimation)
USE_SERIALIZER_WRAPPER_LIBRARY(osgFX)
USE_SERIALIZER_WRAPPER_LIBRARY(osgManipulator)
USE_SERIALIZER_WRAPPER_LIBRARY(osgParticle)
USE_SERIALIZER_WRAPPER_LIBRARY(osgShadow)
USE_SERIALIZER_WRAPPER_LIBRARY(osgSim)
USE_SERIALIZER_WRAPPER_LIBRARY(osgTerrain)
USE_SERIALIZER_WRAPPER_LIBRARY(osgText)
USE_SERIALIZER_WRAPPER_LIBRARY(osgVolume)
I'll be making a dev release this week that will wrap this up as well.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org