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

Date view Thread view Subject view Author view

From: Benedikt Kessler (bjk++at++sgi.com)
Date: 10/25/2005 07:23:19


hi!

"Christopher D. Johnson" wrote:
>
> 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'"

Are you calling pfdConverterMode_pfb directly?

You should call pfdConverterMode("pfb", int mode, int value) instead and that will do the lookup of the right lib.

>
> Here are the libraries I am including in my make:
>
> "PERFLIBS = -lpfdu -lpfutil -lpf"
>
> Which library is pfdConverterMode_pfb in?

/usr/lib/libpfdb/libpfpfb.so*

Bye! Benedikt

>
> 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!
>
> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------

-- 
+---------------------------------+----------------------------------+
|Benedikt J. Kessler              | Silicon Graphics GmbH            |
|Advanced Media Products          | Am Hochacker 3 - Technopark      |
|SGI                              | 85630 Grasbrunn-Neukeferloh, FRG |
|    ---  __o       ,__o          |                                  |
| ------_ \<,_    _-\_<,          | Phone: (+49) 89 46108-366 or -0  |
|----- (*)/ (*)  (*)/'(*)         | Fax:   (+49) 89 46107-366        |
+---------------------------------+----------------------------------+
|E-Mail: bjk++at++sgi.com            Web (private): http://sgiweb.org/bjk |
|   Web: http://www.sgi.de                                           |
+--------------------------------------------------------------------+


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Oct 25 2005 - 07:27:15 PDT