Re: [info-performer] Problem Converting .FLT Files to .PFB format

Date view Thread view Subject view Author view

From: Christopher D. Johnson (cubicwts++at++excite.com)
Date: 10/25/2005 06:54:44


Ok, I have placed the "#include <Performer/pfdb/pfpfb.h>" in my source file, but I am getting a linker error:

": undefined reference to 'pfdConverterMode_pfb'"

Here are the libraries I am including in my make:

"PERFLIBS = -lpfdu -lpfutil -lpf"

Which library is pfdConverterMode_pfb in?

Christopher D. Johnson
AV-8B Harrier II Simulators
ISEO Support Team
Cherry Point, NC
252-466-4542
252-466-4538

 --- On Mon 10/24, Allan Schaffer < allan++at++sgi.com > wrote:
From: Allan Schaffer [mailto: allan++at++sgi.com]
To: cubicwts++at++excite.com
     Cc: info-performer++at++sgi.com
Date: Mon, 24 Oct 2005 13:56:39 -0700
Subject: Re: [info-performer] Problem Converting .FLT Files to .PFB format

Christopher D. Johnson wrote:<br>> Platform is Fedora Core 3. I have used the following command to<br>> sucessfully get my files to convert:<br>> <br>> pfconv -M pfb,1,1 example.flt example.pfb<br>> <br>> If I run this on my files, they show up correctly in perfly. Is there<br>> a way to duplicate this behavior when calling<br>> "pfbStoreFile(sceneGraph, "example.pfb")" ?<br><br>You would need to precede the pfdStoreFile() call with:<br><br>#include <Performer/pfdb/pfpfb.h><br>...<br>pfdConverterMode_pfb(PFPFB_SAVE_TEXTURE_IMAGE, PF_ON);<br><br>But overall it looks to me that the path to the original texture files <br>aren't being found once you convert to PFB. By making the above call <br>(which is the C equivalent of -M pfb,1,1 option to pfconv) you are <br>storing the textures directly in the file.<br><br>Another way around this might be to setenv PFPATH to wherever the<br>textures are located.<br><br>And last, I bet the "-M pfb 2,1" option to pfconv would also
work.<br>This is aka: pfdConverterMode_pfb(PFPFB_SAVE_TEXTURE_PATH, PF_ON);<br><br>Allan<br><br>-- <br>Allan Schaffer allan++at++sgi.com<br>Engr. Dept. Manager, Visual Systems Group 1-650-933-2160<br>Silicon Graphics http://www.sgi.com>

_______________________________________________
Join Excite! -
http://www.excite.com
The most personalized portal on the Web!


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Oct 25 2005 - 06:57:22 PDT