Re: pfconv missing textures

New Message Reply Date view Thread view Subject view Author view

Bettina Ball (bball++at++cae-gmbh.de)
Fri, 22 Aug 1997 09:18:31 +0100


On Thu, 21 Aug 1997, Jesper Nystrvm wrote:

> I have a problem with textures when converting flight files into pfb
> files.
>
> When I'm loading a flight file in perfly where all the textures are in
> an other directory (../textures/) and this work as is should. Then I
> convert this file into pfb file using pfconv and when I open the newly
> created pfb file with perfly I don't see any textures at all. I get the
> error message during loading:
>
> PF Warning/Resource(2): pfTexture::loadFile() - could not find
> image file xxx.rgba
>
> I get this message all the time while perfly is running:
>
> PF Warning/Usage: pfTexture::apply() - bad number of
> components -1
>
> It seems to me that the path to the textures is lost in pfconv. But if I
> set the environment variable PFPATH to ../textures then it works just
> fine!
>
> Could someone help me to understand this!

Hello Jesper,

you have to set a converter mode to store full path names in
the .pfb files. An excerpt from the pfconv README file:

 - By default just the name of a texture file is saved and not the full
   path of the texture file. If you want the full path saved you should
   set the PFPFB_SAVE_TEXTURE_PATH mode to PF_ON.

So if you set the converter mode to

    pfdConverterMode_pfb (PFPFB_SAVE_TEXTURE_PATH, PF_ON);

you should be fine.

Hope this helps,

   Bettina

 ------------------------------------------------------
| Bettina Ball | |
| CAE Elektronik GmbH | Email: bball++at++cae-gmbh.de |
| Abt. Systemtechnik | |
| Steinfurt 11 | Tel. : +49-(0)2402/106309 |
| D-52222 Stolberg | Fax : +49-(0)2402/106270 |
| Germany | http://www.cae.ca |
 ------------------------------------------------------

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:46 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.