OpenSceneGraph/src/osgPlugins/pfb
2006-02-20 21:05:23 +00:00
..
ConvertFromPerformer.cpp Replaced tabs with spaces. 2005-11-17 15:03:51 +00:00
ConvertFromPerformer.h From Michael Logan, build fix for Performer plugin 2004-06-28 13:18:31 +00:00
GNUmakefile Removed osg::GeoSet for core osg lib and osgPlugin. 2003-05-21 12:15:45 +00:00
ReaderWriterPFB.cpp From Ulrich Hertlein, spelling corrections and a few Doxgen comments. 2006-02-20 21:05:23 +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