OpenSceneGraph/src/osgPlugins/pfb
Robert Osfield 70861ef70e Converted osg::LOD from used n+1 successive ranges to n min/max ranges,
one min/max pair per child. Converted the rest of the OSG to use the new
osg::LOD node.
2002-10-06 20:33:13 +00:00
..
ConvertFromPerformer.cpp Converted osg::LOD from used n+1 successive ranges to n min/max ranges, 2002-10-06 20:33:13 +00:00
ConvertFromPerformer.h Converted code dependant on osg::Texture across to its replacement osg::Texture2D. 2002-08-25 15:31:44 +00:00
ConvertToPerformer.cpp Converted code dependant on osg::Texture across to its replacement osg::Texture2D. 2002-08-25 15:31:44 +00:00
ConvertToPerformer.h Converted code dependant on osg::Texture across to its replacement osg::Texture2D. 2002-08-25 15:31:44 +00:00
Makefile Updated docs. 2002-04-26 13:45:01 +00:00
ReaderWriterPFB.cpp Integrated Ulrich Hertlien's osg::Sequence node, and osgsequence demo, and 2002-08-03 18:11:21 +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