OpenSceneGraph/src/osgPlugins/pfb
2003-05-22 11:09:28 +00:00
..
ConvertFromPerformer.cpp Convert Performer plugin across to generate osg::Geometry directly. 2003-05-22 11:09:28 +00:00
ConvertFromPerformer.h Convert Performer plugin across to generate osg::Geometry directly. 2003-05-22 11:09:28 +00:00
GNUmakefile Removed osg::GeoSet for core osg lib and osgPlugin. 2003-05-21 12:15:45 +00:00
ReaderWriterPFB.cpp Removed osg::GeoSet for core osg lib and osgPlugin. 2003-05-21 12:15:45 +00:00
README.txt Initial revision 2001-01-10 16:32:10 +00:00
stat.c Added stat.c 2001-10-23 23:23:51 +00:00

Features and issues with Performer plugin
=========================================

Issues
------
After compiling the Peformer plugin you can run sgv and it will
pick up the library osgPlugins/osgdb_pfb correctly, so you'll now be
able to type something like :

  cd /usr/share/Performer/data
  sgv iris.pfb 

Unfortunately this then results in the following error message :

  DynamicLibrary::failed loading /home/robert/OpenSceneGraph-0.8/lib/osgPlugins/osgdb_pfb.so
  DynamicLibrary::error /usr/lib/libpr.so: undefined symbol: __ucmpdi2

An attempt to fixing the undefined symbol by including -lgcc did not fix the
problem, have a look at src/osgPlugins/pfb/Makefile, for the link lines
tested. Suggestions welcome.

This error disappears if you link sgv with Performer, you can do this by
simply swapping the #comment around in src/Viewier/Makefile so that :

  LIBS =  -losgUtil -losg  -lglut -lGLU -lGL  -lm -lXmu  -lX11 -lXi
  #LIBS = ${PFLIBS} -losgUtil -losg  -lglut -lGLU -lGL  -lm -lXmu  -lX11 -lXi

is edited to become:

  #LIBS =  -losgUtil -losg  -lglut -lGLU -lGL  -lm -lXmu  -lX11 -lXi
  LIBS = ${PFLIBS} -losgUtil -losg  -lglut -lGLU -lGL  -lm -lXmu  -lX11 -lXi

Not an ideal solution but it does work.  Now try :

  cd /usr/share/Performer/data
  sgv town_ogl_pfi.pfb


Features
--------
You can also use osgdb_pfb.so as a Performer plugin, by linking/copying the
osgPlugins/osgdb_pfb.so to libpfosg.so.   Try something like :

  cd OpenSceneGraph-0.8/lib
  ln -s osgPlugins/osgdb_pfb.so libpfosg.so

then 

  perfly turtle.osg

or

  pfconv /usr/share/Performer/data/iris.pfb iris.osg
  sgv iris.osg