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