Hi Robert,

The static linkage for the 3D Studio exporter is a private mod, for reliability and easy distribution. It's not in the repository on sourceforge.

Laurens.


Robert Osfield wrote:
Hi Laurens,

I'm currently refactoring the osg plugin and all the associated
plugins for the NodeKits.  I'm getting near to a point that I'll be
checking stuff in.  Once I do there will no longer be any
DotOsgWrappers implemented in any of the src/osg/osgPlugins - they
will all be found in src/osgWrappers/deprecated-dotosg/ directory,
with the src/osgPlugins only having the actual read/writer
implementations.

Once I've done the initial refactor I'll do a search for places where
the REGISTER_DOTOSGWRAPPER usage is missing and correct them.  I'll
also be working on a new scheme for static linking of these wrapper
plugins.

I must add that the REGISTER_DOTOSGWRAPPER is only required for static
linking, it isn't directly related to writing or reading from files.
Is it the 3D Studio exporter is statically linked to the OSG?

Robert.

On Tue, Jan 19, 2010 at 11:10 AM, Laurens Voerman <[email protected]> wrote:
Hi Robert,

While recompiling the 3dstudio exporter I noticed two functions in
osgdb_osg.lib still have a mangled name: AnimationPathCallback (which I'm
actually using) and TransferFunction1D. Modified files attached in zipfile.

src/osgPlugins/osg/AnimationPath.cpp
< osgDB::RegisterDotOsgWrapperProxy  AnimationPathCallback_Proxy
REGISTER_DOTOSGWRAPPER(AnimationPathCallback)
src/osgPlugins/osg/TransferFunction.cpp
< osgDB::RegisterDotOsgWrapperProxy TransferFunction1D_Proxy
REGISTER_DOTOSGWRAPPER(TransferFunction1D)
There is an identical copy of both files in
src\osgWrappers\deprecated-dotosg\osg\
I am not sure these need the same update (not using and not compiling
wrappers).

Currently the REGISTER_DOTOSGWRAPPER is used exclusively in the osgdb_osg
plugin, but the 3dstudio exporter also needs the writing capabilities from
osgdb_osgsim  and osgdb_osgparticle, should those be using the same
REGISTER_DOTOSGWRAPPER or do you want to use a different name to indicate
the need to link to a different .lib/.a file?

Find all "osgDB::RegisterDotOsgWrapperProxy" reveals usage in the following
plugins:

osgParticle, osgSim, osgFX, osgParticle, osgSim, osgText,
osgViewer, osgShadow, osgTerrain, osgVolume,
osgWidget, txp

Especially the TXPNode in the osgdb_txp might cause problems.

Or I could just keep using the old
#pragma comment (linker,
"/INCLUDE:?Func_Proxy@@3vregisterdotosgwrapperpr...@osgdb@@A")
stuff, as it still works, and I have the mangled names already.

Thoughts?

Laurens.

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to