I am running an eqOSG software version for performance studies on my computer. One of my demos is a CT of a human body made out of 9 ply files.
I encountered the problem that OSG doesn't support ply format, as some of you also did (I watched around in some OSG forums). I got that some of you implemented the native eqPly-loader into esOSG as a file plugin for the osgDB-class.
I downloaded the source files and now I don't know how to install this plugin.
I created a new folder in the source folder for osgPlugins (where all the plugins for the other files formats are too). I opened up the OSG_PLUGINS_MASTER.sln Visual Studio project files and I was able to generate an osg_plyd.lib and osg_ply.lib.
My question now is: How do I get it done so that this plugin is installed in the osgDB library ? Does that then work simply like calling "osgDB::readfile(bone0.ply);" and it loads the file or how do I then handle with this new plugin ?
I feel that it's not so far to get to a solution, but, as you see, the last steps are missing. I hope someone of you can help me.
Greetings,
Christian
--
Sarah Kreuz, die DSDS-Siegerin der Herzen, mit ihrem eindrucksvollen
Debütalbum "One Moment in Time". http://portal.gmx.net/de/go/musik
_______________________________________________
eq-dev mailing list
eq-...@equalizergraphics.com
http://www.equalizergraphics.com/cgi-bin/mailman/listinfo/eq-dev
http://www.equalizergraphics.com
> My question now is: How do I get it done so that this plugin is
> installed in the osgDB library ? Does that then work simply like
> calling "osgDB::readfile(bone0.ply);" and it loads the file or how do
> I then handle with this new plugin ?
You can use osgDB::readNodeFile(bone0.ply)
osgDB searches and loads the library automatically. It works the same
way for all file extensions. The only thing that could go wrong in this
step is that something (osg build, your library path) is not configured
properly and OSG will fail loading the plugin. But if you can load other
formats and your compiled dlls are in the same directory as the rest of
the plugins that shouldn't be the case. When the library is loaded it
registers a reader that can handle that type of files.
I've used that plugin to convert the Stanford repository models to .ive
format succesfully in Linux. In Windows it should be the same,
Cheers,
Juan
-------- Original-Nachricht --------
> Datum: Thu, 03 Dec 2009 14:13:49 +0100
> Von: Juan Hernando <jher...@fi.upm.es>
> An: Equalizer Developer List <eq-...@equalizergraphics.com>
> Betreff: Re: [eq-dev] Implementation of ply-Plugin is eqOSG
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
Nevertheless, you could link your app against osg_ply explicetly. Then
the pluging registers itself at application startup, during the static
initialization phase. But I think it's better to first try it the way
it's supposed to work.
Hope that helps,