[eq-dev] Implementation of ply-Plugin is eqOSG

8 views
Skip to first unread message

Christian Kehl

unread,
Dec 3, 2009, 7:31:09 AM12/3/09
to eq-...@equalizergraphics.com
Dear Community-Members,

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

Juan Hernando

unread,
Dec 3, 2009, 8:13:49 AM12/3/09
to Equalizer Developer List
Hi Christian,

> 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.
If you use the latest developer release from OSG (2.9.5) it comes with
the package so you don't have to compile it by hand. Anyways if you were
able to build it successfully you don't need to worry about this.

> 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

Christian Kehl

unread,
Dec 3, 2009, 8:26:54 AM12/3/09
to Equalizer Developer List
Until now, the only thing I have are the static libraries (.lib). So, if I also build the dll's and put them in the folder I need them, osgDB finds them automatically ?

-------- 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

Juan Hernando

unread,
Dec 3, 2009, 10:47:59 AM12/3/09
to Equalizer Developer List
Christian Kehl escribió:

> Until now, the only thing I have are the static libraries (.lib). So,
> if I also build the dll's and put them in the folder I need them,
> osgDB finds them automatically ?
>
First I have to say that I'm far from a Windows expert.
As any other plugin system, your library must be a dll in order to load
it at runtime. So if you can compile osg_ply as a dynamic library, do it
and copy the .dll files to the osgPlugins directory as you say. In
principle your application doesn't need to link against osg_ply, that
means that you don't need the .lib files at all.

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,

Reply all
Reply to author
Forward
0 new messages