Re: [info-performer] Flight loader can't find relative textures and externals

Date view Thread view Subject view Author view

From: Paolo Farinelli (paolo++at++sgi.com)
Date: 09/02/2003 17:48:30


Hi Mario,

thanks for your input on this relative-path issue and the flt loader.
I cannot really say *why* textures and external references are not
searched relative to the model location; we will consider adding
this functionality in a future release.
No, source files for the flt loader are not available.

The best solution I can think of in your case would be to set a
separate pfFilePath for each model you load..

Best Regards,
Paolo

MLM Veraart wrote:

>Hello,
>
>I have a problem with the flight loader that it can't find textures for models
>when they are in a certain directory structure.
>
>I have a lot of textured models that are put inside a separate directory.
>Each directory contains the flight file and the accompanied textures and attribute files.
>
>The directory structure I use is
> -- models/
> + model001.flt
> + model002.flt
> + model003.flt
> |
> + model001/
> + model001.flt
> + texture001.01.rgb
> + texture001.02.rgb
> + model002/
> + model002.flt
> + extern01.flt
> + texture002.01.rgb
> + model003/
> :
>
>I have made flight files inside the 'models' directory that only contain an external reference to the
>model file in a subdirectory.
>
>The 'models' directory is part of PFPATH.
>
>When I give the command 'perfly model001.flt'
>it finds 'models/model001.flt'
>and loads the external './model001/model001.flt'
>But it fails to load the textures belonging to model001.flt.
>I get errors like
> Can't find texture "./texture001.01.rgb"
>
>When loading 'models/model002.flt' the loader can find 'models/model002/model002.flt'
>but can't find the external './extern01.flt' referenced in 'model002/model002.flt' and the textures.
>
>My question is:
>Why are the textures and external files not (first) searched RELATIVE to the flightfile?
>
>Flight files are modelled with relative paths.
>
>Putting all modelxxx directories in PFPATH is not an option because the total length will be very big.
>
>Are the source files for the flight loader available?
>If not, will this be corrected in the next performer release?
>
>Mario Veraart
>
>
>

-- 
Paolo Farinelli                                           paolo++at++sgi.com
Member of Technical Staff, OpenGL Performer              1-650-933-1808
Silicon Graphics        1600 Amphitheatre Pkwy, Mountain View, CA 94043


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Sep 02 2003 - 17:49:32 PDT