Index of /ports/graphics/osg/work/OSG_OP_OT-1.2/OpenSceneGraph/src/osgPlugins/pfb

      Name                    Last modified       Size  Description

[DIR] Parent Directory 13-Sep-2006 08:15 - [   ] ConvertFromPerformer..> 10-Aug-2006 06:12 51k [   ] ConvertFromPerformer.h 28-Jun-2004 06:18 2k [   ] GNUmakefile 21-May-2003 05:15 1k [   ] ReaderWriterPFB.cpp 20-Feb-2006 13:05 9k [   ] stat.c 23-Oct-2001 16:23 1k

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